hi
i have two tables one storing the OBject Details (name= tblObjectDetails) and another storing Object related fields (name= tblObjectUser)!
I have created a query which will return a total of 10 records. First it checks tblObjectUser and returns all objects related to a particular user then it makes a union on the tblObjectDetails. A limit of 10 is set so that only 10 records will sent back!
The problem is that the records on the Object ID are not distinct! So if object id 3 is returned from tblObjectUser an other object_id 3 can be returned from tblObjectDetails!
How can i make this query distinct!?
Thanks
B
i have two tables one storing the OBject Details (name= tblObjectDetails) and another storing Object related fields (name= tblObjectUser)!
I have created a query which will return a total of 10 records. First it checks tblObjectUser and returns all objects related to a particular user then it makes a union on the tblObjectDetails. A limit of 10 is set so that only 10 records will sent back!
The problem is that the records on the Object ID are not distinct! So if object id 3 is returned from tblObjectUser an other object_id 3 can be returned from tblObjectDetails!
How can i make this query distinct!?
Thanks
B