I have a given database-table where I am not able to change the database-design.
This table contains a column whare names are saved. The Column "UserName" contains values like "Clinton Bill" or "Trump Donald" or "Bush George".
I need a select statement which is able to find the primary key for the "Bill Clinton" or "Donald Trump"-row.
So the order of Firstname and Lastname is reversed. Does anybody know how this can be done.
How the Where-Clouse should look like.