I have the following select statement:
SELECT
*
FROM
jobs
LEFT JOIN bids
ON jobs.userID = bids.jobID
WHERE
bids.bidder = '$userName'
But this statement does only show the results from the "jobs" table. I also want to show results from the "bids" table, for example the column "bids" from the table bids.
How do I combine that in the above select statement?
jobsandbids? What is the definition of the foreign key between the two tables? What does 'show the results' mean? The*shows all columns from the tables listed in theFROMclause.