Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

List all cities that have 10 or more students and instructors combined. Show city, state, number of student residents, number of instructor residents, and total

List all cities that have 10 or more students and instructors combined. Show city, state, number of student residents, number of instructor residents, and total student/instructor residents in that city.Tables in the database:

Name Null Type

-------------- -------- ------------Instructor table

INSTRUCTOR_ID NOT NULL NUMBER(8)

SALUTATION VARCHAR2(5)

FIRST_NAME VARCHAR2(25)

LAST_NAME VARCHAR2(25)

STREET_ADDRESS VARCHAR2(50)

ZIP VARCHAR2(5)

PHONE VARCHAR2(15)

CREATED_BY NOT NULL VARCHAR2(30)

CREATED_DATE NOT NULL DATE

MODIFIED_BY NOT NULL VARCHAR2(30)

MODIFIED_DATE NOT NULL DATE

Name Null Type

----------------- -------- ------------STUDENT TABLE

STUDENT_ID NOT NULL NUMBER(8)

SALUTATION VARCHAR2(5)

FIRST_NAME VARCHAR2(25)

LAST_NAME NOT NULL VARCHAR2(25)

STREET_ADDRESS VARCHAR2(50)

ZIP NOT NULL VARCHAR2(5)

PHONE VARCHAR2(15)

EMPLOYER VARCHAR2(50)

REGISTRATION_DATE NOT NULL DATE

CREATED_BY NOT NULL VARCHAR2(30)

CREATED_DATE NOT NULL DATE

MODIFIED_BY NOT NULL VARCHAR2(30)

MODIFIED_DATE NOT NULL DATE

Name Null Type

------------- -------- ------------ZIPCODE TABLE

ZIP NOT NULL VARCHAR2(5)

CITY VARCHAR2(25)

STATE VARCHAR2(2)

CREATED_BY NOT NULL VARCHAR2(30)

CREATED_DATE NOT NULL DATE

MODIFIED_BY NOT NULL VARCHAR2(30)

MODIFIED_DATE NOT NULL DATE

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

Transactions On Large Scale Data And Knowledge Centered Systems Iv Special Issue On Database Systems For Biomedical Applications Lncs 6990

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Christian Bohm ,Johann Eder ,Claudia Plant

2011th Edition

3642237398, 978-3642237393

More Books

Students also viewed these Databases questions