|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
if i need to select a bunch of rows from a cloumn date_to where the month is JAN how can i achieve this regardless what year it is .
so far i have where booking.date_to=to_char('%JAN%', 'DD-MON-YY'); if any one could tell ,me if im on the right track that would be great !! ![]() |
|
#2
|
|||
|
|||
|
Quote:
Try to_char(to_date(<somedate>),'MM') |
|
#3
|
|||
|
|||
|
Try that,
where booking.to_char(to_date(date_to,'DD-MON-YYYY'),'MON')='JAN' |
|
#4
|
|||
|
|||
|
try
where ltrim(rtrim(TO_CHAR(booking.date_to,'MON')))='JAN'; |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > whats wring with my SQL again (BASIC) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|