a) Write an SQL query to determine the total number of hours and the total number of lessons Tutor 106 taught in June and July 2018. b) Write an SQL query to list the Read scores of students who were ever taught by tutors whose status is Dropped. c)  List all active students in June by name. (Make up names and other data if you are actually building a prototype database.) Include the number of hours students received tutoring and how many lessons they completed.

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter4: Analyzing And Charting Financial Data
Section: Chapter Questions
Problem 2.5CP
icon
Related questions
Question

Datebase Design 

a) Write an SQL query to determine the total number of hours and the total number of lessons Tutor 106 taught in June and July 2018.

b) Write an SQL query to list the Read scores of students who were ever taught by tutors whose status is Dropped.

c)  List all active students in June by name. (Make up names and other data if you are actually building a prototype database.) Include the number of hours students received tutoring and how many lessons they completed.

TUTOR (TutorID, CertDate, Status)
MATCH HISTORY (MatchID, TutorID, StudentID,
StartDate, EndDate)
TutorID
CertDate
Status
100
1/05/2018 Active
MatchID
TutorID
StudentID
StartDate
EndDate
1/05/2018 Temp Stop
101
3000 1/10/2018
1
100
102
1/05/2018 Dropped
103
5/22/2018 Active
3001 1/15/2018
3002 2/10/2018
3003 5/28/2018
101
5/15/2018
104
5/22/2018 Active
3
3/01/2018
102
105
5/22/2018 Temp Stop
106
106
5/22/2018 Active
103
3004 6/01/2018
6/15/2018
STUDENT (StudentID, Group, Read)
3005 6/01/2018
3006 6/01/2018
6.
104
6/28/2018
StudentID
104
Group
Read
7
3000
3
2.3
3001
2
5.6
3002
3
1.3
TUTOR REPORT (MatchID, Month, Hours, Lessons)
3003
1
3.3
MatchID
Hours
Month
1 6/18
Lessons
3004
2
2.7
3005
4
4.8
4 6/18
8
6
3006
3
7.8
5 6/18
4
3007
4
1.5
4 7/18
10
1
7/18
2
Transcribed Image Text:TUTOR (TutorID, CertDate, Status) MATCH HISTORY (MatchID, TutorID, StudentID, StartDate, EndDate) TutorID CertDate Status 100 1/05/2018 Active MatchID TutorID StudentID StartDate EndDate 1/05/2018 Temp Stop 101 3000 1/10/2018 1 100 102 1/05/2018 Dropped 103 5/22/2018 Active 3001 1/15/2018 3002 2/10/2018 3003 5/28/2018 101 5/15/2018 104 5/22/2018 Active 3 3/01/2018 102 105 5/22/2018 Temp Stop 106 106 5/22/2018 Active 103 3004 6/01/2018 6/15/2018 STUDENT (StudentID, Group, Read) 3005 6/01/2018 3006 6/01/2018 6. 104 6/28/2018 StudentID 104 Group Read 7 3000 3 2.3 3001 2 5.6 3002 3 1.3 TUTOR REPORT (MatchID, Month, Hours, Lessons) 3003 1 3.3 MatchID Hours Month 1 6/18 Lessons 3004 2 2.7 3005 4 4.8 4 6/18 8 6 3006 3 7.8 5 6/18 4 3007 4 1.5 4 7/18 10 1 7/18 2
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
SQL Query
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning