Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code the following queries in Tuple Relational Calculus: The following tables include information about tourists, their organizations, some organizations may have planned tours and information

Code the following queries in Tuple Relational Calculus:image text in transcribed

The following tables include information about tourists, their organizations, some organizations may have planned tours and information is kept about the tourists to participate in each tour; a tourist may work-for more than one organization. A tourist may participate in any tour whether organized by his/her organization or not. Each tourist has a city and a country where they live which may be different than their citizenship. Note that tid means tourist ID, code means tour code, org_name means organization name, sin_fd1 and sin_fd2 represent sin numbers of a person and his/her friend, citizenship is a country Tour(code, city, country, time, day) Participate(tid, code, class) Works-for(tid.org-name) Tourist(tid, sin, name, citizenship, city, country, age, gender) Organization(name, code, leader-tid, leader-sin, city, year_started) Friend(sin fdl, sin fd2) Code the following queries in Tuple Relational Calculus: g) Find id's of organizations which do not have any Spanish workers? (notice that Spain is a citizenship) h) Find organizations who have German leaders and at least one worker who lives in India? The following tables include information about tourists, their organizations, some organizations may have planned tours and information is kept about the tourists to participate in each tour; a tourist may work-for more than one organization. A tourist may participate in any tour whether organized by his/her organization or not. Each tourist has a city and a country where they live which may be different than their citizenship. Note that tid means tourist ID, code means tour code, org_name means organization name, sin_fd1 and sin_fd2 represent sin numbers of a person and his/her friend, citizenship is a country Tour(code, city, country, time, day) Participate(tid, code, class) Works-for(tid.org-name) Tourist(tid, sin, name, citizenship, city, country, age, gender) Organization(name, code, leader-tid, leader-sin, city, year_started) Friend(sin fdl, sin fd2) Code the following queries in Tuple Relational Calculus: g) Find id's of organizations which do not have any Spanish workers? (notice that Spain is a citizenship) h) Find organizations who have German leaders and at least one worker who lives in India

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 Systems Introduction To Databases And Data Warehouses

Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov

1st Edition

1943153191, 978-1943153190

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago