Ciao a tutti
Ho un problemino, ho le 2 seguenti tabelle
¦---bb_tickets---¦
¦ id ¦ owner ¦
¦-------------------¦
¦ 111 ¦ 2 ¦
¦ 145 ¦ 2 ¦
¦ 152 ¦ 3 ¦
¦-------------------¦
¦---bb_users-----¦
¦ id ¦ user ¦
¦-------------------¦
¦ 1 ¦ Admin ¦
¦ 2 ¦ PG ¦
¦ 3 ¦ FS ¦
¦-------------------¦
devo esportare le tabelle ottenendo quanto segue:
¦----Result----¦
¦ id ¦ user ¦
¦-----------------¦
¦ 111 ¦ PG ¦
¦ 145 ¦ PG ¦
¦-----------------¦
Come posso realizzare tutto ciò? Devo utilizzare la funzione JOIN? e in che modo?
Grazie in anticipo
PG
Ho un problemino, ho le 2 seguenti tabelle
¦---bb_tickets---¦
¦ id ¦ owner ¦
¦-------------------¦
¦ 111 ¦ 2 ¦
¦ 145 ¦ 2 ¦
¦ 152 ¦ 3 ¦
¦-------------------¦
¦---bb_users-----¦
¦ id ¦ user ¦
¦-------------------¦
¦ 1 ¦ Admin ¦
¦ 2 ¦ PG ¦
¦ 3 ¦ FS ¦
¦-------------------¦
devo esportare le tabelle ottenendo quanto segue:
¦----Result----¦
¦ id ¦ user ¦
¦-----------------¦
¦ 111 ¦ PG ¦
¦ 145 ¦ PG ¦
¦-----------------¦
Come posso realizzare tutto ciò? Devo utilizzare la funzione JOIN? e in che modo?
Grazie in anticipo
PG