Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

join in update query in mysql

UPDATE employees
    LEFT JOIN
    merits ON employees.performance = merits.performance 
SET 
    salary = salary + salary * 0.015
WHERE
    merits.percentage IS NULL;Code language: SQL (Structured Query Language) (sql)
Source by www.mysqltutorial.org #
 
PREVIOUS NEXT
Tagged: #join #update #query #mysql
ADD COMMENT
Topic
Name
3+6 =