|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
query by day of the month
Looking advice on how to query for just a single day of the month. Example is for billing sent on the same day of each month, need to get all accounts that started on that day of the month no matter which month. If a account started January 7th, and it is July 7th, I would like it to list all accounts that started on the 7th day of the month. The database has a start date field in short date format.
|
|
#2
|
||||
|
||||
|
use the DAY() function
... where day(startdate) = day(getdate()) -- same day of the month as today |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > query by day of the month |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|