Count, inner join
- by Urosh
I have two tables:
DRIVER
(Driver_Id,First name,Last name,...)
PARTICIPANT IN CAR ACCIDENT
(Participant_Id,Driver_Id-foreign key,responsibility-yes or no,...)
Now, I need to find out which driver participated in accident where responsibility is 'YES', and how many times. I did this:
Select Driver_ID, COUNT (Participant.Driver_ID)as 'Number of…