Ask a Question related to Coldfusion Database Access, Design and Development.
-
trukhin #1
How to check all rows
Hi there. If some one can tell me how to check that all rows in the column have
same value. For example all team played 10 games, so in the column games all
rows must have value 10. And if all rows have value 10 then another action can
be performed.
Thanks in advance.
Andrey
trukhin Guest
-
How to retrieve first 50 rows , next 50 rows and so on in Informix
Hi All Is there any equivalent command for SET ROWCOUNT or LIMIT in INFORMIX to get the first 50rows, next 50 rows and so on if query returns... -
Spell Check and Grammer Check
Hello, Does anybody know about some good spell checker/grammer checker for html/asp pages? Thank you, Regards, Raj. -
Turning off Check in / Check out feature
How can I turn off the check in / check out feature? Can't seem to find it in the Contribute HELP. Thanks! -
Check to see if Check Boxes are Checked
How do I check to see if a checked box is check on the following page? This is what I have. What am I doing wrong? <%If... -
Select rows where other related rows don't exist
I would like to select rows from a table where another related row in the same table doesn't exist and the relation key is more than 1 column. ... -
paross1 #2
Re: How to check all rows
Something like this would give you a count of rows where the column wasn't 10.
Any result other than zero means that there are rows where the games value is
not 10. You will get a zero if the games column in all of the rows is 10. (You
will also get a zero if there are no rows at all in the table, or ALL games are
NULL, but otherwise this should give you what you are looking for.)
SELECT COUNT(*)
FROM YourTable
WHERE games <> 10
OR games IS NULL
AND
EXISTS(SELECT 1
FROM Your_table
WHERE games = 10)
Phil
paross1 Guest
-



Reply With Quote

