No products in the cart.

There is a column HOBBY in …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

There is a column HOBBY in a table CONTACTS. The following two 1 statements are giving different outputs. What may be the possible reason? SELECT COUNT(*) FROM CONTACTS; SELECT COUNT(HOBBY) FROM CONTACTS;
  • 1 answers

Kartick Chauhaan 3 years, 11 months ago

SELECT COUNT(*) FROM CONTACTS;  ☝️ This statement gives one type of output. This is because the function Count(*) counts total number of records in the table. It also includes the NaN values as records. BUT THE STATEMENT SELECT COUNT(HOBBY) FROM CONTACTS; Gives another output. This is because this statement is applied over a column and so it does not includes the NaN values.
http://mycbseguide.com/examin8/

Related Questions

Founder of python
  • 2 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App