Suppose we have a table with different columns representing properties of an object e.g. Colour, Size, Model... many more. How can we get the best matching row if we query for Colour= red, Size= M and Model = x. I want to get the row which matches most of the criteria specified so possibly
- Red,S,null
- Red,null, null
- Red, M, null
Here I should get the 3rd row.