Question: 3. Answer the questions based on the following tables. Provide the SQL statements for the following questions: Jawab soalan-soalan berikut berdasarkan jadual-jadual di bawah. Berikan

 3. Answer the questions based on the following tables. Provide the

3. Answer the questions based on the following tables. Provide the SQL statements for the following questions: Jawab soalan-soalan berikut berdasarkan jadual-jadual di bawah. Berikan kenyataankenyataan SQL untuk soalan-soalan berikut: Table: EMPLOYEE Jadual: EMPLOYEE Table: COMPANY Jadual: COMPANY 6 [CMT221/CMM222] 6/ Table: WORK Jadual: WORK (a) (i) Add a new column MANAGER_ID to table EMPLOYEE. Set the data type for MANAGER_ID to integer. Define MANAGER_ID as a foreign key referencing EMP_ID. Tambahkan satu lajur MANAGER_ID dalam jadual EMPLOYEE. Tetapkan jenis data integer bagi MANAGER_ID. Tetapkan MANAGER_ID sebagai kunci asing yang merujuk EMP_ID. (ii) Update MANAGER_ID column in EMPLOYEE table following the conditions below. Kemas kini lajur MANAGER_ID dalam jadual EMPLOYEE mengikut syaratsyarat berikut

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!