誰かが結果を得るためにSQLクエリを教えてください...。
ありがとう!

上記の2つのテーブルから、 inがieであるそれぞれのPhoto、、Nameを取得したいと思います。Id of max(id)Table-Acategory_idparent_idTable-B1
1005 E Byte Apple 3
1002 B Byte Banana 5
1007 G Byte Orange 6
1011 K Byte Mango 7
誰かが結果を得るためにSQLクエリを教えてください...。
ありがとう!

上記の2つのテーブルから、 inがieであるそれぞれのPhoto、、Nameを取得したいと思います。Id of max(id)Table-Acategory_idparent_idTable-B1
1005 E Byte Apple 3
1002 B Byte Banana 5
1007 G Byte Orange 6
1011 K Byte Mango 7
select a.id,a.name,a.photo,b.category_name,b.category_id
from table-A a join table-B s ON a.category_id = b.category_id
where parent_id = 1
以下をお試しください。
Select TBLA.ID, TBLA.Name, TBLA.Photo, TBLB.Category_Name, TBLB.Category_ID
From [table-B] TBLB
Inner Join [table-a] TBLA On TBLA.Category_ID = TBLB.Category_ID
Where TBLB.Parent_ID = 1
And TBLA.ID = (Select Max(ID)
From [table-a]
Where Category_ID = TBLB.Category_ID)