I want to project the pid indexes for all products which have the same title, as I'm using the following as a sub query.
Product(pid, title)
SELECT p.title
FROM product p
group by title
HAVING ( COUNT(p.title) > 1 )
this outputs the duplicate titles fine, but how do I project the pid's instead?