select device_id
from user_profile
where id in(1,2)