Below is a table with the entered data.
CREATE TABLE police(event_id VARCHAR(100), search_type VARCHAR(1000),
reported_by VARCHAR(100));
INSERT INTO police VALUES ('gng67g6yf', 'person','ceridigion' );
INSERT INTO police VALUES ('bfewbqfjhfb', 'person', 'ceridigion' );
INSERT INTO police VALUES ('ytftdfctg', 'n/a','ceridigion' );
INSERT INTO police VALUES ('yufvugyu', 'person','pembrokeshire', );
What I'm trying to figure out is a query in which the report_by message will be displayed, as well as search queries that have occurred in areas. Something like this below:
reported_by Stopped and searched
ceridigion 2
pembrokeshire 1
source
share