Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hi I created a query to show the list of PO's created today (current date) and are over 5000. But the query didn't bring any result. I'm running on SQL 2005. Here is the query:SELECT T0.[DocDate] as 'PO Date', T0.[DocNum] as 'PO Number', T0.[CardCode] as 'Vendor Code', T0.[CardName] as 'Vendor Name', T0.[DocTotal] as 'PO Amount' FROM OPOR T0 WHERE T0.[DocTotal] > 5000 and T0.[DocDate] = (CONVERT(datetime, GETDATE()))Not sure if it has something to do with the date format or something.Please helpMany thanksDKunth