Question: The Database, whose relational scheme is given below, contains data regarding the Student Selection and Placement System. OKUL ( OKKODU , OKADI, KENT, ADRES )
The Database, whose relational scheme is given below, contains data regarding the Student Selection and Placement System.
OKUL OKKODU OKADI, KENT, ADRES
OKULTRTRKODU TRADI
KOL KOLKODU KOLADI
TRKOL TRKODU KOLKODU
OKULTR OKKODU TRKODU SIRNO
OKULTRKOL OKKODU TRKODU KOLKODU
NV NOADIADRES
YPROG YPKODU YPADINORSR KENT
ADAY ADYNO ADI, SOYADI, OKKODU, TRKODU KOLKODU, KYPKODU
TERCH ADYNO YPKODU TRCSIR
Brief explanations about the database are as follows.
OKUL relationship includes the codes, names, cities and addresses of secondary schools.
OKULTR relationship includes the codes and names of school types general high school, science high school, trade high school, etc.
KOL relationship includes the codes and names of school branches mathematics Turkishmathematics, accounting, etc.
TRKOL relationship includes data on which branchesbranches can be found in which types of schools.
OKULTR relationship shows the type or types of each school. Although most schools have a single type, some schools may have more than one type for example, both technical high school and industrial vocational high school
OKULTRKOL relationship shows which type of school, which branchesbranches provide education.
NV relationship includes the number, name and rectorate address of each university included in the SYS system.
YPROG relationship shows the code, name, affiliated university, duration of education and city of each higher education program included in the SYS system.
ADAY relationship, each candidate applying to SYS has the number, name, surname; the code, type and branch of the school they graduated from and the code of the higher education program they were accepted to For candidates who could not be accepted to any higher education program, the value of this last attribute is null.
TERCH relationship, the data on which higher education programs each candidate preferred and in which order are included.
Create the existencerelationship diagram of this database Show existence dependencies with weak existence sets in the diagram, use only binary relation sets and try to use as few relation sets as possible
Answer the following queries about the Database with the given relational schema using relational operators and SQL
a "Find the number, name and surname of candidates who did not make any preferences".
b "Find the number, name and surname of candidates who were accepted to the higher education program they wanted as their st preference".
c "Find the codes of higher education programs that were not preferred by any candidate as their st preference".
d "Find the number, name and surname of candidates who included all higher education programs in Sakarya among their preferences".
e "Find the number, name and surname of candidates who did not include any higher education programs in Istanbul among their preferences".
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
