DBI202_-_PE_-_SP_2025_-_s_9_3473.webp
Y

DBI202_-_PE_-_SP_2025_-_s_9_3473.webp

  • Media owner Yuta2003
  • Ngày thêm
☑Kizspy.me
Write a query to display all the appointments where the AppointmentDate is from 20th
January 2021 to 20th September 2021, inclusive, of all doctors, including also doctors who
have no appointment in this period. Display the results with DoctorID, DoctorFullName,
AppointmentID, AppointmentDate, TotalAmount, PaidAmount where TotalAmount and
PaidAmount are the amounts of the billing corresponding to each appointment. Order the
result in descending order of DoctorFullName, then in ascending order of TotalAmount for
appointments of the same doctor as in the following figure:
Zoom
4 of 4
Paper No: 9
DoctorID DoctorFullName
AppointmentID AppointmentDate
TotalAmount PaidAmount
1231
19
Dr. Sarah Williams
NULL
NULL
NULL
NULL
4
Dr. Sarah Jones
40
20
Dr. Sarah Davis
154
4
20
Dr. Sarah Davis
65
2021-05-25 00:00:00.000 53.38
2021-05-19 00:00:00.000 59.17
2021-04-09 00:00:00.000 181.37
2.88
41.56
38.98
+ 124%
Close
Chưa có bình luận nào.

Thông tin

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

Share this media

Back
Bên trên Bottom