MySQL Forums
Forum List  »  Italian

join con altra select che comprende un valore della prima
Posted by: Massimo Procopio
Date: January 28, 2016 03:14AM

Buongiorno provo a postare quello che sto cercando di fare, forse l'esempio parla più delle parole.

select idordine,cognome,nome,daticonsegnabartolini.VACRMN
from ordini
LEFT JOIN
(SELECT * FROM solointv.daticonsegnabartolini ORDER BY id DESC LIMIT 1) c on ordine.idorine=c.id;

la tabella ordini contiene gli ordini dove IDOrdine è il campo univoco
la tabella daticonsegnabartolini contiene i movimenti del corriere dove il campo VACRMN deve corrispondere con IDOrdine

Spero di essere stato chiaro. Grazie

Options: ReplyQuote


Subject
Views
Written By
Posted
join con altra select che comprende un valore della prima
1303
January 28, 2016 03:14AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.