How will you collect the date from current date to last
older 6 days date in sql server 2005

Answer Posted / gopi muluka

Using DATEADD Function compare get the requited values

SELECT DATEADD(DD,-6,GETDATE())

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is spid in sql server profiler?

726


Explain what is row_number function?

756


explain the difference between oracle- sql and sql server sql ? if both are same y we r using 2 sw.s?

2188


How to link tables in sql server?

655


Can we insert data into view sql server?

716






What is change data capture (cdc) feature?

786


Explain go command in sql server?

724


What is normalization? Explain its different types?

789


What is log shipping? Can we do logshipping with SQL Server 7.0 - Logshipping is a new feature of SQL Server 2000. We should have two SQL Server - Enterprise Editions. From Enterprise Manager we can configure the logshipping. In logshipping the transactional log file from one server is automatically updated into the backup database on the other server. If one server fails, the other server will have the same db and we can use this as the DR (disaster recovery) plan.

2530


If a stored procedure is taking a table data type, how it looks?

6091


what are candidate key, alternate key and composite key? : Sql server database administration

668


What is statement level trigger?

751


When you use @@error and try-catch?

759


What is hierarchy, what are its types and difference between them? : sql server analysis services, ssas

917


Which table keeps information about stored procedures?

712