Questions from Database Management


Q: List the number of customers living at each state that is included

List the number of customers living at each state that is included in the Customer_T table.

See Answer

Q: List all raw materials that are made of cherry and that have

List all raw materials that are made of cherry and that have dimensions (thickness and width) of 12 by 12.

See Answer

Q: List the MaterialID, MaterialName, Material, MaterialStandardPrice, and Thickness

List the MaterialID, MaterialName, Material, MaterialStandardPrice, and Thickness for all raw materials made of cherry, pine, or walnut. Order the listing by Material, StandardPrice, and Thickness.

See Answer

Q: Display the product line ID and the average standard price for all

Display the product line ID and the average standard price for all products in each product line.

See Answer

Q: Modify query in P&E 5-67 by considering only

Modify query in P&E 5-67 by considering only those products the standard price of which is greater than $200. Include in the answer set only those product lines that have an average standard price of...

See Answer

Q: For every product that has been ordered, display the product ID

For every product that has been ordered, display the product ID and the total quantity ordered (label this result TotalOrdered). List the most popular product first and the least popular last.

See Answer

Q: For each order, display the order ID, the number of

For each order, display the order ID, the number of separate products included in the order, and the total number of product units (for all products) ordered.

See Answer

Q: Rewrite the example shown in Figures 7-10 through 7-

Rewrite the example shown in Figures 7-10 through 7-14 using Java. Data from Figure 7-10: Data from Figure 7-11: Data from Figure 7-12: Data from Figure 7-13: Data from Figure 7-14:

See Answer

Q: For each customer, list the CustomerID and total number of orders

For each customer, list the CustomerID and total number of orders placed.

See Answer

Q: For each salesperson, display a list of CustomerIDs.

For each salesperson, display a list of CustomerIDs.

See Answer