Re: sql query for faceted classification system

2004-01-02 Thread Roger Baklund
* Seamus R Abshere > i am developing a photo gallery with php4/mysql4.0 that uses > faceted classification. > > -my tables: > photos(photoid) > metadata(photoid,facetid) > > -to select all of the photoid's that are associated with either > facetid 1 or 2: > SELECT DISTINCT photos.* > FROM pho

sql query for faceted classification system

2004-01-02 Thread Seamus R Abshere
dear fellow MySQL users, i am developing a photo gallery with php4/mysql4.0 that uses faceted classification. -my tables: photos(photoid) metadata(photoid,facetid) -to select all of the photoid's that are associated with either facetid 1 or 2: SELECT DISTINCT photos.* FROM photos,metadata WHERE