Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
