performing a query or check on a valuelist

i have the following value list which gets data from a query:

<cfset userinvoices_list = ValueList(Query1.t_current_amount)>

how do i write a query or some other statement that checks if any of the values in this list
are NOT equal to '.00' AND also if the first character of any of the values are NOT equal to '-' ?

(i put quotes around each value because they are text values not numbers)  

so a query that returns zero results would be if the valuelist contained something like:

(.00, .00, .00, .00)

but would return 2 results if the valuelist contained something like:

(2.37, .00, -2.54, .00)
Judy DeoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

1. to put quotes around the values you use listqualify( list, "'" ) this will put single quotes around the list values
<cfset variables.userinvoices_list = listqualify( variables.userinvoices_list, "'" ) />

2. to return a result that does not contain any of the values you use
SELECT * FROM yourTable WHERE identityOrValueName NOT IN( #variables.userinvoices_list# )

3. to return a result that does contain any of the values you use
SELECT * FROM yourTable WHERE identityOrValueName IN( #variables.userinvoices_list# )

PS. if the values are integers you do not use quotes around the values, i.e. leave out step 1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
If you do not want to include any negative numbers you first need to remove these numbers from the list, i.e.
1. you loop over the list
2. check if the value is negative
3. if negative then remove the value from the list

Let me know if you need a example for this?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.