Recent questions tagged sql

1 votes
1 answer
181
0 votes
1 answer
182
0 votes
1 answer
183
In this question:-https://gateoverflow.in/8225/gate2015-1-27I am not understanding how the query is returning 2 .I think DISTINCT must be there to give the correct answer...
0 votes
0 answers
184
0 votes
1 answer
185
i don't know the actual answer for the questionaccording to me answer should be A please confirm it
0 votes
0 answers
186
i don't know the actual answer for the questionaccording to me answer should be A please confirm
0 votes
0 answers
187
i don't know the actual answer for the questionaccording to me answer should be 5
0 votes
1 answer
188
i don't know the actual answer for the question
0 votes
0 answers
189
i don't know the actual answer for the questionaccording to me answer should be 127
1 votes
0 answers
193
SELECT sname FROM s WHERE NOT EXISTS ( SELECT * FROM b WHERE NOT EXISTS ( SELECT * FROM r WHERE r.sid=s.sid AND r.bid=b.bid))how to understand these query please explain
0 votes
0 answers
194
0 votes
1 answer
196
0 votes
0 answers
199
Can someone derive it with tablehttps://gateoverflow.in/242014/dbms-raghu-ramakrishnan?show=243128I am still unable to get proper answer by hand
0 votes
0 answers
200
0 votes
0 answers
202
0 votes
1 answer
203
0 votes
1 answer
204
0 votes
1 answer
205
0 votes
1 answer
206
0 votes
1 answer
207
0 votes
1 answer
208
0 votes
1 answer
209
0 votes
0 answers
210
If aggregate functions are used in the select clause along with attribute list we must use group by clause for grouping the attribute values ?SELECT a1, COUNT(*) FROM Emp...