how to count datewise data in sqlserver
Answers were Sorted based on User's Feedback
Answer / mythili
select BillDate, count(*) from AdminSalesDetailsItems group by BillDate
| Is This Answer Correct ? | 11 Yes | 6 No |
Answer / amit bhardwaj
SELECT COUNT(colmnName) FROM Tablename GROUP BY Columnname
| Is This Answer Correct ? | 9 Yes | 6 No |
Answer / ambi
select BillDate, count(*) [Total] from
AdminSalesDetailsItems group
by convert(varchar(50),BillDate,101)
select BillDate, count(*) [Total] from
AdminSalesDetailsItems group
by convert(varcharBillDate,101)
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / vidit tyagi
select BillDate, count(*) from AdminSalesDetailsItems group
by convert(BillDate,varchar,101)
| Is This Answer Correct ? | 4 Yes | 4 No |
What is difference between foreign key and unique key?
Mention a few common trace flags used with sql server?
What is the difference between substr and charindex in the sql server?
What is the advantage of sql server?
Syntax to find the used space and free space of the Data file in a database(SQL Server). Following queries didn't give the exact Used space and Free Space Information sp_spaceused;DBCC showfilestats;exec MyDbName.dbo.sp_spaceused;SP_HELPFILE Can any one tell me the query for how to find the exact used data file space and free space in a Data File?
Can a trigger be created on a view?
Where are full-text indexes stored?
What is sql server locking?
What are the different ways of moving data/databases between servers and databases in SQL Server?
What is xdr?
What are the steps to process a single select statement?
1.How to check the backup file details if we do not have access to that folder 2.how to check the backup file size without connecting to the folder
3 Answers CarrizalSoft Technologies, IBM,
Oracle (3259)
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)