I have a table "empdata
" it contains fields create date, last modified date, emp id
. In order to check count am running query "select count(*) from empdata
". Now I need query where I have to get results till yesterday's date.
for example:
select count(*) from empdata
output: 23
select count(*) from empdate
( I need condition here for yesterday's date)
output:20
Note: **I need to use this query in java program so I cannot give yesterday's date in query. Java program will be running daily so date gets* changed daily.*