Hi there internet friends, I need your help. I'm an ultra noob with SQL programming and I need help with something I'm working with.
Here's what I ave right now in TABLE1
CustNbr ProductNm ExpirationDt(date value)
AAA111 Product1 15MAY2017
AAA112 Product1 21JAN2017
And here's what I would like to have :
CustNbr Yr Mth ProductNm
AAA111 2017 01 Product01
AAA111 2017 02 Product01
AAA111 2017 03 Product01
AAA111 2017 04 Product01
AAA111 2017 05 Product01
AAA112 2017 01 Product01
Essentialy, I would like to have a monthly view of active product by customers, and not only the date that they are expiring. What kind of expression could I use to reproduce the table I want?
Thank so much for the time.