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
 Some links guide datetime in sql !

Author  Topic 

pamyral_279
Posting Yak Master

143 Posts

Posted - 2006-02-17 : 04:54:43
I need some links which guide datetime in sql statement !!
Such as : I have a datetime column in my table , I need to calculate
the total orders in the today, or yesterday ...
Any one know ?
Thank you very much .

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-02-17 : 05:11:50
Just google SQL Server Datetime and you will find lots of this.
like :
http://www.sql-server-performance.com/fk_datetime.asp
http://www.databasejournal.com/features/mssql/article.php/2191631

----------------------------------
'KH'

Time is always against us
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-02-17 : 05:23:12
Also read about DateDiff, DateAdd, Group by in SQL Server help file

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2006-02-17 : 07:02:43
Hi pamyral_279, Welcome to SQL Team!

See: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55210&SearchTerms=Round+a+date+to

Kristen
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2006-02-17 : 09:51:05
You may find this function that generates a table with various date attributes useful. You can also look at it to see how to do various date calculations.

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=61519







CODO ERGO SUM
Go to Top of Page

pamyral_279
Posting Yak Master

143 Posts

Posted - 2006-02-18 : 05:57:12
Thank you people here !!
This is wonderful place.I will save a lot of time.
Thank you very much.
Go to Top of Page
   

- Advertisement -