After executing the next query I obtain the data bellow..
Query:
SELECT datechanged,id,posid,upby,day,month,year,seto
FROM tblPostingStatusTrail a
WHERE a.seto = 'on'
datechanged--id---posgid--upby----day-month-year-seto
2003-03-17 1 500 Gerar 4 1 2005 on
2005-04-11 55 475 Suque 6 4 2005 on
2005-04-11 56 475 Suquet 6 7 2005 on
2005-04-11 57 475 Suquet 6 8 2005 on
2005-04-26 58 895 RAUL 2 9 2005 on
2005-04-26 58 895 Raul 2 11 2005 on
I need some help to obtain:
posgid--upby---- Totaltime -seto
500 Gerar 1moth on
475 Suquet 4month on
895 Raul 2month on
To get this result I should add the dates and calculate this into month related with a postingID.
I would appreciate any help.
Thanks
Query:
SELECT datechanged,id,posid,upby,day,month,year,seto
FROM tblPostingStatusTrail a
WHERE a.seto = 'on'
datechanged--id---posgid--upby----day-month-year-seto
2003-03-17 1 500 Gerar 4 1 2005 on
2005-04-11 55 475 Suque 6 4 2005 on
2005-04-11 56 475 Suquet 6 7 2005 on
2005-04-11 57 475 Suquet 6 8 2005 on
2005-04-26 58 895 RAUL 2 9 2005 on
2005-04-26 58 895 Raul 2 11 2005 on
I need some help to obtain:
posgid--upby---- Totaltime -seto
500 Gerar 1moth on
475 Suquet 4month on
895 Raul 2month on
To get this result I should add the dates and calculate this into month related with a postingID.
I would appreciate any help.
Thanks