Link to home
Start Free TrialLog in
Avatar of sbornstein2
sbornstein2

asked on

SQL Statement using Case

I have a stored procedure that returns 12 rows each time I run it.  The database was designed that it is storing a record for each Month in rows for example:

Table:  MonthAmounts
Fields:
MonthID,    MonthAmt
1               5.00
2               10.00
3               17.50
4                 3.50
......

I want to get everything in one row if possible.  I will always be pulling 12 rows.  Do I have to write a cursor to handle this or can I get it all into 1 record across for all months?  Thanks
ASKER CERTIFIED SOLUTION
Avatar of rafrancisco
rafrancisco

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial