logo

Crowdly

Browser

Add to Chrome

Retake | Database Management Systems | Aldiyar Salkenov

Looking for Retake | Database Management Systems | Aldiyar Salkenov test answers and solutions? Browse our comprehensive collection of verified answers for Retake | Database Management Systems | Aldiyar Salkenov at moodle.astanait.edu.kz.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Which SQL statement lets you find the sales amount for each store?

Table SALES

 Column Name 
 STORE_ID 
 SALES_DATE 
 SALES_AMOUNT 
0%
0%
100%
0%
View this question

Table B

ID
1
2
3

Table C

ID
4
5
6

The below query is run on both of the above tables:

SELECT * FROM C UNION SELECT * FROM B UNION ALL SELECT * FROM C UNION ALL SELECT * FROM B

What will be the result of the query:

0%
0%
0%
0%
View this question
The following query: SELECT [Name], [Year], SUM([Sales]) FROM [dbo].[Product] GROUP BY GROUPING SETS (([Name]), ([Year]))

Is equivalent with?
0%
0%
0%
0%
View this question

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?

0%
0%
0%
0%
View this question
Will the following statement execute successfully?

SELECT [Category] ,[Subcategory] ,COUNT(*) AS [NoProducts] FROM [dbo].[ProductStock] GROUP BY [Category];

0%
0%
View this question

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 

0%
100%
0%
0%
View this question

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:

namevarchar
breedvarchar
weightfloat
colorvarchar
ageint

0%
100%
0%
0%
View this question
'Having' clause is used with
100%
0%
0%
View this question

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.

0%
0%
0%
100%
View this question

What kind of rows does the UNION operation eliminate during operation by default?

0%
0%
0%
100%
View this question

Want instant access to all verified answers on moodle.astanait.edu.kz?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome