S Q L
Salary Increment
Kumar Shubham
When you have to apply
increment
How to Increase Salary
UPDATE
SET
WHERE
The UPDATE statement is
used to modify the
existing records in a table
The SET command is
used with UPDATE to
specify which columns
and values that should
be updated in a table.
WHERE
Clause =conditional
statement,
-used to filter records
-to extract only those
records that fulfill a
specified condition
S Q L
Salary Increment
Kumar Shubham
Increasing Salary
Result
List of Nth Salaries
List of Salaries
Descending Order
Table Name
Descending
Order
S Q L
Salary Increment
Kumar Shubham
Increasing Salary
New
Result
List of Nth Salaries
Up date Salary
Above a Threshold
Table Name
Descending
Order
10% increase for employees with
salary less than USD 80,000
Result
Salaries above 80000
increased
S Q L
Salary Increment
Kumar Shubham
Increasing Salary
New
Result
Updated Salaries
Up date Salary
Between a Threshold
Table Name
Descending
Order
10% increase for employees with
salary less than USD 80,000
Result
Salaries above 80000
increased
S Q L
Salary Increment
Kumar Shubham
Increasing Salary
Updated Salaries
New Result
Updated
Salaries
S Q L
Salary Increment
Kumar Shubham
Increasing Salary
New
Result
Updated Salaries
Up date Salary
Between a Threshold
Descending
Order
10% decrease for employees above
80000
Result
Salaries above 80000
decreased
Table Name
S Q L
Salary Increment
Kumar Shubham
Increasing Salary
New
Result
Updated Salaries
Up date Salary
Below a Threshold
Descending
Order
20% increase for employees
BELOW 80000
Result
Salaries BELOW 80000
Increased by 20%
Table Name

Salary increment command my sql

  • 1.
    S Q L SalaryIncrement Kumar Shubham When you have to apply increment How to Increase Salary UPDATE SET WHERE The UPDATE statement is used to modify the existing records in a table The SET command is used with UPDATE to specify which columns and values that should be updated in a table. WHERE Clause =conditional statement, -used to filter records -to extract only those records that fulfill a specified condition
  • 2.
    S Q L SalaryIncrement Kumar Shubham Increasing Salary Result List of Nth Salaries List of Salaries Descending Order Table Name Descending Order
  • 3.
    S Q L SalaryIncrement Kumar Shubham Increasing Salary New Result List of Nth Salaries Up date Salary Above a Threshold Table Name Descending Order 10% increase for employees with salary less than USD 80,000 Result Salaries above 80000 increased
  • 4.
    S Q L SalaryIncrement Kumar Shubham Increasing Salary New Result Updated Salaries Up date Salary Between a Threshold Table Name Descending Order 10% increase for employees with salary less than USD 80,000 Result Salaries above 80000 increased
  • 5.
    S Q L SalaryIncrement Kumar Shubham Increasing Salary Updated Salaries New Result Updated Salaries
  • 6.
    S Q L SalaryIncrement Kumar Shubham Increasing Salary New Result Updated Salaries Up date Salary Between a Threshold Descending Order 10% decrease for employees above 80000 Result Salaries above 80000 decreased Table Name
  • 7.
    S Q L SalaryIncrement Kumar Shubham Increasing Salary New Result Updated Salaries Up date Salary Below a Threshold Descending Order 20% increase for employees BELOW 80000 Result Salaries BELOW 80000 Increased by 20% Table Name