Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. (50 points) Using the same relations in Problem 2, provide the SQL statements for the following queries: (a) Create the tables for the Branch

image text in transcribed

3. (50 points) Using the same relations in Problem 2, provide the SQL statements for the following queries: (a) Create the tables for the "Branch" and "Account" relations. You can decide the data types and sizes of the attributes in these two relations as long as they are meaningful Please make sure to include all the necessary constraints. (b) Find the ID and names of the clients who live in the street containing the substring "Apt. #B-100", arranged in descending order of the client IDs (c)List the details of all loans approved by "Chase Bank" or "CitiBank" (d) Find all the account numbers of the client whose cID is c12345. 3. (50 points) Using the same relations in Problem 2, provide the SQL statements for the following queries: (a) Create the tables for the "Branch" and "Account" relations. You can decide the data types and sizes of the attributes in these two relations as long as they are meaningful Please make sure to include all the necessary constraints. (b) Find the ID and names of the clients who live in the street containing the substring "Apt. #B-100", arranged in descending order of the client IDs (c)List the details of all loans approved by "Chase Bank" or "CitiBank" (d) Find all the account numbers of the client whose cID is c12345

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

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

Explain the global implications for recruitment.

Answered: 1 week ago

Question

Describe what competencies and competency modeling are.

Answered: 1 week ago

Question

Summarize job design concepts.

Answered: 1 week ago