tailieunhanh - modern database management 8th edition PHẦN 7

Trong danh sách trọn gói, kiểm tra và tất cả mọi thứ bên dưới nó. 10. Bất cứ khi nào các gói bổ sung cần thiết cửa sổ xuất hiện, nhấn nút. Loại: SELECT id, đầu tiên, từ tên ► ► ORDER BY id, cửa sổ sẽ giống như thế này: | 364 CHAPTER 8 ADVANCED SQL Problems and Exercises Write an SQL command to total the cost of order number 1001. Ị Write an SQL command that will find any customers who have not placed orders. Ị Write an SQL query to produce a list of all the products . product description and the number of times each 5 product has been ordered. 1 Write an SQL query to display customer number name and i order number for all customers and their orders. I Write an SQL query to list the order number and order I quantity for all customer orders for which the order quan- I tity is greater than the average order quantity of that prod- I uct. Hint This involves a correlated subquery. I 13. Write an SQL query to list each salesperson who has sold computer desks and the number of units sold by each sales- 1 person. 14. Write an SQL query to list the salesperson who has sold the most computer desks. 15. Write an SQL query to list the supervisors who supervise employees with 12 in Bandsaw as a skill. 16. Write an SQL query to list all employees who have more than one skill. 17. Write an SQL query to list the territory_id and the terri-tory_name of all territories where end tables have been sold. 18. Write an SQL query to list the number of end tables sold in each territory. 19. Write an SQL query to list the total number of sales for each product line. 20. Write an SQL query to list the total sales for each sales territory. 21. Write an SQL query to list the total sales for each sales territory by salesperson. 22. Write an SQL query to list what product lines each salesperson has sold. 23. Write an SQL query to list the total number of sales for each finish by salesperson. Order by finish and salesperson. Problems and Exercises 1 through 5 are based on the class sched- 8. ule ERD depicted in Figure 4rl9 in Chapter 4. The 3NF relations along with some sample data are repeated in Figure 8-9. For g Problems and Exercises 1 through 5 draw an instance diagram and mark it to show the data you .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.