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 guys,This might be something really simple but I am after an SQL statement that only gives me results where commitment time is due for tomorrow. (i.e. excludes results due 2 days time, next week etc)The field related to this is enquiry_commitment.commit_target_time.The filter should work for anytime the query is run and only focus on the next day's commitments.I think I need to use Date_Add but I couldn't get it to work. And I also tried: trunc(enquiry_commitment.commit_target_time,'DD') > trunc(SYSDATE,'DD')+1 but it did not work.Does anyone have a SQL code to share for this?