Шукаєте відповіді та рішення тестів для Retake | Database Management Systems | Aldiyar Salkenov? Перегляньте нашу велику колекцію перевірених відповідей для Retake | Database Management Systems | Aldiyar Salkenov в moodle.astanait.edu.kz.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
Table SALES
| Column Name |
| STORE_ID |
| SALES_DATE |
| SALES_AMOUNT |
Table B
| ID |
|---|
| 1 |
| 2 |
| 3 |
| ID |
|---|
| 4 |
| 5 |
| 6 |
Evaluate the following SQL statement:
SELECT promo_category, AVG(promo_cost) Avg_Cost, AVG(promo_cost)*.25 Avg_Overhead
FROM promotions
WHERE UPPER(promo_category) IN ('TV', 'INTERNET','POST')
GROUP BY Avg_Cost ORDER BY Avg_Overhead;
The above query generates an error on execution.
Which clause in the above SQL statement causes the error?
Which SQL statement is the correct one to use to find the earliest date STORE_ID 10 had a sales amount greater than 0?
Table SALES
| Column Name |
| STORE_ID |
| SALES_DATE |
| SALES_AMOUNT |
Which query finds the total weight of cats grouped by age, but only returns those groups with a total weight larger than 12 ordered by age?
Table schema:
| name | varchar |
| breed | varchar |
| weight | float |
| color | varchar |
| age | int |
SELECT COUNT(_____ id) FROM teachers WHERE semester = 'Spring' AND year = 2010;
If we do want to eliminate duplicates, we use the keyword _____ in the aggregate expression.What kind of rows does the UNION operation eliminate during operation by default?