Answer the question
In order to leave comments, you need to log in
How to write sql query?
tell me how to write a SQL query (PostgreSQL)
there are 2 tables:
company(
1 name
2 events = many_to_many(event)
)
event (
1 name
)
1 linking table -
company_events (
1 id
2 company_id
3 event_id
)
how to write a sql query to output like this:
id |company name.| list of events separated by commas
id |company name.| list of events separated by commas
id |company name.| list of events separated by commas
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question