Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 1 : every customer, with NULLs in the order columns for customers having no orders / प्रत्येक ग्राहक, और जिन ग्राहकों के कोई ऑर्डर नहीं हैं उनके लिए ऑर्डर कॉलमों में NULL

Advertisement

Detailed Solution

सही उत्तर every customer, with NULLs in the order columns for customers having no orders / प्रत्येक ग्राहक, और जिन ग्राहकों के कोई ऑर्डर नहीं हैं उनके लिए ऑर्डर कॉलमों में NULL है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

Consider CUSTOMERS LEFT JOIN ORDERS ON CUSTOMERS.CID = ORDERS.CID. The result will contain: / CUSTOMERS LEFT JOIN ORDERS ON CUSTOMERS.CID = ORDERS.CID पर विचार करें। परिणाम में होगा:

1.
every customer, with NULLs in the order columns for customers having no orders / प्रत्येक ग्राहक, और जिन ग्राहकों के कोई ऑर्डर नहीं हैं उनके लिए ऑर्डर कॉलमों में NULL
2.
only customers who have placed at least one order / केवल वे ग्राहक जिन्होंने कम से कम एक ऑर्डर दिया है
3.
every order, with NULLs in the customer columns for unmatched orders / प्रत्येक ऑर्डर, और बेमेल ऑर्डरों के लिए ग्राहक कॉलमों में NULL
4.
only the rows that match in both tables / केवल वे पंक्तियाँ जो दोनों तालिकाओं में मेल खाती हैं

Correct Answer: every customer, with NULLs in the order columns for customers having no orders / प्रत्येक ग्राहक, और जिन ग्राहकों के कोई ऑर्डर नहीं हैं उनके लिए ऑर्डर कॉलमों में NULL

LEFT JOIN preserves all rows of the left table (CUSTOMERS); non-matching rows get NULLs for right-table columns. (c) describes RIGHT JOIN and (d) describes INNER JOIN. / LEFT JOIN बाईं तालिका (CUSTOMERS) की सभी पंक्तियाँ बनाए रखता है; बेमेल पंक्तियों में दाईं तालिका के कॉलमों में NULL आता है। (c) RIGHT JOIN का और (d) INNER JOIN का वर्णन करता है।

Downloaded from PrepSnap (prepsnap.in)