Table Customer(id) has rows 1, 2, 3. Table Orders(cust_id) has rows 1, 1, 3. SELECT COUNT(*) FROM Customer c WHERE NOT EXISTS (SELECT 1 FROM Orders o WHERE o.cust_id = c.id); What is the result?
Correct answer C. 1
Topic / 89 questions
Page 4 of DBMS and SQL multiple-choice questions with answers. Tap an option to check yourself.
Page 4 of 5
Correct answer C. 1
Correct answer C. 2, 5
Correct answer B. Bilal, Hina
Correct answer A. 1
Correct answer C. (HR, 1), (IT, 2), (Ops, 0)
Correct answer D. 3
Correct answer A. 4
Correct answer B. 0
Correct answer D. 3
Correct answer C. A minimal superkey, with no proper subset that is also a superkey
Correct answer B. The combination (student_id, course_id)
Correct answer C. One-to-many
Correct answer B. Total participation
Correct answer A. Discriminator (partial key)
Correct answer C. Multivalued attribute
Correct answer C. Derived attribute
Correct answer A. Hierarchical model
Correct answer D. Granting users authorisation to access data
Correct answer A. Data redundancy and inconsistency
Correct answer B. External level