Answer Posted / muhammadrashidmughal
select *
from table
where date between '01/01/2003' and '12-31-2008'
or
today is 09-08-2008
select *
from table
where year(date)=year(getdate)-5 and month(date)= '08' and
day(date) ='09'
or
select *
from table
where date >='09-08-2003'
and date<='09-08-2008'
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
what is database replication? : Sql server database administration
What are the export options of ssrs?
Does partitioning improve performance sql server?
How to assign null values to variables or columns?
Explain the various types of concurrency problem?
What are user defined functions in ms sql server?
Explain about sql server login?
How to use subqueries with the in operators in ms sql server?
How global temporary tables are represented and its scope?
What are scheduled tasks in sql server?
Explain the microsoft sql server delete command?
your distribution database is full what will u do
How to create percentile function?
How to round a numeric value to a specific precision?
What is the need for group functions in sql?