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

  Create all not null constraints as indicated in the erd

Create all NOT NULL constraints as indicated in the ERD. Create all PK constraints as indicated in the ERD. Create all FK constraints as indicated in the ERD.

  1 not having an appropriate index can cause a full table

1. not having an appropriate index can cause a full table scan while performing the select statement by using a

  Erp software and service industryoriginally the sap erp

erp software and service industryoriginally the sap erp software was developed for and implemented by mostly

  Explain the phase standarized but customizable

Why do database rocessing and dcument processig need each other? -  Explain the phase standarized but customizable.

  How documents are converted as they transition

How documents are converted as they transition from one stage to another during their life cycles. How documents are treated as corporate records that must be retained according to legal requirements and corporate guidelines.

  Determine the functional dependencies

After determining the functional dependencies, convert this table to an equivalent collection of tables that are in third normal form.

  Write the oracle function for the given queries

Why does the order of the operands (tables) matter in an EXCEPT (MINUS) query but not in a UNION query?

  Writing down sql query

Write down the SQL code in order to carrying out the following requests. Display all the data in each of the four tables. Do not display the foreign key columns.

  Importing namespace system. io. import system. io

Create an application that stores people's names and birthdays in a file (Fig. 23.40). The user creates a file and inputs each person's first name, lastname and birthday on the Form. The information is then written to the file.

  Design a relational database so that it is at least in 3nf

Explain the fundamentals of how data is physically stored and accessed.Compose conceptual data modeling techniques that capture information requirements.

  Program that simulates game of rock-paper

Write a program that simulates a game of rock, paper, scissors between a human and the computer in best 2 out of 3 rounds.

  Find database management system selection

Identify and describe three criteria that should be used to evaluate the selection of a database management system.

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