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 raid can influence database performance?
Define candidate key, alternate key, and composite key.
Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?
What are the purpose of Normalisation?
How you can change a cross join into an inner join?
How many partitions a clustered index has by default in sql server 2012?
Do you know exporting and importing utility?
Can you please explain the difference between function and stored procedure?
Why main is user defined function?
Explain logical operators in sql server?
What are the types of database recovery models?
Explain ms sql server reporting services vs crystal reports?
Define indexes?
Explain about integration services of Microsoft SQL server?
What is SQL Azure Data sync?