I am trying to query data mainly from one table, but I also need two columns from another table in the same database. A portion of my query looks somewhat like this:
SELECT
'Contact 1' AS "Phone 2 - Type",
Emerg_Phone_1 AS "Phone 2 - Value",
'Contact 2' AS "Phone 3 - Type",
Emerg_Phone_2 AS "Phone 3 - Value",
'Student Cell' AS "Phone 4 - Type",
STUDENTCELL AS "Phone 4 - Value",
FROM STUDENTS JOIN STUDENTS2
So basically, all five selects OTHER THAN the STUDENTCELL are coming from the STUDENTS table, but I need the one column STUDENTCELL from the STUDENTS2 table in my same query. Thank you for any help and advice, I am very new to mySQL and oracle both.