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
How do clustered indexes store data?
What are the advantages of paper records?
As per your opinion what are the five top responsibilities of a dba? : sql server database administration
How can you ensure that the database and sql server based application perform well?
What is SQL Azure Fabric?
What is a deadlock and what is a live lock?
How can I change procedure name in sql server?
How extra digits are handled with numeric data type literals?
How to maintain a fill factor in existing indexes?
What languages bi uses to achieve the goal?
what stored procedure can you use to display the current processes? : Sql server administration
When you should use a low fill factor?
Explain ranking functions?
What is inner join in sql server joins?
What is table level trigger?