I have a table called site_attributes which looks similar to this:
siteId attributeId tier
-------------------------------
site1id attribute1id 1
site1id attribute2id 1
site1id attribute3id 1
How can I select from the table the unique site id where attributeId is equal to attribute1id AND attributeId is equal to attribute3id?