Question: Considering the following 4 tables, Please post solution in form of xml Considering the following four tables: Farmer (SIN, name, age, sex, vname) Village (name,
Considering the following 4 tables, Please post solution in form of xml

Considering the following four tables: Farmer (SIN, name, age, sex, vname) Village (name, area, population, province) Kids (SIN, p1_sin, p2_sin, s_name) School (sname, vname, no_classes) Where, sname corresponds to school name, vname corresponds to village name, and pl_sin and p2_sin stand for the parentl and parent2's SIN, respectively. Code the following queries in relational algebra: a) Find SIN of farmers who have some kids going to school. b) Find each school attended only by kids from the same village where the school is located. c) Find the name(s) of the most crowded village(s) (most population). d) Find farmers who have at least one kid in every school registered in the database. e) Find name(s) of village(s) with no schools
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
