sourabhjha
Programmer
I have a table with four columns in it.One of them is a date field,two chars and one number
I want to create a view with following fields(same four)
-two char fields mentioned above but with all the distinct combinations of them along with the month-year value of the date field.So date field will now contain only the month-year value and the two chars will have only the distinct combinations for every month-year.
-Number fields sum totalled for each month-year
To give an example
MyTable
field1 field2 field3 field4
a1 b1 1 2nd Jan,2001
a1 b1 7 3nd Jan,2001
a2 b2 4 2nd Jan,2001
a2 b2 5 2nd Jan,2001
a3 b3 2 2nd feb,2001
a3 b3 3 3nd feb,2001
a4 b1 6 2nd feb,2001
a4 b1 1 2nd feb,2001
MyView
field1 field2 field3 field4
a1 b1 8 Jan,2001
a2 b2 9 Jan,2001
a3 b3 5 Feb,2001
a4 b1 7 Feb,2001
So my problem is to create the view MyView
Thanks in advance
-Sourabh
I want to create a view with following fields(same four)
-two char fields mentioned above but with all the distinct combinations of them along with the month-year value of the date field.So date field will now contain only the month-year value and the two chars will have only the distinct combinations for every month-year.
-Number fields sum totalled for each month-year
To give an example
MyTable
field1 field2 field3 field4
a1 b1 1 2nd Jan,2001
a1 b1 7 3nd Jan,2001
a2 b2 4 2nd Jan,2001
a2 b2 5 2nd Jan,2001
a3 b3 2 2nd feb,2001
a3 b3 3 3nd feb,2001
a4 b1 6 2nd feb,2001
a4 b1 1 2nd feb,2001
MyView
field1 field2 field3 field4
a1 b1 8 Jan,2001
a2 b2 9 Jan,2001
a3 b3 5 Feb,2001
a4 b1 7 Feb,2001
So my problem is to create the view MyView
Thanks in advance
-Sourabh