|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
SQL Query
I have a column for availability in the Options table.
This column contains 2 records 1st record: "Monday, Tuesday, morning" 2nd record: "Monday, evening". How do i write a query that returns" 1st record: if "avail = morning" both records: if "avail = monday" both records: if "avail = monday, morning" |
|
#2
|
|||
|
|||
|
You could use the LIKE statement perhaps?
SELECT * FROM TABLE WHERE column LIKE '%morning%' SELECT * FROM TABLE WHERE column LIKE '%monday%' SELECT * FROM TABLE WHERE column LIKE '%monday%' OR column LIKE '%morning%'
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > SQL Query |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|