![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#7
|
|||
|
|||
|
Creo que no hace falta hacer left join sino join (con lo que ira mucho mas rapido si hay indices bien creados (PK i FK), el left join siempre es mas lento
no hace falta el where ya que el join ya obliga a que no sean nulos Código SQL [-] select distinct tabla1.* from tabla1 join tabla2 on tabla2.cod1 = tabla1.campo1 and tabla2.cod2 = tabla1.campo2 Saludos |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Transaccion con if y con exists | zvf | SQL | 4 | 18-09-2007 18:52:44 |
| Microsoft declara que Vista tiene problemas muy serios | Casimiro Noteví | Noticias | 16 | 30-01-2007 09:44:12 |
| Error A component Named Matri already Exists | janlo | Varios | 5 | 28-07-2006 07:16:39 |
| Error en el Exists | Payola2011 | MySQL | 7 | 31-01-2006 19:17:47 |
| -502 Declared cursor already exists | Carlitos | Firebird e Interbase | 4 | 30-09-2003 17:18:22 |
|