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
List the types of recovery model available in sql server?
Types of Authentications in Sql Server? How user gets authenticated through windows authentication?
What are the advantages of partitioning?
What are the aggregate and scalar functions?
Can we call stored procedure in view in sql server?
What stored by the tempdb ? : sql server database administration
Define constraints and give an example of their use?
How to list all columns in a table using odbc_columns()?
What are rows and columns?
What stored by the msdb?
In what sequence sql statement is processed?
What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?
hi i am working as a testengineer , so i want to no the backend data base connection can any one tell mwe in detail
what's the difference between delete table and truncate table commands? : Sql server database administration
What do you understand by recursive stored procedures?