| | |
is my query wrong
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 183
Reputation:
Solved Threads: 5
hi
i want to join four tables.i used left join.thougn value are there in my db all the datas from
seekers_qualification, seeker_target tables are getting displayed as Null.but there is no Sql error
i want to join four tables.i used left join.thougn value are there in my db all the datas from
seekers_qualification, seeker_target tables are getting displayed as Null.but there is no Sql error
sql Syntax (Toggle Plain Text)
SELECT seekers.firstname, seekers.middlename, seekers.lastname, seekers.totalexperience, seekers.mobile, seekers_qualification.qualification, seeker_target.jobtitle, seeker_target.ann_salary, seeker_target.state, seeker_target.relocate FROM seekers LEFT JOIN ( SELECT seekers.firstname, seekers.middlename, seekers.lastname, seekers.totalexperience, seekers.mobile, seekers_qualification.qualification, seeker_target.jobtitle, seeker_target.ann_salary, seeker_target.state, seeker_target.relocate FROM seekers LEFT JOIN ( seekers_qualification, seeker_target ) ON ( seekers.seeker_id = seekers_qualification.seeker_id AND seekers_qualification.seeker_id = seeker_target.seeker_id AND seeker_target.seeker_id = seekers.seeker_id ) WHERE seekers.seeker_id = '40' AND seeker_target.seeker_id = '40' OR seekers_qualification.seeker_id = '40' LIMIT 0 , 30 ) ON ( seekers.seeker_id = seekers_qualification.seeker_id AND seekers_qualification.seeker_id = seeker_target.seeker_id AND seeker_target.seeker_id = seekers.seeker_id ) WHERE seekers.seeker_id = '40' AND seeker_target.seeker_id = '40' OR seekers_qualification.seeker_id = '40' LIMIT 0 , 30
Last edited by peter_budo; Aug 2nd, 2008 at 2:31 pm. Reason: Keep It Organized - please use [code] tags
•
•
Join Date: Nov 2007
Posts: 183
Reputation:
Solved Threads: 5
sorry for the wrong query in the last post
"select seekers.firstname, seekers.middlename,seekers.lastname,seekers.totalexperience,seekers.mobile,seekers_qualification.qualification,seeker_target.jobtitle,seeker_target.ann_salary,seeker_target.state,seeker_target.relocate from seekers left join (seekers_qualification,seeker_target)on(seekers.seeker_id=seekers_qualification.seeker_id and seekers_qualification.seeker_id=seeker_target.seeker_id and seeker_target.seeker_id=seekers.seeker_id) where seekers.seeker_id='$id'
![]() |
Similar Threads
- What is wrong here (Oracle)
- query in mysql (PHP)
- ASP Loop Query (ASP)
- Another mysql_num_rows(): error (PHP)
- Javascript array from sql query (JSP)
- S-Video Query (Monitors, Displays and Video Cards)
- Please help me out with MySQL query (MySQL)
- query problem (MySQL)
- Class Server query (Windows NT / 2000 / XP)
Other Threads in the MySQL Forum
- Previous Thread: order results by set list
- Next Thread: insert checkbox values to database
Views: 606 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for MySQL
"use" 1 agplv3 alfresco amazon api artisticlicense breathalyzer camparingtocolumns changingprices cmg contentmanagement count court crm data database design developer development drupal ec2 eliminate email enter enterprise error eudora facebook form foss gartner gnu government gpl greenit groklaw groupware images innerjoins insert ip joebrockmeier join journalism keyword keywords laptop law legal license licensing linux maintenance managing matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opendatabasealliance opengovernment opensource operand oracle pdf penelope php priceupdating referencedesign remove reorderingcolumns resultset saas select sharepoint sourcecode spotify sql sugarcrm syntax techsupport thunderbird transparency update virtualization





