Write the sql statements to satisfy the requests

Assignment Help Computer Engineering
Reference no: EM132174966

We will be using a second database for many of our Assignments called CityJail. The SQL scripts to load the CityJail database can be found in Lesson 1. For this assignment, you will need to use the CityJail_8.sql file.

Once you sign in to SQLNavigator, use the File->Open menu option to bring in the script and execute it. A data dictionary for the database can be found at the end of Chapter 3 in the Casteel book.

At the end of the data dictionary is a coding key for selected columns that you will need to complete this assignment.

The following list reflects data requests from city managers. Write the SQL statements to satisfy the requests. Test the statements and show execution results.

1- List all Aliases beginning with the letter C.

2- List all crimes that occurred (were charged) during the month of September 2008. List the crime ID, criminal ID, date charged, and classification.

3- List all crimes with the status of CL (closed) or IA (in appeal). List the crime ID, criminal ID, date charged, and status

4- List all crimes classified as a misdemeanor. List the crime ID, criminal ID, date charged, and classification.

5 - List all crimes with a hearing date more than 10 days after the date charged. List the crime ID, criminal ID, date charged, and hearing date.

6- List all criminals with a zip code of 26503. List the criminal ID, last name, and zip code. Sort the list by criminal ID.

7- List all crimes that do have a hearing date scheduled. List the crime ID, criminal ID, date charged, and hearing date.

8- List all crimes that are classified as a felony and that can be appealed. List the crime ID, criminal ID, classification, and status.

9- List all crime charges with the balance owed. List the charge ID, crime ID, fine amount, court fee, amount paid, and amount owed.

10- List all police officers were assigned to either the OCVW or WAVE precinct and have a status of active. (Just to be clear, the officers can be in either precinct but must have a status of active.) List the officer ID, last name, precinct, and status. Sort the list by precinct and then by officer last name.

Reference no: EM132174966

Questions Cloud

Why have musk deep populations dropped dramatically : Why have musk deep populations dropped dramatically? What has been done to help protect them? What else might you suggest be done.
What gas was collected in the test tubes during incubation : It is about biology lab. Fermentation in Yeast with different substrates. What gas was collected in the test tubes during incubation?
Write and test a mips assembly program : Using SPIM, please write and test a MIPS assembly program that computes a Fibonacci sequence.
How would you define substantial hardship : Assignment - Industry Knowledge and the Lending Process. In your own words how would you define 'substantial hardship
Write the sql statements to satisfy the requests : Write the SQL statements to satisfy the requests. Test the statements and show execution results.
What would the corresponding amino acid sequence : A DNA strand had the following sequence GATTCGAATCGATTAG, what would the corresponding amino acid sequence?
Express the given as relational algebra queries : The make, model, year, pickup date, and dropoff date of all cars rented by customer C293048.
Recognition of humans as key components of the ecosystem : Integration of ecological, social, and economic goals and recognition of humans as key components of the ecosystem - Accounting for the complexity of natural
How do the various components of the lymphatic system : How do the various components of the lymphatic system operate? We have talked about many organ systems.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd