Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 1 . Let s consider an Employee relation described by the following attributes: emptID, empName,empAddress and empPhone. a . Explain how the information

Question 1
1. Lets consider an Employee relation described by the following attributes: emptID, empName,empAddress and empPhone.
a. Explain how the information of the following row of the Employee relation (1,Ahmad,Riyadh,1134322) are stored in a Key-Value store.
b. Write the pseudo-code of a function called setEmpAttr allowing to store the value of a single attribute of a given employee in a Key-value store. The function setEmpAttr receives 3 parameters employeeID, AttributeName and Value. It stores Value as the value of the attributeAttributeName of the employee identified by employeeID.
c. Write the pseudo-code of a function called getEmpAttr allowing to retrieve the value of a singleattribute of a given employee in a Key-value store. The function getEmpAttr receives 2 parameters employeeID and AttributeName. It returns the value of the attribute AttributeName of the employee identified by employeeID.
2. Explain the principle of recursive query processing of put and get queries in a directory based architecture of a Key-Value store.

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

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

Describe loss aversion and myopic loss aversion.

Answered: 1 week ago