Question: 3 . Consider the following tables. ( 1 0 pts ) begin { tabular } { | c | c | c | c

3. Consider the following tables. (10 pts )
\begin{tabular}{|c|c|c|c|c|}
\hline \multicolumn{3}{|l|}{\begin{tabular}{l}
sql>select * from students; \\
student_id| name | surname | department
\end{tabular}} & \multicolumn{2}{|l|}{\[
\begin{array}{l}
\hline \text { sql> select * from grades; }\\
\text { student_id | course_code | grade }
\end{array}
\]}\\
\hline 20201| John & | Cash & | CENG & 20186| CS3003 & 86\\
\hline 20193| Mark & | Twish & | EENG & 20207| CS3003 & 75\\
\hline 20186| Mary & | Hall & | CENG & 20201| CS3003 & 81\\
\hline 20198| Jule & | Carter & | EENG & 20198| CS3003 & 90\\
\hline 20207| Martin & | Hary & | CENG & 20198| CS3001 & 86\\
\hline 20195| Lorry & | Bond & | CENG & 20195| CS3003 & 74\\
\hline 20192| Jane & | York & | EENG & 20192| CS3001 & 67\\
\hline & & & 20193| CS3001 & 83\\
\hline & & & 20192| CS3003 & 79\\
\hline
\end{tabular}
Write the smallest SQL that will produce EXACTLY the following output using the table above:
a)
\begin{tabular}{|l|}
\hline CENG 4\\
EENG 3\\
\hline
\end{tabular}
b)
\begin{tabular}{|l|}
\hline CS300178.66\\
CS300380.83\\
\\
\hline
\end{tabular}
c)
\begin{tabular}{|l|}
\hline CS30018667\\
CS30039074\\
\\
\hline
\end{tabular}
d)
\begin{tabular}{|l|}
20192\\
20198\\
2
\end{tabular}
e) EENG CS300178.6
EENG CS300384.5 CENG CS300379.0
\begin{tabular}{|l|l|}
\hline b) & \\
c) & \\
\hline d) & \\
\hline
\end{tabular}
3 . Consider the following tables. ( 1 0 pts ) \

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!