Hello everyone i want search data from invoices and client by today date
I'm using GETDATE()
for example two tables
1 Client
- ID int
- Name Varcher
2 Invoice
- ID int
- ClientID int
- date Datetime
- Total money
query
Select *
from client c
inner join invoice i on c.id = i.ClientID
where i.date = getdate()
result
nothing
but i have some data have same date today