if we have a column (Key) in a table.
and values of that column is
Key
1
1
1
2
2
3
3
4
4
5
5
5
and we want to show the data after query..like..
1(3)
2(3)
3(2)
4(2)
5(3)
how many times a single term comes..
Answer Posted / sagar more
select replace(wm_concat(key||''||'('||count(*)||')' ),',','') key from drop1
group by key
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How can i Relate Tables in SSIS
What is query optimization process?
How to turn on the mssql api module in php?
Will the writetext statement activate a trigger?
Explain the types of indexes.
Define inner join in sql server joins?
What is a sql join?
How to fetch the next row from a cursor with a "fetch" statement?
What is right outer join in sql server joins?
How to create “dependant” parameter “make, model, year”
what is a join and explain different types of joins? : Sql server database administration
What is an execution plan? When would you use it?
What is difference between aggregate and analytic function?
Explain different types of collation sensitivity?
What are the components of sql server service broker?