HI - I'm a relatively inexperienced SQL newbie but need to do the following ...
I have two mysql tables:
tbl_clients
which includes fields: mgr and sp
the above two fields store the ids of emps
e.g
mgr 2
sp 3
and
tbl_emps
which includes fields: emp_id, emp_fname
e.g
1 Fred
2 Sue
3 Bert
I need to construct a SQL query that returns the names in place of the emp ids. e.g:
mgr Sue
sp Bert
anyone advise?
I have two mysql tables:
tbl_clients
which includes fields: mgr and sp
the above two fields store the ids of emps
e.g
mgr 2
sp 3
and
tbl_emps
which includes fields: emp_id, emp_fname
e.g
1 Fred
2 Sue
3 Bert
I need to construct a SQL query that returns the names in place of the emp ids. e.g:
mgr Sue
sp Bert
anyone advise?