Answer the question
In order to leave comments, you need to log in
SQL query to replace data in one table from another table to display the table on the screen
Good time of the day!
The second day I suffer with this request! It is necessary to replace one column in the table that stores the id from another table, it is necessary to replace it with the text associated with this id. The base is used by MS Access, requests are sent from under C#.
In my variants of implementation knocked out errors: 1) Syntax error FROM; 2) Type mismatch; 3)
In this version, there was the first mistake No. 1:
SELECT ID_Товара, Название, Фирма_производитель, Стоимость, Количество_в_наличии FROM Изделие JOIN Фирмы_производители ON Изделие.Фирма_производитель=Фирмы_производители.Название_фирмы
SELECT ID_Товара, Название, Фирма_производитель, Стоимость, Количество_в_наличии FROM Изделие INNER JOIN Фирмы_производители ON Изделие.Фирма_производитель=Фирмы_производители.Название_фирмы
SELECT ID_Товара, Название, Фирма_производитель, Стоимость, Количество_в_наличии FROM Изделие FULL OUTER JOIN Фирмы_производители ON Изделие.Фирма_производитель=Фирмы_производители.Название_фирмы
Answer the question
In order to leave comments, you need to log in
The question is no longer relevant, the problem is solved. If anyone is interested, I'll leave a working request
SELECT Изделие.ID_Товара, Изделие.Название, Фирмы_производители.Название_фирмы, Изделие.Стоимость, Изделие.Количество_в_наличии FROM Фирмы_производители INNER JOIN Изделие ON Фирмы_производители.ID_Фирмы = Изделие.Фирма_производитель;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question