I would like a single SQL query which will return all sections for an exam id, all sections related to the exam id, and 5 random questions and their related options.
I have 4 related tables in a SQL DB, as follows:
In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!