I have a SQL Query in Cold Fusion:
<cfquery name="getspecials" datasource="warehouse" dbtype="ODBC">
SELECT * FROM specials
WHERE 88 IN (Itemlist) AND TYPE = "PM"
</cfquery>
Itemlist is a field of Specials that contains a comma seperated list ie 88,89,91,92
This Query is to find 88 in Itemlist and then check to see if the type field of speicials is also "PM".
This dosnt work, any suggestions?
Basically Im looking for the ID of an item in the itemslist field using only SQL and not using a cold fusion LOOP.
Thanks,
Dave
<cfquery name="getspecials" datasource="warehouse" dbtype="ODBC">
SELECT * FROM specials
WHERE 88 IN (Itemlist) AND TYPE = "PM"
</cfquery>
Itemlist is a field of Specials that contains a comma seperated list ie 88,89,91,92
This Query is to find 88 in Itemlist and then check to see if the type field of speicials is also "PM".
This dosnt work, any suggestions?
Basically Im looking for the ID of an item in the itemslist field using only SQL and not using a cold fusion LOOP.
Thanks,
Dave