Skip to content
Advertisement

mysql get result from join table

I have a tables person and exam.

I want to show data where all exam is PASS, show the latest exam pass_date. like table below

what query to get it? please help. thanks!

Advertisement

Answer

You can use aggregation and conditional expressions:

Note that for this sample data, you don’t need to bring in the person table to get the results that you want.

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