Q. Allocate the department situated in BOSTON to employee with employee number 7500 (tables EMPL, Dept).


Table ----



Answer =

Alter table Empl
Add ( city char( 50 ) ) ;
Update Empl
Set city = “BOSTON”
Where empno = 7500;

8 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. why we have used alter statement here??..

    ReplyDelete
  2. It is not necessary as the table is not shown here. It is your choice how do you want to do it. Either you create a column and check the value or do it directly. Is it ok?

    ReplyDelete
  3. There is no record with employee number 7500

    ReplyDelete
    Replies
    1. Don't focus on table just try to solve the question.

      Delete
  4. Where in previous question only empl table is given

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post