Hey all,
I'm back in the mySQL game, this time I was hoping to extract some data without using php...
I have a database from a POS system full of customer data. The important Columns are Postal_Code and Amount_Spent.
I know I can use the GROUP BY command to group the customs by Postal_Code, but I only want to group them by the first 3 characters of the Postal_Code field.
Then for each group I need to show the Amount_Spent total for that group...
I know how to do this in php, but I wanted to avoid installing anything extra on the POS computer.
Can I do this in a few lines in mySQL using something like the MySQL Query Browser (http://dev.mysql.com/downloads/query-browser/index.html)?
Thanks in advance
😃