0% found this document useful (0 votes)
24 views6 pages

Update Unguided Kelas C

The document contains instructions to: 1. Create a new empNew table with the same attributes and data as the employees table. 2. Update the job_id in empNew to match employees with last name like Giezt where last name is like Kimberly. 3. Create a products table with attributes and sample data. 4. Create a duplicate products2 table and update all lot numbers to 50. 5. Display employee_id, department_id, and manager_id from employees grouped and rolled up in various ways.

Uploaded by

albertrizcha
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views6 pages

Update Unguided Kelas C

The document contains instructions to: 1. Create a new empNew table with the same attributes and data as the employees table. 2. Update the job_id in empNew to match employees with last name like Giezt where last name is like Kimberly. 3. Create a products table with attributes and sample data. 4. Create a duplicate products2 table and update all lot numbers to 50. 5. Display employee_id, department_id, and manager_id from employees grouped and rolled up in various ways.

Uploaded by

albertrizcha
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Update UNGUIDED KELAS C

1. Buatlah tabel empNew dengan atribut mengacu pada tabel employees yang telah ada. Isikan datanya sama seperti pada tabel employee.
2. Update job_id pada tabel empNew dengan data employee dengan job_id sama seperti employee dengan last_name seperti Giezt. Syarat data diupdate adalah last_name sepeti Kimberly. JOB_ID LAST_NAME PHONE HIRE_DATE SALARY

---------- -------------------- -------------------- --------- ---------124 141 / / se Rajs 142 143 144 Davies Matos Vargas 650.121.8009 17-OCT-95 3500 3100 2600 2500 ; Mourgos 650.123.5234 16-NOV-99 5800

650.121.2994 650.121.2874 650.121.2004

29-JAN-97 15-MAR-98 09-JUL-98

3. Buatlah tabel products dengan deskripsi tabel sebagai berikut:

Dan isikan datanya sebagai berikut:

4. Buatlah tabel products2 dengan isi sama persis seperti tabel products Update semua data lot pada tabel products2 menjadi 50.

5. Tampilkan data employee_id, department_id, dan manager_id dari table employees. Data dikelompokan berdasarkan employee_id, kedua berdasar employee_id dan manager_id secara rollup. Ketiga berdasar department_id secara cube. Keempat berdasar department_id dan manager_id dan terakhir, berdasar department_id, employee_id dan manager_id.
EMPLOYEE_ID JOB_ID DEPARTMENT_ID

----------- ---------- ------------101 AD_VP 102 AD_VP 205 AC_MGR 201 MK_MAN 202 MK_REP 149 SA_MAN 174 SA_REP 90 90 110 20 20 80 80

176 SA_REP 178 SA_REP 124 ST_MAN 200 AD_ASST

80

50 10

EMPLOYEE_ID JOB_ID

DEPARTMENT_ID

----------- ---------- ------------100 AD_PRES 103 IT_PROG 104 IT_PROG 107 IT_PROG 141 ST_CLERK 142 ST_CLERK 143 ST_CLERK 144 ST_CLERK 206 AC_ACCOUNT 101 AD_VP 102 AD_VP 90 60 60 60 50 50 50 50 110

EMPLOYEE_ID JOB_ID

DEPARTMENT_ID

----------- ---------- ------------205 AC_MGR

201 MK_MAN 202 MK_REP 149 SA_MAN 174 SA_REP 176 SA_REP 178 SA_REP 124 ST_MAN 200 AD_ASST 100 AD_PRES 103 IT_PROG

EMPLOYEE_ID JOB_ID

DEPARTMENT_ID

----------- ---------- ------------104 IT_PROG 107 IT_PROG 141 ST_CLERK 142 ST_CLERK 143 ST_CLERK 144 ST_CLERK 206 AC_ACCOUNT AD_VP AD_VP 90

AC_MGR AC_MGR

110

EMPLOYEE_ID JOB_ID

DEPARTMENT_ID

----------- ---------- ------------MK_MAN MK_MAN MK_REP MK_REP SA_MAN SA_MAN SA_REP SA_REP SA_REP ST_MAN ST_MAN 50 80 80 20 20

EMPLOYEE_ID JOB_ID

DEPARTMENT_ID

----------- ---------- ------------AD_ASST AD_ASST AD_PRES 90 10

AD_PRES IT_PROG IT_PROG ST_CLERK ST_CLERK AC_ACCOUNT 110 50 60

You might also like