I am using MySQL and have two database tables as follows:
Users
id username -------------- 1 Bill 2 Steve
The objects
user_id key value ---------------------- 1 AX 1 BY 1 CZ 2 AS 2 CT
What query is required to get the following result?
username ABC ------------------- Bill XYZ Steve ST
I tried this with INNER JOIN , but in the end I got 5 lines (one for each corresponding line of the object).
Any help is greatly appreciated.
source share