Hi there,
I've been tryin to retrieve the data in a table that has 6 primary fields and some other more regular ones..
I've inserted in it all the possible combinations of the pk fields in the aplication i'm creating, but when i'm returning all the data in the fields i can't avoid to have repeated data for the first PK field..
I've tried to do something like :
select distinct(FirstPKField),* from DataTable
But in SQL 2K it's retrieving all of the combinations..
What I'm looking for, is a way to supress all the repeated FirstPKField Data and return it only once with another field that indicates de date of creation (this one is common to all the records).. All the other fields in the table have to be in the query result also but they are not visible to the end user..
Is this possible??
I've searched in websites for an answer but couldn't get one.. hope here is the right place! ;-)
TIA,
YJoke
I've been tryin to retrieve the data in a table that has 6 primary fields and some other more regular ones..
I've inserted in it all the possible combinations of the pk fields in the aplication i'm creating, but when i'm returning all the data in the fields i can't avoid to have repeated data for the first PK field..
I've tried to do something like :
select distinct(FirstPKField),* from DataTable
But in SQL 2K it's retrieving all of the combinations..
What I'm looking for, is a way to supress all the repeated FirstPKField Data and return it only once with another field that indicates de date of creation (this one is common to all the records).. All the other fields in the table have to be in the query result also but they are not visible to the end user..
Is this possible??
I've searched in websites for an answer but couldn't get one.. hope here is the right place! ;-)
TIA,
YJoke