So, now that the expert suggest some possible solutions to the last post, i have two more tasks i would like to perform with the same bus
database. Each user has an unique ID, and so we want to find in a given year how many trips has this deviceID has taken, and obtain a global media for each year, and compare it -we call it recurrence rate-.
Second we want to find if the users which are using busPlus are paying more or less for their tickets. I dont care about the values in the bus plus column, i just want to know the accumulated price per month and per year of those users, vs those who dont use busPlus.