Question: I'm having a bit of trouble setting up a command for this, any tips? (MySQL) Update table room to set the value of column roomtype

I'm having a bit of trouble setting up a command for this, any tips? (MySQL)

Update table room to set the value of column roomtype equal to the corresponding id value in the table roomtype. This requires a select * from roomtype; to see what the id value is for each roomDesc. For example, in my database

a. 1 | Critical

b. 2 | Private

c. 3 | Semi-Private

I think i need to use a Join but I'm not sure, any tips are appreciated !

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!