Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CODE IN SQL The following tables include information about volunteers, their organizations, their planned projects, and volunteers who will participate in each project; a volunteer
CODE IN SQL
The following tables include information about volunteers, their organizations, their planned projects, and volunteers who
will participate in each project; a volunteer may be member in more than one organization. Friend is a table which includes
in each row sin numbers of two friends who may or may not be volunteers
Note that vid is volunteer ID code is project code, orgname is organization name, sinfd and sinfd represent sin
numbers of two friends, citizenship is a country
Projectcode city, country, time, day Participatevid code, role
Membervidorgname Volunteervid sin name, city, citizenship, age, gender
Friendsinfd sinfd Organizationname leadervid, leadersin city, yearstarted
Find vids and roles of volunteers who participated in at least one project in Uganda? Uganda is a country For cities where there are projects but no volunteers? For cities which have at least one organization and at least one volunteer, find number of organizationsand number of volunteers in each such city? Find the name of each organization whose leader have only friends who volunteered? Find name of every female volunteer who only participated in all projects in her city? Find codes of projects which are located inside countries from which there is at least one male volunteerover years old?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started