Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6836553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:22:09+00:00 2026-05-26T23:22:09+00:00

When I run the following SQL query in my Oracle database: SELECT p.pkt_nazwa, u.us_nazwa

  • 0

When I run the following SQL query in my Oracle database:

SELECT p.pkt_nazwa, 
       u.us_nazwa 
FROM   punkty p, 
       kategorie_uslug ku, 
       usluga u 
WHERE  ku.pkt_id = p.pktk_1_id 
       AND ku.us_id = u.usk_1_id 
ORDER  BY p.pkt_nazwa; 

I get the following output:

NAME                | SERVICE
--------------------|-------------------
Baita De Mario      | WC 
Baita De Mario      | Kuchnia
Baita De Mario      | Nocleg
Bistro-Cafe         | Bar
Bistro-Cafe         | Dyskoteka
Bistro-Cafe         | Kuchnia

How would I go about to get the following output?

NAME                | SERVICES
--------------------|-------------------
Baita De Mario      | WC, Kuchnia, Nocleg 
Bistro-Cafe         | Bar, Dyskoteka, Kuchnia
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:22:10+00:00Added an answer on May 26, 2026 at 11:22 pm
    SELECT p.pkt_nazwa AS name, wm_concat(u.us_nazwa) AS services
    FROM   punkty p
    JOIN   kategorie_uslug ku ON ku.pkt_id = p.pktk_1_id
    JOIN   usluga u ON u.usk_1_id = ku.us_id
    GROUP  BY p.pkt_nazwa
    ORDER  BY p.pkt_nazwa;
    

    wm_concat() function is present in most versions.
    More about string aggregating in Oracle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I run the following SQL query SELECT * FROM A LEFT JOIN B
I have the following sql being run on an Oracle 10g database: select /*+
I have the following sql query: UPDATE (SELECT * FROM table_A INNER JOIN table_B
I'm trying to run the following MS SQL query: select PolicyCode, OccupancyCode, premiumcode, VersionNumber,
I have the following SQL query: SELECT members.member_ID, members.nick_name FROM orgs INNER JOIN assets
Can not run following SQL from ant's sql task : BEGIN DBMS_AQADM.CREATE_QUEUE_TABLE( queue_table =>
I would like to run the following SQL select: SELECT ID, NUMERATOR, (SELECT m.COLUMNNAME
I get the following error from the SQL Script I am trying to run:
How do I query the database name in Oracle SQL Developer? I have tried
I'm looking for a single SQL query to run on an oracle table that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.