DSSSB TGT CS Mock 02 – Question 150

Question:

In SQL, what is the effect of an INNER JOIN between two tables that share no matching rows based on the join condition?

SQL में, यदि दो तालिकाओं में जॉइन शर्त के आधार पर कोई भी पंक्ति मेल नहीं खाती है, तो INNER JOIN का परिणाम क्या होगा?

Options:

  • An empty result set (0 rows)
  • A Cartesian Product of both tables
  • All rows from the left table with NULLs
  • A syntax error
  • एक रिक्त परिणाम (0 पंक्तियाँ)
  • दोनों तालिकाओं का कार्टेशियन गुणन
  • बाईं तालिका की सभी पंक्तियाँ NULL के साथ
  • सिंटैक्स त्रुटि

Correct Answer: a)

Explanation:

An INNER JOIN returns only those rows that satisfy the join predicate in both relations. If no rows match, it returns an empty set (0 rows) (Option a).

INNER JOIN केवल उन्हीं पंक्तियों को लौटाता है जो शर्त को संतुष्ट करती हैं। कोई मैच न होने पर परिणाम में 0 पंक्तियाँ (खाली सेट) प्राप्त होती हैं (विकल्प a)।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top