Hello all,
I have two tables, one with a list of users like so:
"users" table
user_id user_type user_first user_last
22 admin Bob Bobson
34 author Sally Sallerton
And one with let's say forum posts like so:
"posts" table
post_id post_author post_admin
7856 34 22
What I need to do is LEFT JOIN the two tables and get the first and last names from the users table for both post_author and post_admin in the posts table and get results like:
post_id post_author post_admin post_author_first post_author_last post_admin_first post_admin_last
7856 34 22 Sally Sallerton Bob Bobson
I'm not sure how to get values from two separate rows and place those values into new columns/fields. Would appreciate any help...
Thanks!
Peter