Skip to content
Advertisement

How to select from chldren with parent table as one row

I’m struggling to fetch all results from member_details table as one row and group them by memberId. Here is my tables structure:

//members

JavaScript

//member_details

JavaScript

//result table view

JavaScript

//sql

JavaScript

Advertisement

Answer

you can use case expression as following

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement