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 |
How to change server name in sql server?
Hi SQL gurus, i am working for an MNC... My team is having a problem in sql server. when user slects date prompts from jan 1st to april 30, it should display all months data like : jan aa feb bb mar cc but when it comes to april its taking data like : jan aa feb bb mar cc apr dd...and so on means its taking data again from jan to april which we dont want. we want the data only april month as we are getting jan, feb and mar... can any one write the code to relsove the issue please would be greatful if you can send to shiva_sans@yahoo.co.in and also please send your email also ...so that we will be in touch for any kind of queries ... Thanks a lot in Advance !!!
Why variables called the most powerful component of ssis?
Explain unique key in sql server?
Do you know what are the ways available in sql server to execute sql statements?
How to create a dynamic cursor with the dynamic option?
How will oyu test the stored procedure taking two parameters namely first name and last name returning full name?
What do you understand by a view? What does the with check option clause for a view do?
Explain about analysis services?
What is lookup override?
What are user defined datatypes and when you should go for them?
Write SQL queries on Self Join and Inner Join.
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)