Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

How do I make a query in SQL where the date is greater than a certain date in SQL Server?

Asked by Natalie Downing Apr 2, 2021 1.2K views 1 answer
Share

About this question

I am trying this code:

SELECT * 

FROM dbo.March2010 A 

WHERE A.Date >= 2010-04-01;

 A.Date looks like: 2010-03-04 00:00:00.000

But, this is getting the desired output.

Can anybody address my query? or give any reference for this.

Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.