i have a question about a MySql query.
An example row is like this:
----------------------------------------------------------------------------
| date1 | date1Name | date2 | date2Name | date3 | date3Name |
----------------------------------------------------------------------------
| 2018-01-02 | Steve | 2018-01-01 | Alex | 2018-02-01 | Luke |
----------------------------------------------------------------------------
Is it possible in one query to select the dateXName that corresponds to the most recent date? In this case Luke (of date3Name)..
I tried with the MAX and GREATEST functions but I can't do it :(
Many thanks..