I need to get list of item from my table but in sorted order and list must be sorted as below:
Assume I have fields named as "productid" and "productname" and table as below records
1. milk
2. pizza
3. boll
And I have another list in array such as
boll
pizza
milk
Now I want to sort table list based on array value and get below list"
3. boll
2. pizza
1. mike
Is there any SQL which can do what I need? Or I need to do it manually via coding.