troubleshooting Question

Need help to write a computer column formula comparing dates

Avatar of nhmedia
nhmedia asked on
DatabasesASP.NETMicrosoft SQL Server 2008
12 Comments1 Solution339 ViewsLast Modified:
I am trying to right a computed column in  sql 2008 to set a bit field to true when a date in one column s older than a date in another column and  a furtther bit field is set to true

I got as far as trying to compare the dates, like so:

SELECT CASE WHEN DateCreated  < ScheduledStart  THEN '1'ELSE '0'END

But I kept getting an error when trying to enter the formula. What am I doing wrong?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 12 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros