i am a fresh php developer , now i face a problem in sql queries (i only know a little about sql)
my table model is like this
TABLE1 NAME -:EMPLOYEE
ename eid dept
RAM 001 HR
HARI 002 software
TABLE 2 NAME:- ADMIN
username password eid
HR secureyes 001
Expand|Select|Wrap|Line Numbers
- select * from employee as e left join admin as a on a.eid=e.eid
ename eid dept username password eid
RAM 001 HR admin secureyes 001
hari 002 software null null 002
1.how to eliminate this second eid from resultant table.
2.is there anyway to name the this above resultant table
3.i want to retrive all details of "hari" using his id and ram's password as condition ..both conditions are necessary for security purpose
hope for early reply ....
thanks and with regards Bikash