Formulate a single sql query to produce

Assignment Help PL-SQL Programming
Reference no: EM133414674

Question: For each information request below, formulate a single SQL query to produce the required information. In each case, you should display only the columns requested. Be sure that your queries do not produce duplicate records unless otherwise directed

1. Give date and the sum of tax and shipping for each sale from December 20th through December 25th of 2015. (use BETWEEN. Name the calculated column SUM)

NOTE: Due to an anomoly within MySQL for numeric fields, sometimes calculated results have 14 decimal places and inexact amounts. To ensure your answer is correct use the ROUND function to two decimal places, i.e. ROUND(Tax+Shipping,

2. List the data in the Salaried Employees table about Salaried Employees earning between $40000 and $50000. (use between)

3. Give Customer IDs and cities for customers who are located in Chicago, Saint Louis, Baltimore, or Newark. (Use the IN operator.)

4. What is the customerID for Sam Gill?

5. Give the sales data for sales where sales tax was charged and total of tax and shipping is less than $15. (use the NOT operation.) Show all sales data.

6. Create an alphabetical list of names (first and last, alphabetized by last) of customers in Minnesota.

7. Give names of manufacturers and their cities that are located in cities with names ending with 'City'.

8. List the information of each sale item where 2 or more items were sold but only for sizes 5, 6, and 7 (Use the keyword IN.) Show all sale item information.

9. Give all the data for sales from January 21 of 2015 through the end of the month. (Use BETWEEN)

10. What is the first and last name of customer 610?

11. List Employee names (first and last) of employees who manage themselves or have a null value as the manager id.

12. Give full names of customers that have a 'D' as the third character in their last names. Make your query case insensitive. Eliminate duplicates.

13. What is the full name and phone number of employee 170?

14. What are the sales dates and shipping amount of sales with over $55 of shipping charges?

15. Give names of manufacturers and their cities that are located in cities with names starting with 'C'.

Reference no: EM133414674

Questions Cloud

Domestic terrorism generally applies when terroristic acts : Domestic terrorism generally applies when terroristic acts are committed overseas against United States persons or property.
Discuss at least two network management concepts : Network Management Megatrends 2014, discuss at least two network management concepts you learned from the paper
Define each protocol and describe at least two transmission : Define each protocol and describe at least two data transmission technologies associated with the protocol. Include the bandwidth limitations of each technology
Documentary-Did the Birth of a Nation film lead to new era : Documentary-Did Birth of a Nation film lead to new era (the nations response) of terrorism against African Americans that still may impact certain data today?
Formulate a single sql query to produce : Formulate a single SQL query to produce the required information. In each case, you should display only the columns requested. Be sure that your queries
Forced to give miranda warnings : What is the legal requirement for an officer to be FORCED to give Miranda warnings?
Critically reflecting on overall internship : Critically reflecting on my overall internship, referring to each of learning outcomes, and including a summative reflection
Facial recognition software and cell phone tracking device : What limits should be placed on use of electronic surveillance in the form of license plate readers, facial recognition software and cell phone tracking device?
Identifying three key work trait differences : identifying three key work trait differences you and placed that could impact your organization's culture and the impact of such differences on succession

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd