Avatar of Jason Livengood
Jason LivengoodFlag for United States of America

asked on 

SQL Date Comparison Issue

I have a date field in my database table called "DataValidationDue" . If the value in this table is past todays date I would like it to return a string that says "Overdue" . If the value is equal to or earlier than todays date, I would like SQL server to return a string saying "Pending" Can anyone suggest to me the correct syntax for this ? Any help would be most appreciated.
Microsoft SQL Server 2008Microsoft SQL Server 2005ASP.NET

Avatar of undefined
Last Comment
Jason Livengood
ASKER CERTIFIED SOLUTION
Avatar of penyCuicas
penyCuicas

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of bitref
bitref
Flag of United States of America image

I think u need the vice versa i.e.use > instead of <
Avatar of Jason Livengood

ASKER

Thanks
ASP.NET
ASP.NET

The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications

128K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo