Avatar of aej1973
aej1973 asked on

help with a mysql query

Hello, I have a table with the  format attached. I need help with a query that will give me the following output;

account     tot_jan       count_jan    tot_feb         count_feb       tot_march   count_march
1                  10                  1             10                  1                  null                       0
2                   20                  2             null                0                  20                         2
3                   null                 0             10                 1                   null                       0
########## TABLE STRUCTURE ################
date                amount        account
jan                     10           1
jan                     10           2
jan                      10          2
feb                     10            1
feb                     10            3
march                 10              2
march                 10               2

Open in new window

MySQL Server

Avatar of undefined
Last Comment
aej1973

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Guy Hengel [angelIII / a3]

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
aej1973

WOW! let me try this...
ASKER
aej1973

fantastic! exactly what I was looking for. Thanks a ton.

A
ASKER
aej1973

Excellent.
Your help has saved me hundreds of hours of internet surfing.
fblack61