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
What is a field in a table?
Explain system views?
Can you explain important index characteristics?
What are the different types of subquery?
What is transaction server explicit transaction?
List out the differences between the clustered index and non-clustered index in sql server?
I create a separate index on each column of a table. What are the advantages and disadvantages of this approach? : Sql server database administration
What is the purpose of indexing?
What are the difference between data mart and data warehouse? : sql server analysis services, ssas
Can we use trigger new in before insert?
What is primary key and example?
What is difference between after and before?
How do I create a trace in sql server?
How do you start single user mode in clustered installations?
What are the types of lock supported by ?