我想从三个表中得到一个结果。我不知道如何编写 sql 查询。请帮我。
"I want to display Name,Username and Product_Name where Id=007"
table "register"
Name Username Id
Arj arjun 007
xyz abcd 008
abcd asdf 007
table "products"
Product_Id Product_Name Price
101 Clothes 200
102 Games 100
table "purchase" //products.Product_Id=purchase.Item
Username item Id
arjun 102 007
abcd 101 008
asdf 102 007