I have a table with some data that looks like the below screenshot. I'm trying to work out a way of returning one s_id for each unique combination of discount_lookup, abilitiy_level_lookup, payment_installments and weekly_sessions. I've put red dots next to the s_id's that the query should return on the screenshot, but it doesn't actually matter whether the s_id returned is the lowest numbered one for each combinations. 1,1,1,1 could return s_id 14292(as indicated), but 14407 would be equally acceptable. The query is for exception testing on another process that is run against this data.
I'd be grateful for any help/pointers on the best way to do this, so thanks in advance!
I'd be grateful for any help/pointers on the best way to do this, so thanks in advance!