Stooshie
05-05-2011, 11:57 AM
Hi, I'll try and make this as clear as I can.
If I have a table (t) with a column (c) How do I display a list of c values where that value only exists once in the table.
I have tried:
SELECT
t.c,
count(t.c) AS num
FROM
t
GROUP BY
t.c
WHERE
num = 1
but I receive an error message saying the WHERE is an invalid use of the GROUP BY clause.
Any ideas anyone?
Andrew.
If I have a table (t) with a column (c) How do I display a list of c values where that value only exists once in the table.
I have tried:
SELECT
t.c,
count(t.c) AS num
FROM
t
GROUP BY
t.c
WHERE
num = 1
but I receive an error message saying the WHERE is an invalid use of the GROUP BY clause.
Any ideas anyone?
Andrew.