Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions

Question

=+d. Write at least five sentences or phrases for body copy.

Answered: 1 week ago

Question

=+b. Create a tagline.

Answered: 1 week ago