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