Q. Populate the table Department with data from table dept. Including only required columns.


Answer =

Insert into Department
Select id, name from dept ;

7 Comments

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

  1. Can we write like this?
    Insert into department values (101, "mahima") ;

    ReplyDelete
    Replies
    1. Yes, but you have to write all data one by one.

      Delete
  2. What's the use () after department ()

    ReplyDelete
  3. Can the answer be done in different way as well ....???

    ReplyDelete

Post a Comment

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

Previous Post Next Post