Hello All,
I have 2 tables
a) main: has 2 columns- id and name.
b) alias: has 2 column -id and alternate name.
both the tables are joined through id, now what I am trying to do is if user enters either the name or the alternate name , it should return me the id and the name.
When I tried to use 'OR' as the operator, it returned me all the entries of the database.
Kindly anyone suggest the possible solutions.
Thanks
Kumar
I have 2 tables
a) main: has 2 columns- id and name.
b) alias: has 2 column -id and alternate name.
both the tables are joined through id, now what I am trying to do is if user enters either the name or the alternate name , it should return me the id and the name.
When I tried to use 'OR' as the operator, it returned me all the entries of the database.
Kindly anyone suggest the possible solutions.
Thanks
Kumar
Comment