Forum Replies Created

Viewing 15 posts - 661 through 675 (of 1,413 total)

  • Reply To: Pivot table for report

    Not too long ago there was a question for SQL Server 2012 with pretty much the same pattern.

    https://www.sqlservercentral.com/forums/topic/how-to-make-pivot-to-feature-values-based-on-part-ca-and-x-exist-on-input-data/#post-3822116

     

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Pivot table for report

    Yes, no STRING_AGG in 2012.  We're in the 2016 Forum 🙂  To revert you could use STUFF+XML instead of STRING_AGG.

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Pivot table for report

    Not dynamic

    select tmp_channel, tmp_entity,
    sum(case when tmp_category='Cat1' then tmp_charges else 0 end) cat1,
    sum(case when...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Viewing 15 posts - 661 through 675 (of 1,413 total)