i want to seach and display current date no of record from database.
how to find no of records for current date using sql.
i tried as below but it return me total no of records i want current date records from db.
select count(*) from Table.
i want to seach and display current date no of record from database.
how to find no of records for current date using sql.
i tried as below but it return me total no of records i want current date records from db.
select count(*) from Table.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Nov 7, 2022, 12:21 PM
Hi Bhavesh,
You can achieve this if you have date column in your table, If you have date column then try this one,
Sachin SinghPosted Nov 7, 2022, 7:44 AM
Don't you have any date/datetime column?
Naresh BeniwalPosted Nov 7, 2022, 4:09 AM
https://stackoverflow.com/questions/9229862/how-to-count-number-of-records-per-day
Muhammad Imran AnsariPosted Apr 2, 2022, 6:19 PM
Abhishek SainiPosted Apr 1, 2022, 6:21 AM
SELECT COUNT(*) FROM
mytable
WHERE 'myfkid' = 1112 and datecolumnnamecreated, '%d-%m-%Y') = curdate();