We are on "myDBR 4.0.0 (build 2350)".
[sql]select 'dbr.chart','MSBar','','1000','auto';
select 'dbr.chart.options','height_per_item',70;
select 'dbr.report','sp_DBR_DEMAND_SYS_53_v1_22','inline', 'inMajor=4','inBusinessUnit=-1','inMinor=5','inLang=6','inDoc=7','inCreative=8','inStatus=9';
select
dv.creative_agency_name as 'Creative Agency',
(select tm.TAXVALDESC from test_db.tm_m_ibm_taxdtls tm where tm.TAXIDVAL =fd.status and tm.type_id=72),
count(distinct fd.documentid),
group_concat(distinct dv.major_brand),
group_concat(distinct dv.minor_brand),
group_concat(distinct fd.language_id),
group_concat(distinct dp.document_sid),
dv.creative_agency_name,
group_concat(distinct fd.status)
from test_db.frf_documents fd
JOIN test_db.dnrf_prefixes dp on fd.dnrf_id=dp.id
JOIN test_db.dnrf_values dv on dp.dnrf_value_id=dv.id
where (fd.significant=1 or fd.future_sig=1)
group by dv.creative_agency_name,fd.status=3,fd.status=4,fd.status=5,fd.status=9,fd.status in(1,2);[sql]