Quiz
practice finals
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (15)
1
1. SELECT cus_areacode, SUM(*)
2. FROM CUSTOMER
3. GROUP BY cus_areacode;
The above statement has:- Ano error
- Berror in line 1
- Cerror in line 2
- Derror in line 3
21. SELECT P_PRICE
2. FROM PRODUCT
3. WHERE P_PRICE > AVG(P_PRICE);
The above statement has:- Ano error
- Berror in line 1
- Cerror in line 2
- Derror in line 3
3SELECT cus_lname, cus_fname
FROM customer
GROUP BY cus_lname;
Does the above statement have syntax error?- Ayes, it has an error
- Bno, it has no error
4SELECT CUS_CODE, CUS_LNAME
FROM customer
WHERE CUS_FNAME IS NOT NULL;
Does the above statement have syntax error?- Ayes
- Bno
- Cinformation provided is not sufficient for this question.
5The p_qoh column in PRODUCT table contains quantity on hand. If you want to know how many units of all products combined are on hand, which of the following SQL statements should you use?
- ASELECT SUM (p_qoh) FROM PRODUCT;
- BSELECT COUNT (p_qoh) FROM PRODUCT:
- CSELECT SUM (COUNT(p_qoh)) FROM PRODUCT;
- DNone of the above
6Suppose you want to display products whose price is more than $10 but less than or equal to $20. Which of the following WHERE clauses is the correct clause for this purpose?
- AWHERE p_price > 10 and < 20;
- BWHERE p_price >= 10 and p_price <= 20;
- CWHERE p_price between 10 and 20;
- DNone of the above
7If you want to display customers whose last name if Lee, which of the following WHERE clauses is the correct clause for this purpose?
- AWHERE cus_lname like ‘%Lee;
- BWHERE cus_lname like ‘Lee%’;
- CWHERE cus_lname like ‘Lee’;
8Suppose you want to display AVG customer balance by area code and write the following SQL statement to do that. Does this statement contain any errors, and if so, what’s the error?
SELECT cus_areacode, avg(cus_balance)
FROM customer
ORDER by cus_areacode;- AIt has no error
- BIt has an error; the cus_areacode column must be qualified
- CIt has an error; the order by clause must not be included
- DIt has an error; a group by clause must be included
9If you want to display customers whose last name is not Lee.
Which of the following where clauses is the correct clause for this purpose?- AWHERE cus_lname > ‘Lee’;
- BWHERE cus_lname < > ‘Lee’;
- CWHERE cus_lname NOT LIKE ‘Lee’;
- DNone of the above
10Suppose you want to display customers codes are 123 and 456. Which of the following WHERE clauses is the correct clause for this purpose?
- AWHERE cus_code = 123 or 456;
- BWHERE cus_code = 123 and 456;
- CWHERE cus_code = 123 and cus_code = 456;
- DNone of the above
11Metrics of measures that are used to access a company’s effectiveness or success in reaching its goals (e.g. increase in customer satisfaction) are called:
- AMaster data
- BEffectiveness metrics
- CKey performance indicators
12A data warehouses typically contains data to:
- ASupport day to day operations of the company
- BSupport business decisions
- CBoth a and b above.
13The following type of data of lock is for transactions that modify data
- AExclusive
- BShared
- CLocal
- DGlobal
14Can a deadlock occur when 2 transactions have shared lock on a data item, can they be deadlocked?
- AYes
- BNo
15You need to develop a star schema so questions in the following can be answered:
What was the total amount of sales by month in Asia for Toyota Corolla?
What of the following would not be a dimension in star schema?- ATime
- BGeography
- CTotal amount of sales
- DAll of the above
Informationen
- Beschreibung
- Quiz am practice finals, erstellt von gerald david am 23/05/2017.
- Autor
- gerald david
- Sprache
- English
- Aufrufe
- 0
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz