问题
I have two columns vendornum and invoice status in my temp-table. Now I want to join three more columns EY_AmountIncl_LC,EY_AmountExcl_LC,EY_datedocumented to that temptable and output should look like following.
VendorNumber EY_AmountIncl EY_AmountExcl EY_datedocumented InvoiceStatus
50000471 281072 281072 00:00.0 V-Parked Items
5200991 80000 80000 00:00.0 V-Parked Items
5200595 72401.6 72401.6 00:00.0 V-Parked Items
5202384 402207.68 402207.68 00:00.0 V-Parked Items
Is there may way to do it.I am very new to sql .can any one help me in this.I am using management studio 2014
来源:https://stackoverflow.com/questions/52270352/join-temptable-using-joinsin-sql