Hi,
I Hope someone can help me,
I have the following problem:
I have a table to query, which is a s follows:
Table: ECReact
id: int (11)
ReactID: varchar(5)
Ecid: int(11)
EC:varchar(12)
the question i have is, how do i check in the column ReactID for entries that have the same ECid occurring more than once ?
The query i came up with was as shown below:
SELECT ReactID, Ecid AS tmp
FROM ECReact
WHERE (SELECT COUNT (*)
FROM ECReact
WHERE Ecid = tmp) > 1;
however, i was getting exceptions thrown out - because i'm querying a mySQL database and apparently this does not support nested queries - I was hoping that someone could help me out with this query
Thanks in advance for any assistance
I Hope someone can help me,
I have the following problem:
I have a table to query, which is a s follows:
Table: ECReact
id: int (11)
ReactID: varchar(5)
Ecid: int(11)
EC:varchar(12)
the question i have is, how do i check in the column ReactID for entries that have the same ECid occurring more than once ?
The query i came up with was as shown below:
SELECT ReactID, Ecid AS tmp
FROM ECReact
WHERE (SELECT COUNT (*)
FROM ECReact
WHERE Ecid = tmp) > 1;
however, i was getting exceptions thrown out - because i'm querying a mySQL database and apparently this does not support nested queries - I was hoping that someone could help me out with this query
Thanks in advance for any assistance