I have a select query :
Select UID from att_value where Attributevalue="abc";
The output of this query is to be used to insert it into using the query :
Insert into useratt (ID,UID) Values ("123", output from the first query).
Can you please help me how to write a single query for this case.