Question: 3 . Consider the following tables. ( 1 0 pts ) begin { tabular } { | c | c | c | c
Consider the following tables. pts
begintabularccccc
hline multicolumnlbegintabularl
sqlselect from students;
studentid name surname department
endtabular & multicolumnl
beginarrayl
hline text sql select from grades;
text studentid coursecode grade
endarray
hline John & Cash & CENG & CS &
hline Mark & Twish & EENG & CS &
hline Mary & Hall & CENG & CS &
hline Jule & Carter & EENG & CS &
hline Martin & Hary & CENG & CS &
hline Lorry & Bond & CENG & CS &
hline Jane & York & EENG & CS &
hline & & & CS &
hline & & & CS &
hline
endtabular
Write the smallest SQL that will produce EXACTLY the following output using the table above:
a
begintabularl
hline CENG
EENG
hline
endtabular
b
begintabularl
hline CS
CS
hline
endtabular
c
begintabularl
hline CS
CS
hline
endtabular
d
begintabularl
endtabular
e EENG CS
EENG CS CENG CS
begintabularll
hline b &
c &
hline d &
hline
endtabular
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
