select [ItemCode],[Dscription],[FreeTxt],[LineTotal] from [dbo].[View_sap_OQUT] a inner join [dbo].[View_sap_QUT1] b on a.[DocEntry] = b.[DocEntry] where [U_PM_Code] = '1-TXMUSIC08-20210802' select [fd_wuLiaoDaiMa],[fd_385c6ec030aed4_text],[fd_ziYouWenBen],[fd_caiGouHeJia] from [dbo].[ekp_qinggoudan] a inner join [dbo].[ekp_qinggoudan1] b on a.fd_id = b.fd_parent_id inner join [dbo].[km_review_main] krm on krm.fd_id = a.fd_id where [fd_guiShuXiangMuHao] = '1-TXMUSIC08-20210802' and [doc_status] = '30' 想让这两个结果横向合并 |