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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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