Problem with SQL Statement
Hello, i have tryed a lot but don´t find a way for the following problem with my SQL Statement. I have 3 tabels and will make a fulltext search on this 3 tables. My fulltext indexes are propper set. On a hit i will see the datas from table1 with the main informations (the other 2 tables have only aditional informations for some rows in table 1. I have tried to make my select statement with 2 tables, to make it not to complex while I try to analyze the problem. Here a statment, how I tryed it: SELECT DISTINCT table1.* FROM table1LEFT JOIN table2 ON (table1.id=table2.table1_id) WHERE MATCH(table1.firma,table1.nachname) AGAINST ('Maier') OR MATCH(table2.vorname,table2.nachname) AGAINST ('Maier'); I hope everybody understand my problem, my english is not good enough to explain it better. Thanks for you help, Oliver N. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Problem with SQL Statement
Hello, i have tryed a lot but don´t find a way for the following problem with my SQL Statement. I have 3 tabels and will make a fulltext search on this 3 tables. My fulltext indexes are propper set. On a hit i will see the datas from table1 with the main informations (the other 2 tables have only aditional informations for some rows in table 1. I have tried to make my select statement with 2 tables, to make it not to complex while I try to analyze the problem. Here a statment, how I tryed it: SELECT DISTINCT table1.* FROM table1LEFT JOIN table2 ON (table1.id=table2.table1_id) WHERE MATCH(table1.firma,table1.nachname) AGAINST ('Maier') OR MATCH(table2.vorname,table2.nachname) AGAINST ('Maier'); I hope everybody understand my problem, my english is not good enough to explain it better. Thanks for you help, Oliver N. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php