I would like to know how I could make a SELECT
where I can bring the same but result in a single SELECT
.
Select example I need to be unique:
SELECT COUNT(*) AS QtdTarifados
FROM tblLoteTESTE
WHERE CodCampanha = 1
AND MONTH(DataAgendada) = 7
AND YEAR(DataAgendada) = 2018
AND FlagTarifado = 1
SELECT COUNT(*) AS QtdEnviados
FROM tblLoteTESTE
WHERE CodCampanha = 1
AND MONTH(DataAgendada) = 7
AND YEAR(DataAgendada) = 2018
AND FlagEnviado = 1
SELECT COUNT(*) AS QtdRespondidos
FROM tblLoteTESTE
WHERE CodCampanha = 1
AND MONTH(DataAgendada) = 7
AND YEAR(DataAgendada) = 2018
AND FlagRespondido = 1
Could you help me?