Inicio > Lenguaje SQL > jmartinez6 > CONSULTA SQL EN 3 TABLAS

CONSULTA SQL EN 3 TABLAS

Experto:
Usuario: Anónimo Fecha: 11/06/2008
Valoración: (4,00 sobre 5) Categoría: Lenguaje SQL
11/06/2008
Usuario
Tengo las siguientes tablas
cliente (id_cliente, nomb_cliente, renta_anual)
embarque (embarque_#, id_cliente, peso, camion_#, nomb_ciudad)
camion (cam ion_#, nombchofer)
ciudad (nomb_ciudad, población)
Y debo listar los clientes cuyos envíos han sido distribuidos por el chofer Arturo.

Muchas gracias
11/06/2008
renehs, experto respondiendo en Lenguaje SQL
Experto
Select cliente.id_cliente, nomb_cliente,embarque,peso,nomb_ciudad from cliente join embarque on cliente.id_cliente=embarque.id_cliente join camion on embarque.camion=camion.camion where nombchofer="Arturo"

Saludos desde Cúcuta - Colombia
11/06/2008
Usuario
Muchas gracias
Enlaces patrocinados