Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateAdd Function

Status
Not open for further replies.

renee35

MIS
Jan 30, 2007
199
Could someone please help me figure out how to change the below code:

a.effdate between @PrevQtrClose + 1 and @enddate

to say between @PrevQtrClose + dateadd (sec + 1)?

What I need is to capture all data between the prevqtrclose and the next day, and right now I missing anything that falls in between.

Thanks!

Thanks a bunch!!

-T
 
You want to add 1 second to @PrevQtrClose?

So... this?


a.effdate between DateAdd(Second, 1, @PrevQtrClose) And @EndDate

-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top