Q1_20251108074509.webp
Jellal87

Q1_20251108074509.webp

  • Media owner Jellal87
  • Ngày thêm
Zoom
TU
30
Nguyenl rival Fluong 20
Kem dua
Picture 3.1
Question 4:
Write an SQL query to display all main dishes (Category = "Món chinh'), along with the
customers who ordered them in August 2025. Include menu items even if they were not
ordered by any customer during that month. Show the following columns: Category, ItemID,
ItemName, CustomerID, FullName. Sort the result by ItemName in ascending order, then by
CustomerID in ascending order for rows of the same ItemName as shown in the following
figure:
4 of 4
Paper No: 5
Category
ItemID
ItemName
1
Món chính. 4
Bún bò Huế
33
2
Món chính 3
Bún chả Hà Nội
NULL
3
Món chính 5
Cơm rang dưa bò
44
CustomerID FullName
Đỗ Thị Hiện
NULL
Trần Hữu Nghĩa
4
Món chính 5
Cơm rang dưa bộ
46
Phạm Văn Quang
5
Món chính 6
Com tam suon bi chȧ
NULL
NULL
6
Món chính 10
Gà rang muối
44
Trần Hữu Nghĩa
7
Món chính 9
Lầu bò nhúng dấm
46
Phạm Văn Quang
8
Món chính 8
Lầu thái hải sản
44
Trần Hữu Nghĩa
9
Món chính 7
Mi xào hải sản
NULL
NULL
10
Món chính 1
11
Món chính 2
Phở bò tái
Phở gà
38
NULL
Lê Văn Hậu
NULL
Picture 4.1
Question 5:
Write an SQL query to list all customers whose full name starts with "Nauven" or "Bui
Close
+ 64%

Thông tin

Category
DBI202
Thêm bởi
Jellal87
Ngày thêm
Lượt xem
1,244
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom