| | |
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
| Thread Tools | Search this Thread |
agplv3 alfresco amazon api artisticlicense aws bizspark breathalyzer camparingtocolumns changingprices cmg communityjournalism contentmanagement contractors copyright count court crm database design developer development distinct drupal dui ec2 email enterprise eudora facebook form foss gartner government gpl greenit groklaw groupware hiring hyperic images innerjoins insert ip joebrockmeier join journalism keyword keywords kickfire laptop law legal license licensing linux maintenance managing mariadb matchingcolumns metron micromanage microsoft mindtouch montywidenius mozilla multiple music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery news open-xchange opendatabasealliance opengovernment opensource oracle penelope php priceupdating query referencedesign reorderingcolumns resultset saas select sharepoint simpledb sourcecode spotify sql sugarcrm syntax techsupport thunderbird transparency virtualization





