I am creating a login page ,
tables:
database has tables "student" and "faculty"
schema:
"student" table has columns "sid,spass,sfname.....etc."
"faculty" table has columns "fid,fpass,ffname......etc."
Problem---
I want to create a temporary table which contains all
"sid,fid" as "username" column
and all "spass,fpass" as "password" column. thus resultant table should have only 2 columns containing username and password of all members , witch i can use further to apply validation for successful login.
So what query i have to write to extract that table ??
ps: tried join operations but cant figure it out :(