![]() |
Join SQL command
hey.
i use these SQL command PHP Code:
but i want to use a single query instead of two i tried this: PHP Code:
plz help me |
Perhaps something like:
PHP Code:
|
field "ID" is in table: first (its an INT field)
field "IDs" is in table: second (its a VARCHAR field) so "ID" & "IDs" two different field in deferent table. "ID" contains a single unique number but "IDs" contain some id. i.e- 14,15,16,17,118 so i think ON is not a good idea...coz they never be equal. thats why IN must be used. plz read my both codes of first post very carefully again...so it will be clear to u & plz help me & sorry for the confusing post :) --------------- Added [DATE]1260613675[/DATE] at [TIME]1260613675[/TIME] --------------- hey i tried this: PHP Code:
i mean it returns just only one table although it shud show more as there r more row according to condition. |
It could be that you want a RIGHT JOIN instead of a LEFT JOIN.
|
not working. same result
|
All times are GMT. The time now is 01:10 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|