How will you collect the date from current date to last
older 6 days date in sql server 2005
Answer Posted / sreeram
select convert(varchar,cast(dateadd(dd,-6,getdate()) as datetime),101)
ans:09/21/2010
ofcourse the above are also correct
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to connect Azure federated root database and apply federation in entity framework?
Define cross join in sql server joins?
System requirements for sql server 2005 express edition?
You want to use a perspective in an mdx query. How do you select the perspective?
What are approximate numeric data types in ms sql server?
How many full-text indexes can a table have?
How to insert a new row into a table with "insert into" statements in ms sql server?
Why olap is used?
Explain how to use linked server?
Can we use custom code in ssrs?
What is a transactions?
What is oltp (online transaction processing)?
Explain primary key, foreign key and unique key?
List the different normalization forms?
Which sql server table is used to hold the stored procedure scripts?