Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Explain and write the pseudocode for a Mapper/Reducer that takes as input a large file (possibly split into chucks) of integers and outputs: a. The

Explain and write the pseudocode for a Mapper/Reducer that takes as input a large file (possibly split into chucks) of integers and outputs:

a. The sum of the squares of each integer

b. The maximum integer

c. Assume you have a database with two relations (i.e. tables): customers and accounts.

The schema for customers is composed of the following attributes:

customerID (integer)

name (string)

address (string)

phone (string)

The schema for accounts is composed of the following attributes:

customerID (integer)

accountNumber (integer)

balance (float)

Write the following queries using SQL:

A. Find the customer name with account number 12345.

B. Find all customer names who have at least one account with balance >$100,000 Write the following queries using Relational Algebra:

C. Find all account numbers with balance <$20,000 D. Calculate the sum of all accounts for customer with ID=432

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions