Using Related Tables in MySQL

I am seeking guidance regarding an issue I am facing with our existing MySQL database, which has been integrated into a custom Ruby on Rails application for several years. I am looking for a solution that allows me to access the database effectively to create outside applications that our Ruby app doesn’t do.

Specifically, I am having difficulty utilizing the relationships between the parent and child tables. For example, the parent table contains the client names, while the child table, connected through a primary key in the parent table and a foreign key in the child table, holds additional details such as email addresses and other client information.

The value of a relational database lies in leveraging the relationships between tables, yet I am struggling to connect and pull data from both tables in a way that aligns with the intended functionality. I would greatly appreciate any insights or recommendations to address this challenge.

Hi @MichaelS could you send us the queries/statements you are using inside Softr to pull the data into your dynamic blocks?

1 Like

Hi @pford That is kind of my questions, is it possible to use queries/statements inside Softr? Using a query, could I pull data from multiple tables to be displayed in a dynamic block? Is there a guide explaining how to do this with Softr?

Yes, you can definitely do this! That’s actually the main way to filter and select the data you need to show.