{"id":515,"date":"2026-11-23T20:56:06","date_gmt":"2026-11-23T20:56:06","guid":{"rendered":"https:\/\/padhai.co\/class-12\/?p=515"},"modified":"2026-11-24T07:22:28","modified_gmt":"2026-11-24T07:22:28","slug":"sql-count-null-doubt","status":"publish","type":"post","link":"https:\/\/padhai.co\/class-12\/2026\/11\/23\/sql-count-null-doubt\/","title":{"rendered":"Same table, COUNT gives me 5 and 4. SQL bhai decide kar lo"},"content":{"rendered":"<p>Five students in a table. Four have marks and one has NULL because they were absent. COUNT(*) gives 5. COUNT(Marks) gives 4. Okay, that much clicked.<\/p>\n<p>Now the absent student takes the test and gets 0. What do the two counts say <em>now<\/em>? Explain it like we\u2019re sharing one computer in the lab.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Five students in a table. Four have marks and one has NULL because they were absent. COUNT(*) gives 5. COUNT(Marks) gives 4. Okay, that much clicked. Now the absent student takes the test and gets 0. What do the two counts say now? Explain it like we\u2019re sharing one computer in the lab.<\/p>\n","protected":false},"author":862,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"social_post_type":[3],"social_topics":[38,40,39],"educator":[],"exam":[],"class_list":["post-515","post","type-post","status-publish","format-standard","hentry","category-uncategorized","social_post_type-question","social_topics-computer-science","social_topics-padhayi-fiction","social_topics-sql"],"_links":{"self":[{"href":"https:\/\/padhai.co\/class-12\/wp-json\/wp\/v2\/posts\/515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/padhai.co\/class-12\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/padhai.co\/class-12\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/padhai.co\/class-12\/wp-json\/wp\/v2\/users\/862"}],"replies":[{"embeddable":true,"href":"https:\/\/padhai.co\/class-12\/wp-json\/wp\/v2\/comments?post=515"}],"version-history":[{"count":2,"href":"https:\/\/padhai.co\/class-12\/wp-json\/wp\/v2\/posts\/515\/revisions"}],"predecessor-version":[{"id":757,"href":"https:\/\/padhai.co\/class-12\/wp-json\/wp\/v2\/posts\/515\/revisions\/757"}],"wp:attachment":[{"href":"https:\/\/padhai.co\/class-12\/wp-json\/wp\/v2\/media?parent=515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/padhai.co\/class-12\/wp-json\/wp\/v2\/categories?post=515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/padhai.co\/class-12\/wp-json\/wp\/v2\/tags?post=515"},{"taxonomy":"social_post_type","embeddable":true,"href":"https:\/\/padhai.co\/class-12\/wp-json\/wp\/v2\/social_post_type?post=515"},{"taxonomy":"social_topics","embeddable":true,"href":"https:\/\/padhai.co\/class-12\/wp-json\/wp\/v2\/social_topics?post=515"},{"taxonomy":"educator","embeddable":true,"href":"https:\/\/padhai.co\/class-12\/wp-json\/wp\/v2\/educator?post=515"},{"taxonomy":"exam","embeddable":true,"href":"https:\/\/padhai.co\/class-12\/wp-json\/wp\/v2\/exam?post=515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}