ks_ks_
24th February 2009, 05:55
Hi,
My requirement is :
I have a couple of form fields based on which I have to pull the data from 2 different tables.
the form fields are common for the both the tables.
I dont want to join the tables rather want to pull the data from both the tables seperately.
E.g: Form fields a.f,a.t, b.f,b.t, c.f,c.t.
Now the 2 tables are X and Y.
if I want to pull the data from only X, then I would write:
select x.*
from x
where x.a between a.f and a.t
and x.b between b.f abd b.t
and x.c between c.f and c.t
the same code would be applicable to table Y as well.
Can anybody please help me to do this.
My requirement is :
I have a couple of form fields based on which I have to pull the data from 2 different tables.
the form fields are common for the both the tables.
I dont want to join the tables rather want to pull the data from both the tables seperately.
E.g: Form fields a.f,a.t, b.f,b.t, c.f,c.t.
Now the 2 tables are X and Y.
if I want to pull the data from only X, then I would write:
select x.*
from x
where x.a between a.f and a.t
and x.b between b.f abd b.t
and x.c between c.f and c.t
the same code would be applicable to table Y as well.
Can anybody please help me to do this.