php - list all of the employees working on a particular project -



php - list all of the employees working on a particular project -

i working mysql db called company tables:

employee-> |id_emp|fname|lname|id_dept| department-> |id_dept|dname| project-> |id_proj|pname|id_dept|status|budget|actbudget| emp_prof-> |id_emp|id_proj|

i not sure how run queries work emp_proj bring together table.

to list of employees working on particular project, utilize query:

class="lang-sql prettyprint-override">select id_emp emp_proj id_emp not null;

however, i'd output fname , lname employee table. think need utilize bring together employee , emp_prof on id_emp.

can help type of query syntax? thanks...

try:

select employee.fname, employee.lname emp_proj, employee emp_proj.id_emp = employee.id_emp

php mysql select

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -