in how many ways we can use count()
Answers were Sorted based on User's Feedback
Answer / pravati
In two ways we can use count
1. SELECT COUNT(*) FROM table name.
2.SELECT COUNT(DISTINCT *) from table name.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are built in functions?
What the different types of Replication and why are they used?
What is a select query statement in ms sql server?
How to copy the tables, schema and views from one sql server to another?
Explain candidate key, alternate key, and composite key?
What is the full form of ddl?
What is the contrast between sql and mysql?
What is use of except clause?
How to drop an existing table with "drop table" statements in ms sql server?
how to select 5 to 7 rows from a table, which contains 10 rows?
How do I debug a stored procedure in sql server?
What is table-valued sub query?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)