In: Computer Science
Query-1
select first,last,probID as 'probation officer ID'
from probofficers;
Screenshot
Query-2
SELECT crime_id,count(charge_id) as 'Total Charges'
FROM crime_charges
group by crime_id;
Screenshot
Query-3
SELECT concat(last,' ,',first) as 'Criminal Name'
FROM criminals;
Screenshot
Note:- Please write (use database_name;) infront of every query
Please provide sheemas for fourth and fifth queries.
Feel free to ask any doubts, if you face any difficulty in understanding.
Please upvote the answer if you find it helpful