Skip to content
Advertisement

Tag: database

How to bring columns to a table from another table by the Id?

I have this tables People, Ticket, and Report. I would like to replace the ForeingKey idPeople with columns Name and Age from People table. In the Report table replace the Foreing Key idTicket with ticketCol2, Name, Age from the previous table Ticket with replaced columns (idPeople by Name, Age). And I the result should be like this table and must

Advertisement