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 to query multiple tables jointly?
is it important for a database administrator to understand the operating system and file access? : Sql server administration
What is save transaction and save point?
Explain sql delete command?
Can I disable or restrict ssrs export formats (rendering formats)?
Can I delete event logs?
A trigger can reference objects outside the current database? State true or false.
if no size is defined while creating the database, what size will the database have? : Sql server administration
What is the optimal disk configuration for a database server and what raid configurations would you use if budget is not a constraint?
How do you improve the performance of a SQL Azure Database?
Explain the characteristics of a transaction server for example atomicity, consistency, isolation, durability?
Is it safe to delete log files?
What is a self join in sql server?
What are indexers?
What is advantage data architect?