Same table, COUNT gives me 5 and 4. SQL bhai decide kar lo
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’re sharing one computer in the lab.

Comments (5)
Please log in to comment
Log In