in ms sql server, table 1 fields would be a1,a1,a3,a4 and results would be 123456 as a1,hello there as a2, 12.00 as a3, 800 as a4
we have conversion table that states