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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sybase date function

Status
Not open for further replies.

poolshark8or9

Technical User
Jan 20, 2005
4
US
i want to retrieve a number of records for a certain period of time excluding the weekends. i understand that sybase does not have a built in function to do this. does anyone have an example of how to create a user defined function to do this? please help! any input would be greatly appreciated

Thanks,

Tony
 
You can restrict your query with ..


where not(upper(datename(weekday,datefield)) like 'S%')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top