Recent questions tagged sql

3 votes
0 answers
423
Write appropriate SQL DDL statements for declaring the LIBRARY relational database schema of figure below. Specify the keys and referential triggered actions.
0 votes
1 answer
424
0 votes
4 answers
425
56 votes
1 answer
426
Consider the following database table named water_schemes:$$\overset{\text{Water_schemes}}{\begin{array}{|c|c|c|}\hline\textbf{scheme_no}& \textbf{district_name}& \te...
1 votes
1 answer
428
Can Foreign key value can be null??
1 votes
2 answers
429
1 votes
2 answers
430
Name the SQL aggregation operator which does not ignore NULL. COUNTMAXAVGSUM
2 votes
2 answers
432
0 votes
0 answers
436
0 votes
0 answers
438
0 votes
1 answer
439
How aggrigate functions in query will behave in data contains NULL values.I think answer should be D as all aggrigatre functions EXCEPT count will ignore NULL values. so,...
0 votes
2 answers
440
0 votes
0 answers
442
In sql, these all are right or wrongExist{}=trueNot exist{}=trueAll{}=trueNot all{}=trueAny{}=falseNot any{}=falseIn{}=falseNot in{}=false
3 votes
2 answers
443
Use the following tables for the below queries wherever table $1$ and table $2$ are used:Select *From Table 1Where not exists (Select $T_{2}B$ From Table 2 where $T_{2}B ...
0 votes
2 answers
444
Given answer: DPlease explain
0 votes
2 answers
445
ABC52110NULL21523In the above relation T the output of query:select * from T group by B;ABC10NULL2521Can anyone explain why this is the output?
0 votes
1 answer
446
Given answer: BI don't know how to deal with NULL in such query operations. Please explain.
0 votes
1 answer
447
Given answer: BI don't know how to deal with NULL in such query operations. Please explain.
1 votes
3 answers
448
2 votes
2 answers
449
6 votes
4 answers
450
Consider the following instance $R$.A1234BNull122The number of tuples returned by the following SQL query is select * from $R$ as $R1$where not exists (select * from $R$...