JOIN di 4 tabelle

adfadf

Utente Attivo
18 Apr 2009
83
0
0
Dando per assodato che sono giuste le concatenazioni, è corretto scrivere una cosa del genere? Mi restituisce errore....
PHP:
$r="SELECT oggetti.codsottocategoria FROM grandicategorie INNER JOIN categorie 
INNER JOIN sottocategorie INNER JOIN oggetti ON 
grandicategorie.id= categorie.codgrandecategoria ON 
categorie.id=sottocategorie.codcategoria ON sottocategorie.id=oggetti.codsottocategoria
WHERE grandicategorie.id='$id' && oggetti.Venduto NOT LIKE 'SI'";
Grazie..
 
Discussioni simili
Autore Titolo Forum Risposte Data
R Join articolato su 3 tabelle MySQL 5
M Join 3 tabelle PHP 0
M Problema su query JOIN in tre tabelle PHP 0
MarcoGrazia Dati nulli su join tra più tabelle MySQL 1
S [PHP] Inner join su 4 tabelle PHP 6
C Php/Mysql query JOIN tra tabelle PHP 4
C Php/Mysql query JOIN tra due tabelle PHP 18
G [MS Access] JOIN di due tabelle più GROUP BY MS Access 1
L cinque tabelle e join PHP 2
P Join tabelle MySQL 4
D Problema sintassi INNER JOIN a 3 tabelle PHP 4
L inner join su due tabelle PHP 5
L Inner Join con più tabelle PHP 5
M join tabelle PHP 0
Monital [Mysql]Confronto tra tabelle ed inseirmento dati- Comando JOIN (Credo) MySQL 0
A Inner join con tre tabelle PHP 0
C Fare una Join di 3 tabelle PHP 2
L Soluzione con INNER JOIN Database 0
K Problema Inner join PHP 1
L Problema con inner join PHP 11
K [php] Problema con inner join PHP 4
M LEFT JOIN di diverse condizioni PHP 10
L select join e sottrazione punti PHP 13
M Ordinare una query join PHP 2
M Estrarre valori MAX da un db con una left join MySQL 8
P Query Mysql con Join PHP 2
M [PHP] Aiuto su inner join PHP 10
F [MySQL] Problema con LEFT JOIN MySQL 6
P [MySQL] Inner Join o Left Join MySQL 14
simgia [PHP] Ciclare una query JOIN PHP 2
simgia [MySQL] INNER JOIN problema MySQL 0
R [PHP] Estrapolare dati da una query left join PHP 0
R [MySQL] SQL UPDATE INNER JOIN MySQL 5
G [MySQL] Join o select MySQL 1
R [MySQL] Join, Count e Order (ASC & DESC)... MySQL 6
B Outer join che non funge Database 2
jdj78 inner join Classic ASP 18
V [Guida]: ho dubbi sulle Join MySQL 13
P Query con Somma di un Campo , aggregazione e join Database 3
V Quando mettere il JOIN e quando no? MySQL 1
Marco_88 Select distinct e join MySQL 2
Marco_88 Eliminare una colonna da una LEFT JOIN MySQL 4
M Query Join per 2 colonne MySQL 1
L inner join MySQL 0
andrea.peo Problema query con join visualizzazione record ripetuti PHP 5
I Aiuto INNER JOIN MySQL 5
D Il JOIN che non imparerò mai ad usare MySQL 2
V Problema JOIN SQL PHP 3
A Ottimizzare di più JOIN su tabella/e da 25.000 records MySQL 0
S Mistero Join MySQL 0

Discussioni simili