Select
a.[DAY],
a.[ASSIST],
a.[AMERICAN AMR],
a.[EMS],
a.[1ST RESPONSE],
a.[HATZOLAH OT],
a.[HATZOLAH BP],
a.[HATZOLAH CA],
a.[HATZOLAH FLATBUSH],
a.[HATZOLAH SG],
a.[HATZOLAH CH],
a.[HIP CENTRAL],
a.[HATZOLAH RO ],
a.[HATZOLAH SI ],
a.[HATZOLAH WI ],
a.[INSTACARE],
a.[KINGSBROOK],
a.[LUTHERAN],
a.[MAIMONIDES],
a.[METROPOLITAN],
a.[MIDWOOD AMBU],
a.[E# MIDWOOD V],
a.[NATION WIDE],
a.[NY PRESBY],
a.[RICHMOND CTY],
a.[SENIOR CARE],
a.[TRANSCARE],
a.[UNITED AMBUL],
a.[VICTORY],
a.[UNKNOWN ???],
isnull(a.[ASSIST],0) +
isnull(a.[AMERICAN AMR],0) +
isnull(a.[EMS],0) +
isnull(a.[1ST RESPONSE],0) +
isnull(a.[HATZOLAH OT],0) +
isnull(a.[HATZOLAH BP],0) +
isnull(a.[HATZOLAH CA],0) +
isnull(a.[HATZOLAH FLATBUSH],0) +
isnull(a.[HATZOLAH SG],0) +
isnull(a.[HATZOLAH CH],0) +
isnull(a.[HIP CENTRAL],0) +
isnull(a.[HATZOLAH RO ],0) +
isnull(a.[HATZOLAH SI ],0) +
isnull(a.[HATZOLAH WI ],0) +
isnull(a.[INSTACARE],0) +
isnull(a.[KINGSBROOK],0) +
isnull(a.[LUTHERAN],0) +
isnull(a.[MAIMONIDES],0) +
isnull(a.[METROPOLITAN],0) +
isnull(a.[MIDWOOD AMBU],0) +
isnull(a.[E# MIDWOOD V],0) +
isnull(a.[NATION WIDE],0) +
isnull(a.[NY PRESBY],0) +
isnull(a.[RICHMOND CTY],0) +
isnull(a.[SENIOR CARE],0) +
isnull(a.[TRANSCARE],0) +
isnull(a.[UNITED AMBUL],0) +
isnull(a.[VICTORY],0) +
isnull(a.[UNKNOWN ???],0)
Total
from [AmbDrops].[dbo].[Drops] a
union all
Select
'Total',
sum(isnull(a.[ASSIST],0)),
sum(isnull(a.[AMERICAN AMR],0)),
sum(isnull(a.[EMS],0)),
sum(isnull(a.[1ST RESPONSE],0)),
sum(isnull(a.[HATZOLAH OT],0)),
sum(isnull(a.[HATZOLAH BP],0)),
sum(isnull(a.[HATZOLAH CA],0)),
sum(isnull(a.[HATZOLAH FLATBUSH],0)),
sum(isnull(a.[HATZOLAH SG],0)),
sum(isnull(a.[HATZOLAH CH],0)),
sum(isnull(a.[HIP CENTRAL],0)),
sum(isnull(a.[HATZOLAH RO ],0)),
sum(isnull(a.[HATZOLAH SI ],0)),
sum(isnull(a.[HATZOLAH WI ],0)),
sum(isnull(a.[INSTACARE],0)),
sum(isnull(a.[KINGSBROOK],0)),
sum(isnull(a.[LUTHERAN],0)),
sum(isnull(a.[MAIMONIDES],0)),
sum(isnull(a.[METROPOLITAN],0)),
sum(isnull(a.[MIDWOOD AMBU],0)),
sum(isnull(a.[E# MIDWOOD V],0)),
sum(isnull(a.[NATION WIDE],0)),
sum(isnull(a.[NY PRESBY],0)),
sum(isnull(a.[RICHMOND CTY],0)),
sum(isnull(a.[SENIOR CARE],0)),
sum(isnull(a.[TRANSCARE],0)),
sum(isnull(a.[UNITED AMBUL],0)),
sum(isnull(a.[VICTORY],0)),
sum(isnull(a.[UNKNOWN ???],0)),
sum(isnull(a.[ASSIST],0) +
(isnull(a.[AMERICAN AMR],0)) +
(isnull(a.[EMS],0)) +
(isnull(a.[1ST RESPONSE],0)) +
(isnull(a.[HATZOLAH OT],0)) +
(isnull(a.[HATZOLAH BP],0)) +
(isnull(a.[HATZOLAH CA],0)) +
(isnull(a.[HATZOLAH FLATBUSH],0)) +
(isnull(a.[HATZOLAH SG],0)) +
(isnull(a.[HATZOLAH CH],0)) +
(isnull(a.[HIP CENTRAL],0)) +
(isnull(a.[HATZOLAH RO ],0)) +
(isnull(a.[HATZOLAH SI ],0)) +
(isnull(a.[HATZOLAH WI ],0)) +
(isnull(a.[INSTACARE],0)) +
(isnull(a.[KINGSBROOK],0)) +
(isnull(a.[LUTHERAN],0)) +
(isnull(a.[MAIMONIDES],0)) +
(isnull(a.[METROPOLITAN],0)) +
(isnull(a.[MIDWOOD AMBU],0)) +
(isnull(a.[E# MIDWOOD V],0)) +
(isnull(a.[NATION WIDE],0)) +
(isnull(a.[NY PRESBY],0)) +
(isnull(a.[RICHMOND CTY],0)) +
(isnull(a.[SENIOR CARE],0)) +
(isnull(a.[TRANSCARE],0)) +
(isnull(a.[UNITED AMBUL],0)) +
(isnull(a.[VICTORY],0)) +
(isnull(a.[UNKNOWN ???],0))
)
from [AmbDrops].[dbo].[Drops] a
order by [DAY]
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.