Hi, I'm rather new to writing queries, so please forgive me if this is a really simple thing to do.
I need to create a CF query that finds out which rows in the DB have ANY of the values that are in a given list. Only one column in each row of the DB has their values stored in a list.
Example:
Passed list = 2,5,10,6
ColumX data in database:
Row 1 = 3, 5, 21, 4
Row 2 = 1, 4,...
User Profile
Collapse
-
Infide
Thanks for the reply, but dam, I've never seen SQL code like that. Looks more like a program in C than a query.
I copy and pasted what you wrote into my query (its being sent within a Cold Fusion query) and the system doesn't like it. No error, but the query name that was given in the CF tag doens't is not available for the Output.
Would there be a simpler way you think to compare the values of these to... -
Help with a query: returning rows from a coma delimited list of integers...
Hi, I'm rather new to writing queries, so please forgive me if this is a really simple thing to do.
I need to create a query that finds out which rows in the DB have ANY of the values that are in a given list. Only one column in each row of the DB has their values stored in a list.
Example:
Passed list = 2,5,10,6
ColumX data in database:
Row 1 = 3, 5, 21, 4
Row 2 = 1, 4, 7,...
No activity results to display
Show More
Leave a comment: