So I've been working on a Java program to query a database using SQL. While the majority of it is set up, I'm having some trouble formulating some of the queries.
For example, one query is meant to every unique identifier, 'ID', from one table, and then return the set of exams they attend, from a separate table which uses 'ID' as a foreign key. I'm not really sure how to form this as a query and I'm really stumped. Any help would be really appreciated.
Thanks