I currently have a table in this format:DOCDATE | Ship | Vendor | PassengerCount | TrxFullPrice | TrxQuantityIn the Vendor Column I have a few vendors such as HOF & JHCI have pivoted the table using this code.SELECT *FROM ( SELECT ship , passengercount , trxfullprice , docdate , vendor FROM dbo.ICL_Sockeye_Flashreport WHERE mediacompany = 'ppi' AND docdate BETWEEN 'november 1 2010' AND 'november 30 2010' ) f PIVOT ( SUM(TrxFullPrice) FOR Vendor IN ( hof, jhc ) ) pORDER BY ship
with this result:ship | passengercount | docdate | hof | jhcI have omitted the Column TrxQuantity because I need to SUM it as well in the pivot.I am trying to get this result:ship | passengercount | docdate | hof | TrxQuantity | Trx jhc | TrxQuantityAny help would be appreciated as this is too complex for me to do & researching is making it worse.