我有三个不同的表,我需要三个表中的同一列,并且我需要将所有值放入一个输出列中而不会丢失任何记录。以下是现有查询建议我进行一些修改
SELECT
dbo.dealer_program_details.o_comments,
dbo.Self_Am.o_comments,
dbo.Coop_Payment_Detail.o_comments
FROM
dbo.dealer_program_details
INNER JOIN
dbo.Self_Am
ON
(
dbo.dealer_program_details.DEALER_CODE = dbo.Self_Am.Dealer_Code)
INNER JOIN
dbo.Coop_Payment_Detail
ON
(
dbo.dealer_program_details.DEALER_CODE = dbo.Coop_Payment_Detail.Dealer_Code)
现在我希望将这三列全部合并为一列