Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Date wise transaction

Author  Topic 

Mehala
Starting Member

7 Posts

Posted - 2012-02-06 : 06:37:11
Hi Friends,

I need a help from you friends,
I need to write a sql query ,
mycondition is i need to fetch data from jan 14.01.2012 is first week.
first week data should be 8 days, further to that it should be 7 days a week
how can i use Datediff and dateadd function.
Please help me.


Meks

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-02-06 : 09:28:31
can you show structure of how your output will be?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -