|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Is this legal?
I am using MS SQL 2000 Server
I am wondering scripting Query can I do this: IF (@Dateday=1-31) AND (@Datemonth=1-12) .......... |
|
#2
|
||||
|
||||
|
yes you can, but you will not get the results you expect
what you wrote is equivalent to @dateday=-30 and @datemonth=-11 you will have to break it out like @dateday >= 1 and @dateday <= 31 and @datemonth >= 1 and @datemonth <= 12 rudy |
|
#3
|
|||
|
|||
|
Thanks tip r937, I will try that.
|
![]() |
| Viewing: Dev Shed Forums > Databases > Database Management > Is this legal? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|