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!

A SQL query will NOT work if there are no indexes on the relations

0%
0%
View this question

Evaluate the following query:

SELECT prod_name

FROM products

WHERE prod_id IN (SELECT prod_id FROM products

WHERE prod_list_price =

(SELECT MAX(prod_list_price)FROM products

WHERE prod_list_price <

(SELECT MAX(prod_list_price)FROM products)));

What would be the outcome of executing the above SQL statement?

0%
0%
0%
0%
View this question
What is the meaning of LIKE ‘%0%0%’?
0%
0%
0%
0%
0%
View this question

Statement 1:

SELECT promo_category, SUM(promo_cost)

FROM promotions

WHERE promo_end_date - promo_begin_date > 30

GROUP BY promo_category;

Statement 2 :

SELECT promo_category, SUM(promo_cost)

FROM promotions

GROUP BY promo_category

HAVING MIN(promo_end_date-promo_begin_date)>30;

Which statement is true regarding the above two SQL statements?

 

0%
0%
100%
0%
View this question

How many records does the following SQL statement generate?

SELECT * FROM EXAM_RESULTS WHERE LAST_NAME LIKE '%N%' AND EXAM_SCORE > 88;

Table EXAM_RESULTS

 STUDENT_ID  FIRST_NAME  LAST_NAME  EXAM_ID  EXAM_SCORE 
10 LAURA  LYNCH 190
10 LAURA  LYNCH 285
11 GRACE  BROWN 178
11 GRACE  BROWN 272
12 JAY  JACKSON 195
12 JAY  JACKSON 292
13 WILLIAM  BISHOP 170
13 WILLIAM  BISHOP 2100
14 CHARLES  PRADA 285

0%
0%
0%
0%
View this question

Which of the following is correct to count the total salary in "deptno" wise where more than two employees exist?

0%
0%
0%
0%
View this question
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

How many records does the following SQL statement return?

SELECT * FROM EXAM_RESULTS WHERE STUDENT_ID <= 12 AND EXAM_SCORE > 85;

Table EXAM_RESULTS

 STUDENT_ID  FIRST_NAME  LAST_NAME  EXAM_ID  EXAM_SCORE 
10 LAURA  LYNCH 190
10 LAURA  LYNCH 285
11 GRACE  BROWN 178
11 GRACE  BROWN 272
12 JAY  JACKSON 195
12 JAY  JACKSON 292
13 WILLIAM  BISHOP 170
13 WILLIAM  BISHOP 2100
14 CHARLES  PRADA 285

0%
0%
0%
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

SELECT __________ FROM instructor WHERE dept_name= 'Comp. Sci.';

Which of the following should be used to find the mean of the salary?

0%
0%
100%
0%
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