Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a query that will show all probation officers SQL> Select 2 from officer; 2. Write a query that will show the first and

image text in transcribed
1. Write a query that will show all probation officers SQL> Select 2 from officer; 2. Write a query that will show the first and last names of probation officers SQL> Select firstiname, lastname 2 from officer; 3. Now write a query that shows first and last name of probation officers. Include the field probid but rename probjid to probation officer ID. SQL> Select firstname, lastname, RCobnid as 'probation officer ID' 2 from officer; 4. Write a query that will show crime id, and the total charges for each crime ID. Include an alias for the total charges column called Total Charges. SQL> Select crimert 11 ", "Itotalcharges "fiotal Charges" 2 from bfficers; 1. Write a query that will show all probation officers SQL> Select 2 from officer; 2. Write a query that will show the first and last names of probation officers SQL> Select firstiname, lastname 2 from officer; 3. Now write a query that shows first and last name of probation officers. Include the field probid but rename probjid to probation officer ID. SQL> Select firstname, lastname, RCobnid as 'probation officer ID' 2 from officer; 4. Write a query that will show crime id, and the total charges for each crime ID. Include an alias for the total charges column called Total Charges. SQL> Select crimert 11 ", "Itotalcharges "fiotal Charges" 2 from bfficers

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PostgreSQL 10 High Performance Expert Techniques For Query Optimization High Availability And Efficient Database Maintenance

Authors: Ibrar Ahmed ,Gregory Smith ,Enrico Pirozzi

3rd Edition

1788474481, 978-1788474481

More Books

Students also viewed these Databases questions

Question

Exports of goods, services, and income $168,953

Answered: 1 week ago

Question

Organize and support your main points

Answered: 1 week ago

Question

Move smoothly from point to point

Answered: 1 week ago

Question

Outlining Your Speech?

Answered: 1 week ago