Hs2021 database design and use group assignment write down


Database Design and Use Group Assignment

Assignment Description -

In this assignment you will use your normalized "City Jail" database you have created in your assignment one. You will form a group (2-3 students) and implement your designed City Jail database using Oracle SQL developer 12c. You will also perform different types of SQL queries on it to sharpen your SQL skills to implement and manage the database.

Assignment Tasks need to be executed -

-Discuss with in your group to find the best normalized "City Jail" database design to implement in Oracle database.

-Write down all the SQL statements require to construct the entire City Jail database. Execute all SQL queries in Oracle SQL developer 12c to implement the "City Jail" database in Oracle 12c. The CREATE TABLE statements should be created as a group.

-Execute the following queries individually and provide your answers:

Group member One:

  • Insert 5 different entries in each table. You can create fictitious data to create those entries.
  • Add a column named Mail_flag to the CRIMINALS table. The column should be assigned a data type CHAR (1).
  • Set the Mail_flag column to 'N' for all criminals who don't have a street address recorded in the database.
  • Change the phone number for a criminal to 7225659032.
  • Remove a specific criminal from the database. Make sure you remove all the associated information relevant to that criminal.

Group member Two:

  • List the following information for all crimes that have a period greater than 14 days between the date charged and the hearing date: crime ID, classification, date changed, hearing date, and number of days between the date charged and the hearing date.
  • Produce a list showing each active police officer and his or her community assignment, indicated by the second letter of the precent code. Display the community description listed the following chart, based on the second letter of the precent code.

Second letter precinct Code

Description

A

Shady Grove

B

Centre city

C

Bay Landing

  • Display the criminal name and probation start date for all criminals who have a probation period greater than two months. Also, display the date that's two months from the beginning the probation period, which will serve as a review date.

Group member Three:

  • List all criminals along with crime status and appeal status (if applicable). The report need to include the criminal ID, name, crime classification, date change, appeal filling date, and appeal status. Show all criminals, regardless of whether they have filled an appeal.
  • List all criminals along with crime information. The reports need to include the criminal ID, name, crime classification, date charged, crime code, and fine amount. Include only crimes classified as "Other". Sort the list by criminal ID and date changed.
  • Create an alphabetic list of all criminals, including criminal ID, name, violent offender, status, parole status, and any known aliases.

-Create SQL statements to drop all the tables you have created.

Request for Solution File

Ask an Expert for Answer!!
Database Management System: Hs2021 database design and use group assignment write down
Reference No:- TGS01608956

Expected delivery within 24 Hours