0
クエリを作成したいだけで、クエリを正常に作成することはできません。 2つのテーブルからデータを取得したいが、正しいクエリを作成しない。 ここに私の問題です。2つのテーブル間のSqlクエリ
this is my first table emp with id as a primary key
id(primary key) name
101 A
102 B
103 C
104 D
this is my second table boss with bossid as a foreign key with emp table column id
bossid(foreign key with emp table in column id) empid
102 101
103 104
now i just want to create a sql query which return me a data like this
bossid name empid name
102 B 101 A
103 C 104 D
In this return query 'B' and 'C' is boss name from emp table with bossid '102','103' and 'A' and 'D' is the emp name from same table emp with empid '101','104' join with bossid from bossname table and id with empname table.
ありがとうございます。
に参加するか、参加左を使用することができます – Ghostman