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?
- A. 10 rows and 5 columns
- B. 24 rows and 5 columns
- C. 24 rows and 6 columns
- 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 क्लॉज़ के) क्या लौटाता है?
- A. 10 पंक्तियाँ और 5 स्तंभ
- B. 24 पंक्तियाँ और 5 स्तंभ
- C. 24 पंक्तियाँ और 6 स्तंभ
- D. 10 पंक्तियाँ और 6 स्तंभ
उत्तर: B. जॉइन शर्त के बिना दो तालिकाएँ लिखने से कार्तीय गुणनफल बनता है: 6 × 4 = 24 पंक्तियाँ, प्रत्येक में 3 + 2 = 5 स्तंभ।
More Computer Awareness questions
- A column Bonus holds the values 10, 20, NULL and 30 in four rows. What does SELECT AVG(Bonus) return?
- Which statement about DELETE and TRUNCATE in SQL is correct?
- In which order does a database logically process the clauses of a SELECT statement?
- The condition WHERE Salary BETWEEN 20000 AND 30000 selects rows whose salary is:
- A query must list the customers who have no phone number recorded (the Phone column is NULL). Which condition works?
- A City column holds Delhi, Pune, Delhi, NULL, Pune, NULL in six rows. What does SELECT COUNT(DISTINCT City) return?