create a view that includes all data for officers, including the total number of crimes in which they participated in filing charges. to speed up the officer queries, store this view data and schedule the data to be updated every two weeks

Respuesta :

A view in SQL is a fictitious table built from the results of a SQL statement. Like a true table, a view also has rows and columns . A view contains fields from one or more actual database tables.

If you have the Insert privilege on a single-table view, you can insert data through it. The defining SELECT statement cannot contain and can only select from one table to accomplish this system.

CREATE MATERIALIZED VIEW OFFICERVW

REFRESH COMPLETE

START WITH SYSDATE NEXT SYSDATE + 14

AS

SELECT officer_id, First, Last, precinct,

 badge, phone, status, COUNT crime_id count

FROM officers JOIN crime_officers USING(officer_id)

GROUP BY officer_id, First, Last, precinct, badge, phone, status;

Learn more about system here-

https://brainly.com/question/27162243

#SPJ4