Stuck with an SQL Query- please help :(

Associate
Joined
13 Nov 2003
Posts
1,567
Location
Manchester
Hi All

Stuck on a mysql query.

I will explain what it needs to do.

The query needs to select all entries from a table (portfolio_entries) where column 'type' = 'roofgardens', it needs to get a picture for each of those entries from a table called portfolio_images, where the colunm 'portfolio_id' is the same as that from the previous part of the query. It then needs to only bring back pictures where the column 'pic_type' = 'small'... to further complicate matters there are 4 small pictures for each portfolio entry.. I only need one

Any help is appreciated, because I am well lost ;)

aaron
 
Back
Top Bottom