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!
A subquery, that have a reference to the columns of the main query, are called
In which commands can we use subqueries?
In which sections of the SELECT command can we use subqueries?
From the EMPL table, list all employees, whose salary (field SAL) is greater than one of employee Шевченко (field NAME):
Consider the EMPLOYEE table, that has the following fields: ID – id number of employee, DEPARTMENT_ID – the id number of the department and SALARY – his monthly wage. What can we obtain by means of the following query:
SELECT E.* FROM EMPLOYEE E WHERE E.SALARY = ( SELECT MAX(SALARY) FROM EMPLOYEE E2
WHERE E2.DEPARTMENT_ID= E.DEPARTMENT_ID )
Consider the table named COUNTRIES:
Determine the average population on each continent.
Consider the STUDENT table:
Calculate the result of the following query:
SELECT AVG(RAITING) FROM STUDENT
Consider the table named COUNTRIES
The following query:
SELECT CONTINENT, COUNT(COUNTRY)
FROM COUNTRIES
GROUP BY CONTINENT
HAVING SUM(POPULATION) > 300
would give us the information about:
Consider the following table named STUDENT
| ID | NAME | ID_INSTITUTE | RATING |
| 1 | Левицький А. | I1 | 4.7 |
| 2 | Стернюк У. | I1 | 3.8 |
| 3 | Войтенко М. | ||
| 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, INSTITUTE
WHERE STUDENT.ID_INSTITUTE=INSTITUTE.ID