cosa c'entra la struttura delle tabelle? sono nomalissime tabelle e le 2 query 2 normalissime select e ho appurato che funzionano.
del tipo:
1a query: "select campo1,campo2
from tabella1,tabella2,tabella3
where tabella1.attributo=tabella2.attributo and tabella2.attributo=tabella3.attributo
group by attributo";
2a query: "select campo1,campo2
from tabella1,tabella2,tabella3
where tabella1.attributo=tabella2.attributo and tabella2.attributo=tabella3.attributo
";
la prima con il group by mi permette di stampare i nomi e la seconda di recuperare tutti i testi relativi ai nomi, che poi stamperò facendo combaciare l'id con quella del relativo nome.

Rispondi quotando