sunilvedula
Sunil
- Local time
- Today, 20:55
- Joined
- Jan 18, 2007
- Messages
- 138
hi all,
i have two tables (table1 and table 2). Both contains the same fields. The field refno is the unique one. i want to find out the similar records with the same refno and having the same "action" (another field) type. Also i want to segregrate records which have the same refno and different "action" types.
i have tried using "in" which gives me all records with the same ref no but is not allowing me to separate the records on the action type which i tried using "Not in"
Also i have tried writing one query which pulls up all the records with the same refno and then write another queyr based on this query to differentiate based on the action type but it does not give me the desired result. it is not able to differntiate the action types when using "Not in".
Both Refno and action are text fields. Please help with suggestions.
i have two tables (table1 and table 2). Both contains the same fields. The field refno is the unique one. i want to find out the similar records with the same refno and having the same "action" (another field) type. Also i want to segregrate records which have the same refno and different "action" types.
i have tried using "in" which gives me all records with the same ref no but is not allowing me to separate the records on the action type which i tried using "Not in"
Also i have tried writing one query which pulls up all the records with the same refno and then write another queyr based on this query to differentiate based on the action type but it does not give me the desired result. it is not able to differntiate the action types when using "Not in".
Both Refno and action are text fields. Please help with suggestions.