Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

subquery in sql

UPDATE dataflair_emp1 
SET salary=35000
WHERE emp_id  = ( SELECT emp_id
                    FROM dataflair_emp1
                    WHERE post='Sr.Manager');     
select * from dataflair_emp1;
Source by learnsql.com #
 
PREVIOUS NEXT
Tagged: #subquery #sql
ADD COMMENT
Topic
Name
4+1 =