TRB - POLY – CS ~ 1 ~ UNIT-5 FUTURE VISION STUDY CENTRE – SALEM CONTACT : 90420 30163 TRB – POLYTECHNIC LECTURER - 2020 SUBJECT / TOPICS: COMPUTER SCIENCE – UNIT - 5 DATABASE CONCEPT - II TIME: 1 HR MARKS: 80 1. Which of the following is not a built in aggregate function in SQL? (A) avg (B) max (C) total (D) count 2. We apply the aggregate function to a group of sets of tuples using the __________ clause (A) group by (B) group (C) group set (D) group attribute 3. The ____________ aggregation operation adds up all the values of the attribute (A) add (B) avg (C) max (D) sum 4. What values does the count(*) function ignore? (A) Repetitive values (B) Null values (C) Character (D) None of these. 5. With SQL, how can you return all the records from a table named “Persons” sorted descending by “FirstName” ? a) SELECT * FROM Persons SORT BY „FirstName‟ DESC b) SELECT * FROM Persons ORDER FirstName DESC c) SELECT * FROM Persons SORT „FirstName‟ DESC d) SELECT * FROM Persons ORDER BY FirstName DESC 6. Which SQL keyword is used to sort the result-set ? (A) ORDER BY (B) SORT (C) ORDER (D) SORT BY FUTURE VISION STUDY CENTRE 2 nd Floor , Avk Maruthi Plaza, Opp: Hotel Lakshmi Prakash, SKS Hospital Road, New Bus Stand, Salem.Contact :90420 30163 WWW.FUTUREVISIONTNPSC.COM
12
Embed
FUTURE VISION STUDY CENTREfuturevisiontnpsc.com/uploads/info_txt/UNIT-5_-_TRB_CS-_DATA_CO… · 21. Which of the following is not included in DML? (A) INSERT (B) UPDATE (C) DELETE
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
TRB - POLY – CS ~ 1 ~ UNIT-5
FUTURE VISION STUDY CENTRE – SALEM CONTACT : 90420 30163
TRB – POLYTECHNIC LECTURER - 2020
SUBJECT / TOPICS: COMPUTER SCIENCE – UNIT - 5
DATABASE CONCEPT - II
TIME: 1 HR MARKS: 80
1. Which of the following is not a built in aggregate function in SQL?
(A) avg (B) max (C) total (D) count
2. We apply the aggregate function to a group of sets of tuples using the __________
clause
(A) group by (B) group (C) group set (D) group attribute
3. The ____________ aggregation operation adds up all the values of the attribute
(A) add (B) avg (C) max (D) sum
4. What values does the count(*) function ignore?
(A) Repetitive values (B) Null values
(C) Character (D) None of these.
5. With SQL, how can you return all the records from a table named “Persons” sorted
descending by “FirstName” ?
a) SELECT * FROM Persons SORT BY „FirstName‟ DESC
b) SELECT * FROM Persons ORDER FirstName DESC
c) SELECT * FROM Persons SORT „FirstName‟ DESC
d) SELECT * FROM Persons ORDER BY FirstName DESC
6. Which SQL keyword is used to sort the result-set ?
(A) ORDER BY (B) SORT (C) ORDER (D) SORT BY
FUTURE VISION STUDY CENTRE 2
ndFloor , Avk Maruthi Plaza, Opp: Hotel Lakshmi Prakash,
SKS Hospital Road, New Bus Stand, Salem.Contact :90420 30163
WWW.FUTUREVISIONTNPSC.COM
TRB - POLY – CS ~ 2 ~ UNIT-5
FUTURE VISION STUDY CENTRE – SALEM CONTACT : 90420 30163
7. Which of the following command makes the updates performed by the transaction
permanent in the database?
(A) ROLLBACK (B) COMMIT (C) TRUNCATE (D) DELETE
8. The command to remove rows from a table „CUSTOMER‟ is
a) DROP FROM CUSTOMER b) UPDATE FROM CUSTOMER
c) REMOVE FROM CUSTOMER d) DELETE FROM CUSTOMER WHERE
9. Aggregate functions are functions that take a ____ as input and return a single value.
a) Collection of values b) Single value
c) Double value d) All of the mentioned
10. If we do want to eliminate duplicates, we use the keyword __________in the
aggregate expression.
(A) Distinct (B) Count (C) Avg (D) Primary key
11. Which of the following is not a aggregate function?
(A) Avg (B) Sum (C) With (D) Min
12. Match the following:
(A) ALTER - (i) ER Model
(B) Delete - (ii) Relationship model
(C) Diamond - (jii) Data Definition Language.
(D) Record - (iv) Data Manipulation Language.
(a) (iii) (iv) (i) (ii) (b) (iii) (iv) (ii) (i)
(c) (iv) (iii) (i) (ii) (d) (iv) (iii) (ii) (i)
13. A relation scheme is said to be in ___________ form if the values in the domain of
each attribute of the relation are atomic.
(A) Unnormalized (B) First Normal (C) Boyce codd (D) None.
14. Match the following:
(A) UPDATE - (i) DDL
(B) REVOKE - (ii) TCL
(C) DROP - (jii) DML
(D) ROLLBACK - (iv) DCL
(a) (iii) (iv) (ii) (i) (b) (iii) (iv) (i) (ii)
(c) (iii) (ii) (i) (iv) (d) (iv) (iii) (ii) (i)
15. An Un normalized relation contains values _____________