DBI202_-_FA_2024_-_PE_-_s_-_11_2887.webp
Kim Oanh1

DBI202_-_FA_2024_-_PE_-_s_-_11_2887.webp

23 2
Neurology 2024 1670.00
24 7
Oncology 2024 160.00
25 3
Pediatrics 2024 3050.00
Question 8:
Picture 7.1
7 of 7
Paper No: 11
Create a function named F2 which calculates and returns an integer number which is the number of distinct patients who were required to do a given test during their appointments,where testID int is the input parameter of the function.
For example, when we call the F2 function in the following query for calculating the number of distinct patients who were required to do each of the four tests with testID respectively 9,10, 11 and 12, the results must be shown as in the following figure:
select TestID, Name, dbo.F2(TestID) as NumberOfPatients
from Tests
where TestID in (9,10,11,12)
NumberOfPatients
5
1
Zoom
TestID Name
Thyroid Test
+ 100%
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
DBI202_-_FA_2024_-_PE_-_s_-_11_2887.webp
File size
224.1 KB
Dimensions
1920px x 990px

Share this media

Back
Bên trên Bottom