Hi,
I would liek to know how many CigaretteSmoker (Current, Former, Never) did we have and the percentage of all of them.
This is whta I have so far:
SELECT DISTINCTROW Count(Event_Cath.SS_Patient_ID) AS Total, Cath_Registry_Common.CigaretteSmoker, [Total]*100 AS [%of cases]
FROM Event_Cath LEFT JOIN Cath_Registry_Common ON Event_Cath.SS_Event_Cath_ID = Cath_Registry_Common.SS_Event_Cath_ID
WHERE (((Event_Cath.Date_of_Cath) Between [Start_Date] And [End_Date]))
GROUP BY Cath_Registry_Common.CigaretteSmoker
ORDER BY Cath_Registry_Common.CigaretteSmoker;
Maybe I should make a cross tab query?..
Thanks You!!!
I would liek to know how many CigaretteSmoker (Current, Former, Never) did we have and the percentage of all of them.
This is whta I have so far:
SELECT DISTINCTROW Count(Event_Cath.SS_Patient_ID) AS Total, Cath_Registry_Common.CigaretteSmoker, [Total]*100 AS [%of cases]
FROM Event_Cath LEFT JOIN Cath_Registry_Common ON Event_Cath.SS_Event_Cath_ID = Cath_Registry_Common.SS_Event_Cath_ID
WHERE (((Event_Cath.Date_of_Cath) Between [Start_Date] And [End_Date]))
GROUP BY Cath_Registry_Common.CigaretteSmoker
ORDER BY Cath_Registry_Common.CigaretteSmoker;
Maybe I should make a cross tab query?..
Thanks You!!!