Hi All,
WOndering if someone can please give me a hand here.
Im trying to do a query in mysql where i am shown all the records that have the same email as the first record in the table. The trick is that the first record int he table does not always have id=1 because records are added to and deleted out of the table on a regular basis.
I was thinking of something along the lines:
select * from table where email=(select email from table where id=(select min(id) from table));
but cant seem to get it to glue properly.
Any help would be greatly appreciated.
Many Thanks
Dave