Let's pretend I have this table
PHP Code:
id|name|price|type|
-------------------
I need to select the name of all of the items that have a price greater than the max price of all items of a certain type.
So, if I have 20 items in the table and 4 of them are of type 'A' and the max price for any item of type 'A' is 10, I need to select all items of the 20 with a price greater than 10.
I tried joining the table with itself, but that didn't work so well. Can anyone tell me how to do this?
Thank you.