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.
| Author |
Topic |
|
mrhankey
Starting Member
1 Post |
Posted - 2010-03-17 : 13:24:38
|
| hi,i have a column in my db that had a duedate and i want to create a query that will display the duedate= to todays date so the users know they have to complete it by today?any help would be appreciated.many thanks |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-03-17 : 13:26:51
|
| [code]....WHERE duedate >=DATEADD(dd,DATEDIFF(dd,0,GETDATE()),0)AND duedate < DATEADD(dd,DATEDIFF(dd,0,GETDATE()),1)[/code]------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|