I have been researching trying to find the answer to this question but have been unsuccessful. I have a table in my database which contains a user's logon information. In my next column, I need it to pull the user's first name and last name based on the sign on information from the previous column. The 2nd column is pulling data from a different table though. I am a novice with SQL queries so I am unsure how I need to set this up.
This is my latest attempt to capture this information:
SELECT lognm_firstnm + lognm_lastnm
FROM oslogname JOIN ns_medication
USING (mlx_ubl);
An example of the output I am expecting is:
UBL Employee Name
Kgarland Karen Garland
The first column is pulling data from the table: mlx_ubl.ns_medication (this is the UBL column) and the second is pulling from the table: lognm_firstnm.oslogname + lognm_lastnm.oslogname (this is the Employee Name column).