Professional Documents
Culture Documents
Asw
Asw
update employee
set commission_pct = '0'
where employee_id = '149';
update employee
set bonus = '1250'
where employee_id = '176';
anjay
Microsoft Windows [Version 10.0.22621.819]
(c) Microsoft Corporation. All rights reserved.
C:\Users\ASUS>cd\
C:\>cd xampp\mysql\bin
C:\xampp\mysql\bin>mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 9
Server version: 10.4.25-MariaDB mariadb.org binary distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
C:\xampp\mysql\bin>mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 10.4.25-MariaDB mariadb.org binary distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
C:\xampp\mysql\bin>mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 11
Server version: 10.4.25-MariaDB mariadb.org binary distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [HRD_MuhammadRaihan_TIC]>
MariaDB [HRD_MuhammadRaihan_TIC]> select* from jobs;
+------------+--------------------------------+------------+------------+
| job_id | job_title | min_salary | max_salary |
+------------+--------------------------------+------------+------------+
| AC_ACCOUNT | Public Accountant | 4200 | 9000 |
| AC_MGR | Accounting Manager | 8200 | 16000 |
| AD_ASST | Administration Assistant | 3000 | 6000 |
| AD_PRES | President | 20000 | 40000 |
| AD_VP | Administration Vice President | 15000 | 30000 |
| IT_PROG | Programmer | 4000 | 10000 |
| MK_MAN | Marketing Manager | 9000 | 15000 |
| MK_REP | Marketing Representative | 4000 | 9000 |
| SA_MAN | Sales Manager | 10000 | 20000 |
| SA_REP | Sales Representative | 6000 | 12000 |
+------------+--------------------------------+------------+------------+
10 rows in set (0.000 sec)
update employee
set manager_id = '149'
where employee_id = '174';
update employee
set manager_id = '149'
where employee_id = '176';
update employee
set manager_id = '149'
where employee_id = '178';
update employee
set manager_id = '101'
where employee_id = '200';
update employee
set manager_id = '101'
where employee_id = '205';
update employee
set manager_id = '201'
where employee_id = '202';
update employee
set manager_id = '205'
where employee_id = '206';
update employee
set bonus = '1500'
where employee_id = '149';
update employee
set bonus = '1700'
where employee_id = '174';
update employee
set bonus = '1250'
where employee_id = '176';