sql server - SQL query to show data by today(current) date? -
i trying record database current date here query have tried bu getting no records table:
select * transactions transaction_date = getdate();
just compare date part
select *from transactions convert(char(10), transaction_date ,126)=convert(char(10), getdate(),126);
Comments
Post a Comment