I am sure this questions has been answered before, but I have no idea what to search for.
I have 2 tables (coming from Wordpress), Users and User Meta Data. I need to create a query that takes the Meta Data and includes that with the other user data. I am developing independent solution in MS Access that will use WP data, so I cannot use any Wordpress specific functions.
Basically, I need to take these 2 tables:
user_id | username
-------------------
01 | bob24
02 | james112
meta_id | user_id | meta_key | meta_value
-----------------------------------------
01 | 01 | first_name | Bob
02 | 01 | last_name | Smith
03 | 02 | first_name | James
04 | 02 | last_name | Jones
And turn it into this:
user_id | username | first_name | last_name
-----------------------------------------
01 | bob24 | Bob | Smith
02 | james112 | James | Jones
I am sure there is a word for this, but I don't know what it is called. Can anyone point me in the right direction?
Thanks!