i have a table with 2 columns like,
id | name
------------
1 | abc
2 | efg
3 | kkk
4 | lop
5 | xyz
Query:
select id from name where name IN ('kkk','lop','xyz','kkk','efg');
given result:
2 | efg
3 | kkk
4 | lop
5 | xyz
expected result:
id | name
-------------
3 | kkk
4 | lop
5 | xyz
3 | kkk
2 | efg
Any ideas?