List all customers showing the customer id

Assignment Help Database Management System
Reference no: EM131577060

Task : Use one and only one SQL Statement to get results for each of the following items.

Query # Description

1. List all customers showing the customer ID, customer name, and state, sorted by state, with customer names in alphabetical order within each state.

2. List the Customer ID, Customer Name, Order ID, Order Date, and Total Order Amount (use alias) for all customers, sorted by Total Order amount (the highest amount first).

3. List the name of the customer(s) who ordered the products that have the word "alarm" in it, together with the Product Name, Unit Price, Order Quantity, sorted by customer name in alphabetical order.

4. List the ID, name and average unit cost of the product(s) that has more than one supplier, sorted by the number of suppliers in descending order (the highest number of suppliers first).

5. List the ID and name of the product(s) that didn't get ordered. Use a subquery.

Note: When asked to look up by the name (e.g. product name), don't look up the id (e.g. productID) manually in their original table (e.g. Product_T) and then use it in your SQL - of course that's easier but that's cheating.

Instead you should consider using joins and conditions to look up with given criteria.

What to include in your project report:

· Provide the following in one page for each query in the order given above:

o Query # AND Description (copy them directly from this requirement document). Screenshots without Query # and description will not be graded. Even if you don't have a solution to submit, still include the query# and description and leave the rest of the page blank.

o A screenshot for each query, showing the SQL statement used and the results. Make sure that COMPLETE SQL statement and COMPLETE result set are visible in your screenshot(s). Make sure to capture the number of results returned in the bottom right corner.

o You can take multiple screenshots if you have to in order to capture the entire result set, but make sure to crop each screenshot, put them together and labeled so they are readable as a whole. Missing or incomplete screenshots will result in deduction.

· Make each screenshot is big enough to be readable.

· In all screenshots, show your SQL server name and all table names in left explorer pane in Management Studio.

Reference no: EM131577060

Questions Cloud

Prepare entries to reflect correct land and buildings : Spitfire Company was incorporated on January 2, 2015. Prepare entries to reflect correct land, buildings, and depreciation accounts at December 31, 2015.
Construct a multiplexer using and-or gates and inverters : Construct a multiplexer using AND gates, OR gates, and inverters that has as input the four bits x0, x1, x2, and x3 and the two control bits c0 and c1.
Conduct a general survey and a health history : General appearance: Gender. Apparent age. Ethnic group. Does client appear healthy. Note general color of skin and general hygiene
Construct a half adder using nor gates : Construct a half adder using NOR gates. A multiplexer is a switching circuit that produces as output one of a set of input bits based on the value.
List all customers showing the customer id : List all customers showing the customer ID, customer name, and state, sorted by state, with customer names in alphabetical order within each state.
What the current market indicates : Use the principle of supply and demand to address a predetermined goal (set by the student). Be clear on what the current market indicates.
Which minterms are represented by cells adjacent to the cell : Draw a K-map for a function in four variables. Put a 1 in the cell that represents w¯xyz¯.
Famous pizzeria in town : Below are a series of "changes" in the market for pizza where Marginal Pizza operates. For each of the changes, please provide the following two things:
Discuss paper''s topic cyber bullying : Research paper must be in APA format and includes, Cyber Bullying

Reviews

Write a Review

Database Management System Questions & Answers

  Describing the purpose of database an its functionality

Describing the purpose of database an its functionality, plus a detailed E-R diagram.

  Design a star schema to organize the sales information

Design a star schema to organize the sales information to meet the marketing department needs. Identify the dimensions first, and then identify the attributes of those dimensions.

  Discuss the serious data redundancy problems

Identify and discuss the serious data redundancy problems exhibited by the file structure shown in Figure and looking at the EMP_NAME and EMP_PHONE contents in Figure, what change(s) would you recommend?

  Dimensions and attributes in a star schema model

Explain the use of facts, dimensions and attributes in a star schema model. Explain the use of facts, dimensions and attributes in a star schema model.

  Explain what is meant by wear-leveling in flash drives

What is the capacity of a hard drive (in GB) consisting of 120,000 tracks, 4,000 sectors, and 4 surfaces? Assume each block has 512 bytes.

  Create sql statements for the scenarios

Create SQL statements for the following scenarios. Your response should include SQL statement, output and any other assumptions you have made to arrive at the solution. Please provide a single SQL query for each problem.

  Create a table for patients with information

Create a table (by your own imagination) which comprises the least 25 patients with next information (columns): Calculate average of Value1 for each Gender.

  Interaction in a tic-tac-toe game

Write a PhoneContact class that gets initialized with a phone number and a label. The phone number should follow one of the formats of the Phone class from the previous assignment (and you should use the Phone class in this assignment).

  Explain why it is important to record information

You have just received a new computer at work. it runs fast and works great. thinking about the future and the day something might break explain why it is important to record this information.

  Write required sql statements to query the database

Analyse and comprehend a given ER diagram and Relational Data Structures - implement a database based on the given ER diagram and Relational Data Structures;

  Hsada systems analysis and design

Determine and confirm client business expectations and needs and determine and apply appropriate development methodologies

  Display of all employees showing social security number

List/display of all employees showing social security number, first and last name, address, city, state and zip code, birth date, full-time or part-time status, salary (hourly rate) and date of hire.

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