Question: Answer the following as SQL queries. Also write corresponding relational algebra expression: table1 -> Person name, gender, age, date , time table2 -> Person name,
Answer the following as SQL queries. Also write corresponding relational algebra expression:
table1 -> Person name, gender, age, date , time table2 -> Person name, prayed rakats table3 -> Person name ,on-time/offtime table4 -> Person name, time to pray
a. Number of rakats prayed as Qaza by each person
b. How many females have skipped fajar salah on 1st shawwal
c. How many salah are missed by Mr. Noman
d. Average time M. Noman takes for praying Isha Salah
e. Which salah is missed mostly by M. Saleem
f. Which salah is missed the second most by all people
Please read below before answering, this is for your reference!
Salah is another word for Prayer
Salah Time is Prayer Time
Salah Date is Prayer Date
1st Shawwal is the First Day of the Islamic Month
Person Name is Primary
Isha Salah is Isha Prayer Time
Fajr Salah is Fajr Prayer Time
Qaza is OffTime Prayer
Missed Salah Time is just a Missed Prayer Time.
There are 5 prayers in a Day (Fajr [morning prayer], Zuhr [Noon Prayer], Asr [After Noon Prayer], Maghrib [Evening Prayer], Isha[Night Prayer])
If a prayer time is missed it can be offered at another time and counts as Qaza Prayer which is OffTime Prayer.
Hopefully that is all the data you need to answer this.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
