I did away with the group by because i didnt really need it and just added more details sections but it shows the report 3 times for some reason.
Here is the SQL:
SELECT
Pt_Ident."Last Name",
Pt_Ident."First Name",
Pt_Ident."Middle Initial",
Pt_Ident."6 Digit Hospital Number",
Pt_Ident."Birth Date",
Pt_Ident."Sex",
Pt_Ident."Blood Type",
Pt_Ident."Allergies",
Surgproc."Social_Security_Number",
Surgproc."Date_of_Admit",
Surgproc."Proc_Date",
Surgproc."Primary_Surgeon",
Surgproc."Assisting_Surgeon",
Surgproc."Proc_Type",
Surgproc."Primary_Perfusionist",
Surgproc."Anesthesia",
Surgproc."Urgency",
Surgproc."Age_at_Surgery",
Surgproc."Ejection_Fraction",
Surgproc."Sequence_Num",
Surgproc."Diag_Cath_Hosp",
Surgproc."ClampTime",
Surgproc."PumpTime",
Surgproc."Oxygenator",
Surgproc."OxygenatorSN",
Surgproc."TubingPack",
Surgproc."TubingPackSN",
Surgproc."Pump",
Surgproc."PumpSN",
Surgproc."Total Prime",
Surgproc."AnesCrystalloid",
Surgproc."Height",
Surgproc."Weight",
Surgproc."Referring_Physician",
Surgproc."CCS_Class",
Surgproc."CathDate",
Surgproc."PumpCryst",
Surgproc."BloodProducts",
Surgproc."ACTMonitor",
Surgproc."ABGMonitor",
Surgproc."PrePumpUrine",
Surgproc."Hemoconcentrator",
Surgproc."Mg_Cardioplegia",
Surgproc."K_Cardioplegia",
Surgproc."TotalHeparin",
Surgproc."Protamine",
Assesmnt."Pre_Op_Time",
Assesmnt."Pre_OP_Temp",
Assesmnt."Pre_OP_Syst_BP",
Assesmnt."Pre_OP_Diast_BP",
Assesmnt."Pre_OP_PA_Syst",
Assesmnt."Pre_OP_PA_Diast",
Assesmnt."Pre_OP_HR",
Assesmnt."Pre_OP_CO",
Assesmnt."Pre_OP_pH",
Assesmnt."Pre_OP_pCO2",
Assesmnt."Pre_OP_pO2",
Assesmnt."Pre_OP_HCO3",
Assesmnt."Pre_OP_BE",
Assesmnt."Pre_OP_Hct",
Assesmnt."Pre_OP_K",
Assesmnt."Pre_OP_ACT",
Assesmnt."Post_Op_Time",
Assesmnt."Post_OP_Temp",
Assesmnt."Post_OP_Syst_BP",
Assesmnt."Post_OP_Diast_BP",
Assesmnt."Post_OP_PA_Syst",
Assesmnt."Post_OP_PA_Diast",
Assesmnt."Post_OP_HR",
Assesmnt."Post_OP_CO",
Assesmnt."Post_OP_pH",
Assesmnt."Post_OP_pCO2",
Assesmnt."Post_OP_pO2",
Assesmnt."Post_OP_HCO3",
Assesmnt."Post_OP_BE",
Assesmnt."Post_Op_Hct",
Assesmnt."Post_OP_K",
Assesmnt."Post_OP_ACT",
Pumpstat."Urine"
FROM
((x.dbo.Pt_Ident Pt_Ident INNER JOIN x.dbo.Surgproc Surgproc ON
Pt_Ident."Social_Security_Number" = Surgproc."Social_Security_Number")
INNER JOIN x.dbo.Assesmnt Assesmnt ON
Surgproc."Surg_Proc_Number" = Assesmnt."Surg_Proc_Number")
INNER JOIN x.dbo.Pumpstat Pumpstat ON
Surgproc."Surg_Proc_Number" = Pumpstat."Surg_Proc_Number"
WHERE
Surgproc."Social_Security_Number" = 'xxx-xx-xxxx'