R
R
rumit772021-09-02 13:21:40
SQL Server
rumit77, 2021-09-02 13:21:40

How to display fields with the same values?

There is a workers table with fields name, salary. How to display names with the same salary values?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Slava Rozhnev, 2021-09-02
@rumit77

For example like this:

select STRING_AGG(Name, ',') as Names, Salary from Workers group by Salary;

Run SQL online

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question