在我的Microsoft Access 365的产品注册数据库中,我有表tbl_main_new_注册和tbl_supp_composations.
我正在try 创建一个SQL查询,以便它可以在一行中显示BRAND_NAME(此字段在表1中)及其所有Active_Components(表2中的此字段).然而,我却想不通.目前,我的疑问是:
SELECT tbl_main_new_registration.[brand_name], tbl_supp_compositions.active_ingredient, tbl_supp_compositions.strength
FROM tbl_main_new_registration
INNER JOIN tbl_supp_compositions
ON tbl_main_new_registration.new_reg_id = tbl_supp_compositions.brand_name;
并得出了以下结果:
我希望通过以下方式实现这一目标:
我已经try 了一些在线解决方案,即http://allenbrowne.com/func-concat.html,但我无法理解和应用它.此外,我试图应用Stackoverflow中的一些答案,但我认为我无法完全理解它.