Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started