Crystalguru
Technical User
I have a query that returns multiple rows because of a code that describes a Unit. Can I write a SQL statement that will put all of the codes in one row?
For example:
select unit_num,amenity_code from UNITS
It returns:
Unit_Num Amenity_code
312 B
312 K
312 C
And the list can go on!!
Can I get the output to look like this:
Unit_num Amenity_code
312 BKC
Thanks!
For example:
select unit_num,amenity_code from UNITS
It returns:
Unit_Num Amenity_code
312 B
312 K
312 C
And the list can go on!!
Can I get the output to look like this:
Unit_num Amenity_code
312 BKC
Thanks!