Ask a Question related to Coldfusion Database Access, Design and Development.
-
PegasusT4 #1
WHERE query problem
Hi,
I need a WHERE statement that does the following:
WHERE LEFT(name,1) IN 'abcdef'
i.e. I want to see if the first letter in name field is in the 'abcdef'
string, and if it is, return that record.
Any help is greatly appreciated.
Thanks
PegasusT4 Guest
-
Query problem, please help.
mysql Ver 12.22 Distrib 4.0.24, for pc-linux-gnu (i386) gives me: The following database Error occured: You have an error in your SQL syntax.... -
***Sql Query problem
Randy Webb wrote: SELECT DISTINCT OrderID FROM trans WHERE Trans_ID = 1 AND OrderID NOT IN (SELECT DISTINCT OrderID FROM trans WHERE Trans_ID =... -
Query of Query problem
Error Executing Database Query. Query Of Queries runtime error. Table named "DATA" was not found in Memory. It is misspelled, or the table is... -
Query on Query and CF casting problem
I am using a custom tag in MX7 that was working fine in 5 that renders a table. The input to the custom tag is a query and it's columns along with... -
query problem
SELECT top5.PRODID, p.PRODNAME FROM ( SELECT TOP 5 SALES = COUNT(*), PRODID FROM SALES GROUP BY PRODID ORDER BY SALES DESC ) AS top5 INNER JOIN... -
The ScareCrow #2
Re: WHERE query problem
This will depend upon the db your using, so you may need to find out if your db
has the left function, from memory ms access does. You then need to format the
list so that it is a qualified comma seperated list
WHERE LEFT(name,1) IN ('a','b','c','d','e','f' )
Ken
The ScareCrow Guest



Reply With Quote

