Say I have a table that has items and attributes listed like,
frog green
cat furry
frog nice
cat 4 legs
frog 4 legs
From the items column I want to select unique objects that have both the green and 4 legs attribute. I would expect to get back just the frog object in this case. What is the most efficient query to do this?
select * from table where thing='frog'
nothing beats knowing exatcly what you want.
Hard because it's not a normalised model.It's a weekend.You are filtering across multiple, unconnected rows, so you'd have to extract each attribute in turn and then match items.