您好我的查询需要帮助。
我的数据如下:
表:妈妈
int
表孩子:
mom_name
Alice
Christina
Mandy
我正在输入此查询
mom_name kid_name
Christina Charles
Christina Jack
Alice Mandy
Alice Joe
Alice Jeff
Mandy Alan
Mandy Omar
我收到了这个错误:
SELECT distinct Moms.mom_name,
concatrelated("[kid_name]","[kids]","mom_name = " & [moms.mom_name] & """" ) AS Expr1
FROM Moms ;
并且错误重复了表中的每个妈妈的名字..我的错误在哪里?
答案 0 :(得分:1)
可能是:
Select Distinct
Moms.mom_name,
ConcatRelated("[kid_name]","[kids]","mom_name = '" & [moms.mom_name] & "'") AS Kids
From
Moms;