Expand|Select|Wrap|Line Numbers
- SELECT DISTINCT
- (SELECT Count(tblCallLog.tblCallLog_gospelPresented) FROM tblCallLog WHERE tblCallLog.tblCallLog_callDate = Date() AND tblCallLog.tblCallLog_callDate Is Not Null AND tblCallLog.tblCallLog_gospelPresented = true) AS todaysGospelPres,
- (SELECT Count(tblCallLog.tblCallLog_gospelPresented) FROM tblCallLog INNER JOIN tblClients ON tblCallLog.tblCallLog_clientID = tblClients.tblClients_clientID WHERE tblCallLog.tblCallLog_callDate = Date() AND tblCallLog.tblCallLog_callDate Is Not Null AND tblCallLog.tblCallLog_gospelPresented = true AND tblClients.tblClients_jewish = true) AS todaysGospelPresJewish,
- (todaysGospelPres - todaysGospelPresJewish) AS todaysGospelPresGentile,
- Format((todaysGospelPresJewish / todaysGospelPres), "Percent") AS todaysJewishGospelPercent,
- (todaysGospelPresJewish & ' (' & todaysJewishGospelPercent & ')') AS comboTodayJewishGospel
- FROM tblCallLog INNER JOIN tblClients ON tblCallLog.tblCallLog_clientID = tblClients.tblClients_clientID;