I need help dividing the results of two independent queries, I am stuck. The resulting table should be two columns (Expuslions & Suspensions) displaying the division result i.e.,(Rate). E.g., expulsions/Totalfirst querySELECT SUM(CASE WHEN Discipline = 'E' THEN TOTAL END) AS Expulsions ,SUM(CASE WHEN Discipline IN ('I', 'O') THEN TOTAL END) AS SuspensionsFROM SUSPEXPDWHERE CDS = @CDS
Second QuerySELECTSUM(ENR_TOTAL) AS Total FROM [StateData].[dbo].[enr13] WHERE CDS_Code LIKE Cast(@CDS as varchar(7)) + '%
ThanksCartesian Yak