| Wednesday 18 August 2004 7:30:06 am 
                                                                 I think that nobody help me because they did not understand my poor English :-(.  What I need to obtain is a query that return the data of diverse objects, but grouped (like group by of SQL) by a certain attribute, this attribute is of text type but store years. I will develop a little plus the example that I exposed:  Imagine you a set of objects of a certain class that have an attribute of type text which we used to store a year: 
Name: PaulSecond_Name:Kristoff
 Birth_Year: 1945
 
Name: AppelSecond_Name:Jobs
 Birth_Year: 1955
 
Name: SaraSecond_Name:Barrer
 Birth_Year: 1945
 
Name: StephenSecond_Name:Jobs
 Birth_Year: 1955
 
Name: JohnSecond_Name: John
 Birth_Year: 1978
 Now I want to obtain by means of fetch (or two)  
 a) Objects that have the attribute different year. b) the number of objects that there are with the different year.
 Following the example: 
a)Year: 1945
 Year: 1955
 Year: 1978
 b) 3 |