rafaelrgl
asked on
how to select rows from other table to compare
hi, i have 2 tables:
table1 table2
id number1 number2 id number1
1 10 7 1 8
2 5 3 2 10
3 8 3
i want create an select that makes the test to see if the table2 has the record number1 for table1. so we will create an table like this:
table3
id number1 number2 haveregistry
1 10 7 true
2 5 3 false
3 8 3 true
any idea?
table1 table2
id number1 number2 id number1
1 10 7 1 8
2 5 3 2 10
3 8 3
i want create an select that makes the test to see if the table2 has the record number1 for table1. so we will create an table like this:
table3
id number1 number2 haveregistry
1 10 7 true
2 5 3 false
3 8 3 true
any idea?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window