Computer Science EngineeringHard
A table has 10 rows and column x contains 3 NULL values. What does SELECT COUNT(x) FROM table return?
- A. 10
- B. 3
- C. 13
- D. 7
Correct answer: D. 7
COUNT(column) ignores NULLs, so only the 7 non-null values are counted.
Practise more OS, DBMS, Networks & Computer Architecture (ISRO CS) questionsOS, DBMS, Networks & Computer Architecture (ISRO CS): notes and key points
More OS, DBMS, Networks & Computer Architecture (ISRO CS) questions
- A schedule is conflict-serializable if and only if its precedence (serialization) graph
- Compared with a B-tree, a B+ tree keeps data only in linked leaf nodes, which makes it especially efficient for
- A B+ tree internal node must fit in a 1024-byte block. A key takes 10 bytes and a block pointer 6 bytes. The maximum number of keys in an…
- R(A,B) has 20 tuples and S(B,C) has 30 tuples. B is the primary key of S and a foreign key in R. What is the maximum number of tuples in…
- Basic two-phase locking guarantees
- TCP slow start begins with cwnd = 1 MSS and doubles each RTT with no losses. What is cwnd after 4 RTTs?