let's say this is my table:
Name | Surname | Serial no. | Price
-----------------------------------------------
John | Smith | A12444dW33 | 1,234
Paul | Harrison | D2344fGGfd | 2,5
Richard | Morris | We945kfGGE | 3
George | Washington | ssf4gt66hJ | 7,39494
How do I get actual LONGEST values for each column in ONE row, based on length ?
I need something that will be valid for every datatype - NUMBER, VARCHAR,DATE etc.
Output for example table should be (Serial no. are all same length, so that is not important here...):
Name | Surname | Serial no. | Price
-----------------------------------------------
Richard | Washington | A12444dW33 | 7,39494
All questions I found are focused on use with one column only, but I need solution for all columns.