I have two table, one is
ItemData(ItemID, ItemName)
and other one has few columns.
I can retrieve IDs from second table but I want ItemNames corresponding to those iIDs. I used following code but it is returning only one item name:
SELECT ItemName
FROM ItemData
WHERE ItemID = ( SELECT ItemID
FROM StoreItem
WHERE StoreId = 3
AND Value = 1)