Consider the following relational database schema and example database instance (primary keys are underlined; foreign ke
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Consider the following relational database schema and example database instance (primary keys are underlined; foreign ke
What is the output of the following SQL query on the given example database instance? SELECT A.time, COUNT (A.pid), SUM(payment) FROM Medical Centres M, Appointments A WHERE A.cid = M.cid AND M.centre 'MyHealth Medical Centre' GROUP BY A.time; O (10:00, 1, 20.00) (11:00, 1, 35.00) O (10:00, 1, 20.00) (11:00, 2, NULL) O (10:00, 1, 20.00) (11:00, 2, 35.00) O (10:00, 1, 20.00) (11:00, 2, 35.00) (11:15, 1, 20.00)