arajasek
8th August 2002, 12:27
Hi,
I was trying to get distinct records from main table in a display session. And so Iwas tryin it out in a query extension. Problem is I could get the required records, But Iam not able to skip the duplicate records.
Let me explain this with an example. Lets assume that we have 2 tables Emp and dept.
Here is the structure of the tables ...
Emp table --> Enum, Ename, Esal
Dept table --> Dnum, Dname
So this way I have 100 records in employee table and just 4 records in dept table which means we just have 4 departments. Now my problem is to fetch just 4 records from employee table thru a query extension on Emp table... since main table for this dsiplay session is employee table.
I hope I was clear in explainin the situation.
Kindly help me out to solve this problem.
I was trying to get distinct records from main table in a display session. And so Iwas tryin it out in a query extension. Problem is I could get the required records, But Iam not able to skip the duplicate records.
Let me explain this with an example. Lets assume that we have 2 tables Emp and dept.
Here is the structure of the tables ...
Emp table --> Enum, Ename, Esal
Dept table --> Dnum, Dname
So this way I have 100 records in employee table and just 4 records in dept table which means we just have 4 departments. Now my problem is to fetch just 4 records from employee table thru a query extension on Emp table... since main table for this dsiplay session is employee table.
I hope I was clear in explainin the situation.
Kindly help me out to solve this problem.