I have a table in my database formatted as follows:
customer old_code new_code C1 AX C1 BY C2 CY C2 DZ
So, the client and old_code key pair are mapped to the new_code. This is great, since the way of storing data, search queries are very fast, but for human consumption, the data will be better displayed as follows:
C1 C2 XA YBC ZD
Is there an easy way to use SQL to convert data to a second view? Obviously, there can be any number of clients, although I could request a unique set before distribution. I currently have <50,000 entries, and I expect this to be the norm, but I would like for any solutions to scale to several hundred thousand, if possible. My application is currently targeting MySQL.
sql mysql
wobblycogs
source share