我有以下database schema and relation 我要做的是从ProductActiveIngredient表中选择已知的productId,并从内部连接ActiveIngredientFour表中选择每个ActiveIngredientTwo、ActiveIngredientTwo、ActiveIngredientThree和ActiveIngredientFour。join
ActiveIngredient c on a.ActiveIngredientTwo = c.Act
我在sql中有一个posts表,它的author列连接到用户表。我使用一个sql查询从 post 表获得post,从 use 表获得作者的姓名。我的posts表如下所示:| id | title | labelsurnameINNER JOIN users
ON users.id = posts.au