ok basicly I have a table, which contain three columns:
ID | ID2 | ID3
--------------
1 5 6
2 3 8
3 3 7
4 3 9
5 25 18
--------------
the inputs will be ID3 (e.g. 7,9,18) i.e multiple inputs, not just one
the output needs to be: which is the most popular ID2, based on how many ID3 shared. sorted by popularity.
e.g. input of 7,9,8,18 will result in 3 and then 25
all i need is the SQL query, if you can help i would appreciate it
if you need more explanation, tell me.
thanks in advance
ID | ID2 | ID3
--------------
1 5 6
2 3 8
3 3 7
4 3 9
5 25 18
--------------
the inputs will be ID3 (e.g. 7,9,18) i.e multiple inputs, not just one
the output needs to be: which is the most popular ID2, based on how many ID3 shared. sorted by popularity.
e.g. input of 7,9,8,18 will result in 3 and then 25
all i need is the SQL query, if you can help i would appreciate it
if you need more explanation, tell me.
thanks in advance