I need to break out data from one column into different columns. IE.
Table: Hist_tbl
Columns: CustID, Minutes, Month
CustId | Minutes | Month
------------------------------
111 | 1000 | March
111 | 950 | April
111 | 850 | May
222 | 200 | March
222 | 300 | April
etc.
needs to break out like this
Query: Hist_qry
Table pulled from: Hist_tbl
CustID | March_min | April_min | May_min | etc
------------------------------------------------
111 | 1000 | 950 | 850 | etc
222 | 200 | 300 | 500 | etc
Is there a way to break this out in one simple query using SQL? The Hist_tbl contains yr 2003 data only so no months per customer will be duplicated.
Table: Hist_tbl
Columns: CustID, Minutes, Month
CustId | Minutes | Month
------------------------------
111 | 1000 | March
111 | 950 | April
111 | 850 | May
222 | 200 | March
222 | 300 | April
etc.
needs to break out like this
Query: Hist_qry
Table pulled from: Hist_tbl
CustID | March_min | April_min | May_min | etc
------------------------------------------------
111 | 1000 | 950 | 850 | etc
222 | 200 | 300 | 500 | etc
Is there a way to break this out in one simple query using SQL? The Hist_tbl contains yr 2003 data only so no months per customer will be duplicated.