Displaying 1 result from an estimated 1 matches for "custommer_id".
Did you mean:
customer_id
2006 Aug 03
0
sql question
In my rails application I want to run something like a report
my table is like this
id
custommer_id
oranges
lemons
Select sum(oranges),sum(lemons) from my table
group by " MAGIC GOES HERE "
order by custommer_id
MAGIC GOES HERE = group by 3 registers......
like
this
id| customer_id | oranges | lemons
1 | 1 | 5 | 6 |
2 | 1 |...