consultar datos de tabla auxiliar
Publicado por roberto (8 intervenciones) el 17/11/2008 13:55:36
ESTIMADOS, UNA CONSULTA:
TENGO 2 TABLAS, DE LAS CUALES QUIERO OBTENER UNA CONSULTA
TABLA1(TRABAJADOR)
CAMPOS: fichatrabajador(*), NOMBRE, VIGENCIA
TABLA2(ATRIBUTOSTRABAJADOR)
CAMPOS: fichatrabajador, ATRIBUTO, VALORATRIBUTO
se relacionana por el campo fichatrabajador
la relacion de la tabla1 y la tabla2 es de uno a muchos
NOTA: EN LA TABLA2, SE VAN INGRESANDO todos los ATRIBUTOS Y correspondiente VALORatributo DE LOS trabajdores INGRESADOS en la TABLA1
tabla1
-------------
fichatrabajdor nombre vigencia
0001 roberto s
0002 andres s
0003 juan
tabla2
--------------
fichatrabajdor atributo valoratributo
0001 tipobanco santander
0001 sueldo diario
0002 cargo administrativo
0001 contrato fijo
NECESITO CONSULTAR TODOS LOS TRABAJADORES(TABLA1) QUE NO se les haya ingresado UN DETERMINADO ATRIBUTO EN LA (TABLA2)
DE ANTEMANO GRACIAS
SALUDOS CORDIALES
ROBERTO, CHILE
TENGO 2 TABLAS, DE LAS CUALES QUIERO OBTENER UNA CONSULTA
TABLA1(TRABAJADOR)
CAMPOS: fichatrabajador(*), NOMBRE, VIGENCIA
TABLA2(ATRIBUTOSTRABAJADOR)
CAMPOS: fichatrabajador, ATRIBUTO, VALORATRIBUTO
se relacionana por el campo fichatrabajador
la relacion de la tabla1 y la tabla2 es de uno a muchos
NOTA: EN LA TABLA2, SE VAN INGRESANDO todos los ATRIBUTOS Y correspondiente VALORatributo DE LOS trabajdores INGRESADOS en la TABLA1
tabla1
-------------
fichatrabajdor nombre vigencia
0001 roberto s
0002 andres s
0003 juan
tabla2
--------------
fichatrabajdor atributo valoratributo
0001 tipobanco santander
0001 sueldo diario
0002 cargo administrativo
0001 contrato fijo
NECESITO CONSULTAR TODOS LOS TRABAJADORES(TABLA1) QUE NO se les haya ingresado UN DETERMINADO ATRIBUTO EN LA (TABLA2)
DE ANTEMANO GRACIAS
SALUDOS CORDIALES
ROBERTO, CHILE
Valora esta pregunta


0