Users and Experts:
I asked a similiar question in SQL forum but maybe I should ask it here.
I'm intersted in "compressing" a table to distinct values of a field or several fields, and having another field with the amount of existence of each distinct value in the following way:
original table:
Fname.....LnameInitial
----------....-----------------
John.........D.
John.........B.
George.....C.
Sam.........D.
Sam.........D.
Tom..........A.
Tom..........A.
Tom..........A.
"compressed" table or query:
Fname...LnameInitial..Amount
---------...---------------..-----------
John........D. ................1
John........B. ................1
George....C. ................1
Sam........D. ................2
Tom.........A. ............... 3
Does anyone know how to preform it?
Also, if it's not too much to ask, I'm intersted in creating exactly the opposite query that will create the original table from the compressed one.
Thank you.
I asked a similiar question in SQL forum but maybe I should ask it here.
I'm intersted in "compressing" a table to distinct values of a field or several fields, and having another field with the amount of existence of each distinct value in the following way:
original table:
Fname.....LnameInitial
----------....-----------------
John.........D.
John.........B.
George.....C.
Sam.........D.
Sam.........D.
Tom..........A.
Tom..........A.
Tom..........A.
"compressed" table or query:
Fname...LnameInitial..Amount
---------...---------------..-----------
John........D. ................1
John........B. ................1
George....C. ................1
Sam........D. ................2
Tom.........A. ............... 3
Does anyone know how to preform it?
Also, if it's not too much to ask, I'm intersted in creating exactly the opposite query that will create the original table from the compressed one.
Thank you.