I have this table:
subscriberID | date | segmentID | Counter
------------------------------------------
1 | 1.1 | 2 | 3
1 | 2.1 | 4 | 2
1 | 3.1 | 4 | 5
2 | 1.1 | 1 | 12
2 | 2.1 | 1 | 1
2 | 3.1 | 2 | 10
3 | 1.1 | 2 | 4
I have to write SQL Query that does:
Get the top 3 most common segmentID's (by counter) for a given subscriberID.
can anyone help me with that? Thanks.