Click here to Skip to main content
15,895,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two tables one is job table and other is resume table.i want to fetch resume against every job record. i have job id in resume table as jid. Means a person can post many resumes against many jobs.so, how can i list all the jobs and resume one person posted.Note: i also have users table. <a href="https://i.stack.imgur.com/XiqsY.png"></a>[<a href="https://i.stack.imgur.com/XiqsY.png" target="_blank" title="New Window">job table pic</a>] and <a href="https://i.stack.imgur.com/KzKwX.png"></a>[<a href="https://i.stack.imgur.com/KzKwX.png" target="_blank" title="New Window">resume table</a>] 
and my point is to show the records as
<pre lang="text">
    ------------------------------------------------
     my job posted job |   resumes against that job |
    -------------------|----------------------------|
     job1              |   resume1                  |
                       |                            |
    ------------------------------------------------


What I have tried:

i have tried much but im new too db so can you please help all?
Posted
Updated 16-Apr-17 22:00pm

1 solution

Use an SQL JOIN:
SQL
SELECT u.*, j.*, r.* FROM Jobs j
JOIN Resumes r ON j.ID = r.jid
JOIN Users u ON u.ID = i.uid
WHERE u.ID=3
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900