Welcome Guest, Not a member yet? Register   Sign In
Simple SQL question from a beginner...
#2

[eluser]JanDoToDo[/eluser]
Hey so well for oneyou just said your tabls were p_id, C_id etc... but in your SQL you are using "profile_id" instead of "p_id"

Assuming that isnt the problem, this worksSadis this what you want??)

SELECT p.*, c.*
FROM `profile` p
INNER JOIN `category_line` cl ON p.`p_id` = cl.`p_id`
INNER JOIN `category` c ON c.`c_id` = cl.`c_id`
ORDER BY p.`p_id`;


Messages In This Thread
Simple SQL question from a beginner... - by El Forum - 01-12-2010, 05:22 PM
Simple SQL question from a beginner... - by El Forum - 01-12-2010, 07:11 PM
Simple SQL question from a beginner... - by El Forum - 01-16-2010, 09:16 AM
Simple SQL question from a beginner... - by El Forum - 01-16-2010, 06:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB