I've got a MySQL table which contains 3 columns, the columns are named the following: TypeID, PropertyID, ValueID.
Let's say the table has the following rows:
| TypeID | PropertyID | ValueID |
| 45 | 266 | 736 |
| 46 | 266 | 736 |
| 50 | 266 | 736 |
| 52 | 266 | 736 |
| 50 | 229 | 628 |
| 52 | 229 | 628 |
I'm looking to select the TypeID when ValueID matches both 736 and 628 which is the case for both 50 and 52.
Please let me know if this needs explaining further.
TypeID, provideValueIdas IN clause and find distinct count of 2.