Ver Mensaje Individual
  #2  
Antiguo 21-12-2006
Avatar de Lepe
[Lepe] Lepe is offline
Miembro Premium
 
Registrado: may 2003
Posts: 7.424
Reputación: 29
Lepe Va por buen camino
En paradox pincho, en Firebird, es cuestión de usar una UDF que ya está hecha:
Cita:
Empezado por langref.pdf of Interbase 6
bin_and
Returns the result of a binary AND operation performed on the two input values.
DECLARE EXTERNAL FUNCTION BIN_AND
INTEGER, INTEGER
RETURNS INTEGER BY VALUE
ENTRY_POINT ’IB_UDF_bin_and’ MODULE_NAME ’ib_udf’;
Por tanto quedaría algo así como:
Código SQL [-]
Select * from tabla1 a, Tabla2 B
Where bin_and(a.IdStatus, b.IdStatus) = b.IdStatus

No he pensado mucho en el tema, simplemente he encontrado la función que pedías.

Saludos
__________________
Si usted entendió mi comentario, contácteme y gustosamente,
se lo volveré a explicar hasta que no lo entienda, Gracias.
Responder Con Cita