Hi,
I need a help.I want to get the count of a row.I am using sql server
id fstday secday 3day 4day 5day
aaa P A P A A
bbb A P P A P
In the above result i pasted two rows of data from my table.I want to get the count of each employee having values as 'p' .FOR EG
i want the result set as for userid aaa ------------------2 (Its having 2 P's)
and for userid bbb------------------3 (Its having 3 P's)
plse help me to find this
Regards
Nitha
I need a help.I want to get the count of a row.I am using sql server
id fstday secday 3day 4day 5day
aaa P A P A A
bbb A P P A P
In the above result i pasted two rows of data from my table.I want to get the count of each employee having values as 'p' .FOR EG
i want the result set as for userid aaa ------------------2 (Its having 2 P's)
and for userid bbb------------------3 (Its having 3 P's)
plse help me to find this
Regards
Nitha