
April 5th, 2012, 02:36 AM
|
|
Registered User
|
|
Join Date: Nov 2010
Posts: 7
Time spent in forums: 3 h 53 m 16 sec
Reputation Power: 0
|
|
|
Splitting data & getting datacount
i have a column (summary) with the data as
SUMMARY
1-AB-XY
2-OP-AB
1-AB-XY
1-MN-ZZ-AB
1-OP-AB
2-AB-XY
1-MN-ZZ-AB
1-OP-AB
1-MN-ZZ-AB
2) i need SQL query to get the data and its count of the column data like
1-AB - 7(count)
1-XY - 2(count)
2-OP - 1(count)
1-MN - 3(count)
1-ZZ - 3(count)
1-OP - 2(count)
2-AB - 2 (count)
2-XY - 1 (count)
|