Good day. I mimic the attitude of many to many due to the add. tables. Pseudocode:
Здание --------- id serial имя text Расположение --------- id serial название text Здание-Расположение -------- id sedial здание integer references Здание (id) расположение integer references Расположение (id) The problem is that I am a noob in SQL. The question is as follows. How do I properly fill in and retrieve data? Now I do everything in a few requests. Is it possible to add or retrieve data for all tables at once? If yes, please provide a sample code.