Question: table1 -> Person name, gender, age, date , time table2 -> Person name, prayed rakats table3 -> Person name ,on-time/offtime table4 -> Person name, time
table1 -> Person name, gender, age, date ,
time table2 -> Person name, prayed rakats
table3 -> Person name ,on-time/offtime
table4 -> Person name, time to pray
Question 9:-Answer the following as SQL queries. Also write corresponding relational algebra expression:
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
