MUNDOSAP

Regresar   MUNDOSAP > DESARROLLO > Programación ABAP IV
Nombre de Usuario
Contraseña
Home Descargas Registrar FAQ Miembros Calendario Buscar Temas de Hoy Marcar Foros Como Leídos




 
Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Viejo 23/04/09, 14:45:10
ongo ongo is offline
Member
 
Fecha de Ingreso: ago 2007
Mensajes: 45
Inner

Buenas,

Me gustaría si alguien me pudiese dar una clase rápida sobre inner join, left outer join... o sea los distinto join que hay.

Muchas gracias
Responder Con Cita
  #2  
Viejo 23/04/09, 15:49:57
RAMONES RAMONES is offline
Member
 
Fecha de Ingreso: mar 2009
Localización: Capital - Buenos Aires
Mensajes: 69
te paso un ejemplo de inner join a 2 tablas, es un inner sin usar ALIAS.


types: begin of t_tabla,
countryfr type spfli-countryfr,
cityfrom type spfli-cityfrom,
airpfrom type spfli-airpfrom,
countryto type spfli-countryto,
cityto type spfli-cityto,
fldate type sflight-fldate,
price type sflight-price,
currency type sflight-currency,
planetype type sflight-planetype,
seatsmax type sflight-seatsmax,
seatsocc type sflight-seatsocc,
end of t_tabla.

data: it_salida type TABLE OF t_tabla,
wa_salida type t_tabla,
connid type spfli-connid,
carrid type spfli-carrid.

SELECT-OPTIONS: s_connid for connid.
SELECT-OPTIONS: s_carrid for carrid.

select spfli~countryfr spfli~cityfrom spfli~airpfrom spfli~countryto
spfli~cityto sflight~fldate sflight~price sflight~currency
sflight~planetype sflight~seatsmax sflight~seatsocc
into corresponding fields of table it_salida
from spfli "as spfli
inner join sflight "as sflight
on spfli~carrid = sflight~carrid
and spfli~connid = sflight~connid
where spfli~connid in s_connid
and spfli~carrid in s_carrid.



SALUDOS!!
Responder Con Cita
Respuesta


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Reglas de Mensajes
no puedes crear nuevos temas
no puedes responder temas
no puedes adjuntar archivos
no puedes editar tus mensajes

El código vB está On
Las caritas están On
Código [IMG] está On
Código HTML está Off
Saltar a Foro


Husos Horarios son GMT. La hora en este momento es 11:09:52.


www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web