Previous Thread : Oracle - Get data from past year (Dynamic)
Note: Need to join table to show a better result after the query(From previous thread) have been executed.
This is my userMember
userMember Table
userID   memberID 
0001     0001000
0003     0003000
0006     0006000
0008     0008000
0010     0010000
0013     0013000
my MembeTable
memberID  memberName
0001000      John
0003000      Doe
0006000      Rick
0008000      Jack
0010000      Cruise
0013000      Ronnie
I have some error when joining the table where it keeps on duplicate and I not able to obtain the memberName based on userID (From previous thread)
Expected Result(the result that I wanted)
userID  memberName  count
0001        John      3
 
     
    