Computer AwarenessHardIBPS SO IT Officer

Table A has 6 rows and 3 columns, and table B has 4 rows and 2 columns. What does SELECT * FROM A, B (with no WHERE clause) return?

  1. A. 10 rows and 5 columns
  2. B. 24 rows and 5 columns
  3. C. 24 rows and 6 columns
  4. D. 10 rows and 6 columns

Correct answer: B. 24 rows and 5 columns

Listing two tables without a join condition forms the Cartesian product: 6 × 4 = 24 rows, each with 3 + 2 = 5 columns.

हिंदी में

तालिका A में 6 पंक्तियाँ और 3 स्तंभ हैं, और तालिका B में 4 पंक्तियाँ और 2 स्तंभ हैं। SELECT * FROM A, B (बिना WHERE क्लॉज़ के) क्या लौटाता है?

  1. A. 10 पंक्तियाँ और 5 स्तंभ
  2. B. 24 पंक्तियाँ और 5 स्तंभ
  3. C. 24 पंक्तियाँ और 6 स्तंभ
  4. D. 10 पंक्तियाँ और 6 स्तंभ

उत्तर: B. जॉइन शर्त के बिना दो तालिकाएँ लिखने से कार्तीय गुणनफल बनता है: 6 × 4 = 24 पंक्तियाँ, प्रत्येक में 3 + 2 = 5 स्तंभ।

More Computer Awareness questions

Exams that ask this topic