![]() |
any mysql gurus here?
ok, this is weird... at least for me...
i have three tables sites - id (autoinc), name, url dumps - id (autoinc), name, url posted - id (autoinc), dumpid, linkid, date i want to show in a query all combinations of sites+dumps that do not exist in posted. (which means links that have not been submitted to dumps). i am using the following query and it works great in MS sql, but in My sql i always get records back although all combos exist in posted... Code:
SELECT site, dumpi, sitename, dumpname, dumpurl, siteurlcould anybody please take a look at this and tell me, where i am wrong? thanks a lot!!! |
Shouldn't WHERE posted.stieid IS NULL
be WHERE posted.siteid IS NULL ??? |
Quote:
|
Look closely. posted.sTIeid has never been set. posted.sITeid = Q.site.
|
I'm too tired to work it all through at the moment, but you probably want to use the EXISTS keyword, or use the ANY comparision of subqueries.
|
Quote:
but the typo is only here on the text... in my code it's site... and still doesn't work... damn mysql.... |
Quote:
|
Quote:
http://dev.mysql.com/tech-resources/...ubqueries.html http://dev.mysql.com/doc/refman/5.0/...ubqueries.html |
Quote:
i will take a look at it. but why doesn't the query above doesn't work 100%? it works in MSSQL fine... |
| All times are GMT -7. The time now is 04:35 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123