Ravindra BagaleCourses & study guides Track your progress

7. NULL Values: गहाळ डेटा बरोबर हाताळा

7.2 IS NULL आणि IS NOT NULL ने गहाळ शोधा

का (Why). फिक्स/रिपोर्ट आधी गहाळ रो शोधणे गरजेचे.

काय (What). IS NULL आणि IS NOT NULL — गहाळसाठी खास टेस्ट.

कसं (How). WHERE note IS NULL / WHERE note IS NOT NULL

पायऱ्या

  1. गहाळ नोट्स मोजा.
  2. नोट असलेले रो.
  3. interview_mini tickets.priority वर तेच.

उदाहरणे

उदाहरण 1 · dataset: raja_coffee

SELECT COUNT(*) AS missing_notes
FROM orders
WHERE note IS NULL;

Output

missing_notes
22

Meaning. किती ऑर्डर्सना नोट नाही.

उदाहरण 2 · dataset: interview_mini

SELECT ticket_id, agent, priority
FROM tickets
WHERE priority IS NULL;

Output

ticket_idagentpriority
6James

Meaning. अज्ञात प्राधान्याच्या टिकट्स.

Ravindra Bagale's Tip

IS NULL reads like English — keep using it; do not invent = NULL.