Is there a reason you’re not using the ORM? Assuming you have some relations set up on your objects, it should be a fairly simple query, something along the lines of:
Hi,
Thank you for this idea. I have some relations set for a new form (newsletter) and I’m not well versed in Silverstripes ORM. I know SQL much better and it is simply a question of time spent when searching for the Silverstripe way In most frameworks I worked, there was an option within the “DB SQL”. I see the next reply is the one I was searching for.