Looking for Database & SQL Basics Lite Edition [Ukr+Eng sub, 2016] test answers and solutions? Browse our comprehensive collection of verified answers for Database & SQL Basics Lite Edition [Ukr+Eng sub, 2016] at softserve.academy.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
PRIMARY KEY is one or several fields of a table that contain a reference to the foreign key field in another table.
Consider the following table named STUDENT
ID | NAME | ID_INSTITUTE | RATING |
1 | Левицький А. | ||
2 | Стернюк У. | I1 | 3.8 |
3 | Войтенко М. | I2 | 3.5 |
4 | Бабич О. | I2 | 4.1 |
and the next table INSTITUTE
ID | NAME |
I1 | Computer science |
I2 | Mathematics |
I3 | Physics |
which have a relationship by the field ID_INSTITUTE
What is the query that would produce the following result set:
NAME OF STUDENT | NAME OF INSTITUTE |
Стернюк У. | Computer science |
Войтенко М. | Mathematics |
Бабич О. | Mathematics |
Consider the following table named STUDENT
ID | NAME | ID_INSTITUTE | RATING |
1 | Левицький А. | ||
2 | Стернюк У. | I1 | 3.8 |
3 | Войтенко М. | I2 | 3.5 |
4 | Бабич О. | I2 | 4.1 |
and the next table INSTITUTE
ID | NAME |
I1 | Computer science |
I2 | Mathematics |
I3 | Physics |
which have a relationship by the field ID_INSTITUTE
How many records would the following query produce SELECT STUDENT.ID, STUDENT.NAME, INSTITUTE.NAME FROM STUDENT FULL JOIN INSTITUTE ON STUDENT.ID_INSTITUTE=INSTITUTE.ID
If a table in a database has a foreign key then
Consider the EMPLOYEE table containing the employee’s ID, his name, salary and the ID number of his manager.
Check the queries which produce the information about employees who earn more than their managers:
Consider the following table named USER
How many records will the following query will produce:
SELECT * FROM USER WHERE NAME LIKE ‘%Ivan’
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!