PL/SQL LANGUAGE MULITPLE CHOICE QUESTION SET-1

Slides:



Advertisements
Similar presentations
Data Definition and Integrity Constraints
Advertisements

Database Systems: Design, Implementation, and Management Tenth Edition
Copyright © by Royal Institute of Information Technology Introduction To Structured Query Language (SQL) 1.
Structure Query Language (SQL) COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI.
Introduction to Structured Query Language (SQL)
Fundamentals, Design, and Implementation, 9/e COS 346 Day 11.
Introduction to Structured Query Language (SQL)
Fundamentals, Design, and Implementation, 9/e Chapter 6 Introduction to Structured Query Language (SQL)
Structured Query Language Part I Chapter Three CIS 218.
Structured Query Language Chapter Three (Excerpts) DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Introduction to Structured Query Language (SQL)
Structured Query Language Chapter Three DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 7 Introduction to Structured Query Language (SQL)
DATABASES AND SQL. Introduction Relation: Relation means table(data is arranged in rows and columns) Domain : A domain is a pool of values appearing in.
Introduction to SQL J.-S. Chou Assistant Professor.
Structured Query Language Chapter Three DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Structured Query Language Chapter Three DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
Database Technical Session By: Prof. Adarsh Patel.
CHAPTER:14 Simple Queries in SQL Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Fundamentals, Design, and Implementation, 9/e CPE 481 Database Processing Chapter 6 Structured Query Language (SQL) Instructor:Suthep Madarasmi, Ph.D.
SQL: Data Manipulation Presented by Mary Choi For CS157B Dr. Sin Min Lee.
SQL SQL Server : Overview SQL : Overview Types of SQL Database : Creation Tables : Creation & Manipulation Data : Creation & Manipulation Data : Retrieving.
DATABASE TRANSACTION. Transaction It is a logical unit of work that must succeed or fail in its entirety. A transaction is an atomic operation which may.
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Nitin Singh/AAO RTI ALLAHABAD 1 SQL Nitin Singh/AAO RTI ALLAHABAD 2 OBJECTIVES §What is SQL? §Types of SQL commands and their function §Query §Index.
Database Processing: Fundamentals, Design, and Implementation, 9/e by David M. KroenkeChapter 6/1 Copyright © 2004 Please……. No Food Or Drink in the class.
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 7 Introduction to Structured.
Topic 1: Introduction to SQL. SQL stands for Structured Query Language. SQL is a standard computer language for accessing and manipulating databases SQL.
BACS 287 Structured Query Language 1. BACS 287 Visual Basic Table Access Visual Basic provides 2 mechanisms to access data in tables: – Record-at-a-time.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
SQL SeQueL -Structured Query Language SQL SQL better support for Algebraic operations SQL Post-Relational row and column types,
Database Lab Lecture 1. Database Languages Data definition language ( DDL ) Data definition language –defines data types and the relationships among them.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
1 SQL SQL (Structured Query Language) : is a database language that is used to create, modify and update database design and data. Good Example of DBMS’s.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 (Part II) INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor.
Concepts of Database Management Seventh Edition Chapter 3 The Relational Model 2: SQL.
SQL Overview Structured Query Language
© 2002 by Prentice Hall 1 Structured Query Language David M. Kroenke Database Concepts 1e Chapter 3 3.
7 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel 7.6 Advanced Select Queries SQL provides useful functions that.
SQL: Structured Query Language It enables to create and operate on relational databases, which are sets of related information stored in tables. It is.
LM 5 Introduction to SQL MISM 4135 Instructor: Dr. Lei Li.
Concepts of Database Management, Fifth Edition Chapter 3: The Relational Model 2: SQL.
SQL SQL Ayshah I. Almugahwi Maryam J. Alkhalifa
More SQL: Complex Queries, Triggers, Views, and Schema Modification
SQL Query Getting to the data ……..
CH 9 SQL 9.1 Querying A Single Table 9.2 Querying Multiple Tables
SQL Implementation & Administration
ATS Application Programming: Java Programming
CS580 Advanced Database Topics
Quiz Questions Q.1 An entity set that does not have sufficient attributes to form a primary key is a (A) strong entity set. (B) weak entity set. (C) simple.
DATABASE MANAGEMENT SYSTEM
Chapter # 7 Introduction to Structured Query Language (SQL) Part II.
Chapter 4 Indexes.
CH 4 Indexes.
Chapter 2 Views.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall
Database systems Lecture 3 – SQL + CRUD
Access: SQL Participation Project
Chapter 7 Introduction to Structured Query Language (SQL)
Structured Query Language
CH 4 Indexes.
Chapter 2 Views.
Reporting Aggregated Data Using the Group Functions
Contents Preface I Introduction Lesson Objectives I-2
Relational Database Design
IST 318 Database Administration
Reporting Aggregated Data Using the Group Functions
Reporting Aggregated Data Using the Group Functions
Shelly Cashman: Microsoft Access 2016
Presentation transcript:

PL/SQL LANGUAGE MULITPLE CHOICE QUESTION SET-1

Non- procedural language 1. SQL is: Procedural language Non- procedural language Not a data sublanguage None www.prolearninghub.com

2. To form a projection with SQL: Name of relation to be projected and the list of column to be shown The keywords SELECT and FROM are optional. The table to be used is listed before the keyword FROM The column to be obtained are listed before the keyword FROM None of these www.prolearninghub.com

3. To remove duplicate rows this qualifier must be specified: ONLY UNIQUE DISTINCT SINGLE www.prolearninghub.com

4. Which SQL keyword is used to name a new table and describe the table column? Set Create Alter Modify www.prolearninghub.com

5. Which SQL keyword is used to change the structure, properties, and constraints of the column? Set Create Alter Modify www.prolearninghub.com

6. If a table PRODUCT has a column PRICE with datatype Numebric (8,2), it store value as : 8 digits, decimal point and 2 more digits 6 digits decimals point and 2 more digits 10 digits with no stored decimal points 8 digits with no stored decimal points www.prolearninghub.com

7. If a table product has a column price that has the data type numeric (8,2), the value 12345 will be displayed by the DBMS as: 123.45 12345 12345.00 123450.00 www.prolearninghub.com

8. Which SQL keyword is used to delete a table structure? Drop Update Alter www.prolearninghub.com

9. When the correct SQL command is used to delete a table’s structure what happens to the data of the table? If deleted table is parent table the data is referred to child table If deleted table is child table the data is added to parent table The data in table is also deleted Nothing because there is no data in the table www.prolearninghub.com

10. In an SQL query which keyword is to be used to specify the table’s to be used? EXISTS From Update Set www.prolearninghub.com

11. The asterisk means that? All column All records All records with partial criteria meta re obtained None www.prolearninghub.com

12. Which SQL keyword is used to state the condition to specify the row to be selected? EXISTS Where From Select www.prolearninghub.com

13. In an SQL query, which SQL keyword is used to join two conditions that both must be true for the rows to be selected? EXISTS AND IN OR www.prolearninghub.com

14. In a SQL query which SQL keyword is used to determine if a column value is equal to any one of set of values? EXIST AND IN OR www.prolearninghub.com

15. In an SQL query which built in function is used to compute the no of rows in a table ? AVG MAX MIN COUNT www.prolearninghub.com

16. In an SQL query which built in function is used to total numeric columns? AVG SUM MIN COUNT www.prolearninghub.com

17. In SQL which built in function is used to compare the average value of numeric column? AVG MEAN MEAN COUNT www.prolearninghub.com

18. In an SQL which built in function is used to obtained largest value numeric columns? AVG MAX MIN COUNT www.prolearninghub.com

19. In SQL which built in function used to obtain the smallest value of numeric columns? AVG MIN LOWEST COUNT www.prolearninghub.com

20. In an SQL query which SQL keyword is used with built-in functions to group rows that have the same value in a specified column together? Group by Order by Select Sort by www.prolearninghub.com

21. Which SQL keyword is used with group by to selects group meeting specified criteria? AND EXIST HAVING IN www.prolearninghub.com

22. Given a table with structure: emp (empno, name, salary, hiredate), which of the following is not a valid ANSI SQL command: SELECT * FROM EMPLYEE WHERE NAME LIKE JA% SELECT COUNT (*) FROM EMPLOYEE WHERE SALARY >30000 SELECT COUNT (EMPNO) FROM EMP SELECT HIREDATE,COUNT (*) FROM EMP WHERE SALARY >30000 www.prolearninghub.com

23. In an SQL query which SQL keyword is used to implement a sub query? Group by Having Order by Select www.prolearninghub.com

24. When one SQL query is embedded in where clause of another SQL query, it is called? Subset Joins Where query sub query www.prolearninghub.com

25. In an SQL query which SQL keyword is used to specified the name of table to be joined From Having Join Select www.prolearninghub.com

26. In SQL which SQL keyword is used to specify the condition (s) for a join operation? From Having Where Select www.prolearninghub.com

27. Regarding the interchangeability sub quires and joins: Join can always be used as an alternating to a subquery, and a subquery can always be used as an alternative to a join A join can sometime be used as an alternative to a subquery and a subquery be sometime as an alternative to a join A join can always be used as an alternative to a subquery, and a subquery can sometimes be used as an alternative to a join. A join can sometimes be used as an alternative to a subquries and subquery can always be used as an alternative to a join. www.prolearninghub.com

28. Which SQL keyword is used to add one or more rows in a table? MODIFY INSERT SELECT NONE www.prolearninghub.com

29. Which SQL keyword is used to change one or more rows in a table? MODIFY INSERT SELECT UPDATE www.prolearninghub.com

30. Which SQL statement is used to change a column value? INSERT SELECT SET www.prolearninghub.com

31. Which keyword is used to remove one or more rows in a table? CHANGE DELETE SET ERASE www.prolearninghub.com

32. WHERE clause cannot be referred to ranges and partial values when ? The keyword LIKE is used Keyword BETWEEN is used Keyword NULL is used Keyword ALSO is used www.prolearninghub.com

33. Which of the following are the five built-in functions provided by SQL? COUNT, SUM, AVG,MIN, MAX SUM, AVG, MIN, MAX, MULT SU, AVG, MIN, MAX, DIV SUM, AVG, MIN, MAX, NAME www.prolearninghub.com

34. The SQL keyword GROPU BY instructs the DBMS: To group the rows together To group together those rows that have same value of the column Both A and B Neither A and B www.prolearninghub.com

35. A sub query must be In bold In capital latter In parentheses In italics www.prolearninghub.com

36. Which is true about a join: A join is a combination of WHERE and SELECT clause A join is the combination of product operation, followed by a selection, followed by a projection A join is a product of SELECT FROM WHERE clause. A join can be used for two tables www.prolearninghub.com

37. Which is true of a join? A join can be used for a alternative way of expressing many subquries A join expression can be substituted for all subquries expression A join expression can be substituted for EXISTS and NON-EXISTS Subquries can be substituted for all joins www.prolearninghub.com

38. An outer join: Is not supported by ANSI standard SQL. Is supported by many DBMS products Both A and B Neither A nor B www.prolearninghub.com

39. EXISTS and NON-EXISTS: Are logical operators Only works with one or two tables Can return values None of above www.prolearninghub.com

40. When using INSERT: Rows can be modified according to criteria Rows cannot be copied in mass from one table to another Rows can be copied in mass from one table to another Rows can be inserted into a table www.prolearninghub.com

41. When using DELETE: Rows can be delete one at a time or groups It will not cause integrity problem Rows can be deleted one at a time Order of operation is not required www.prolearninghub.com

42. Which is not true about modifying data? Rows can be modified one at a time or in groups The keyword set is used to change a column value After SET, the name of the column to be changed or then the new value or way of computing new value is specified Mass update are fast, easy and cause less problems www.prolearninghub.com

SELECT with GROUP BY and HAVING 43. Which of the following is not an SQL statement used on a single table? SELECT with WHERE SELECT with GROUP BY SELECT with GROUP BY and HAVING SELECTION www.prolearninghub.com

SELECT with GROUP by and HAVING 44. Which of the following is not an operation used on two or more tables? Subquries Joins EXISTS SELECT with GROUP by and HAVING www.prolearninghub.com

45. SQL command can be classified into three types which is not an SQL command type? DDL DML DGL DCL www.prolearninghub.com

46. Three SQL, DDL, CREATE commands are Schema, base and table Base, table and schema Key, base and table Schema, table and view www.prolearninghub.com

47. Which is not an advantage of view? Simplify query commands Provide data security Enhance programming productivity Decrease system overhead www.prolearninghub.com

48. Which keyword is not included in most data retrieval statement? Select As From Where www.prolearninghub.com

49. Which of the following is true about data types in PL/SQL? Large Object or LOB data types are pointers to large objects The composite data types have data items that have internal components References are pointers to other data items. All of the above. www.prolearninghub.com

What value will be assigned to the variable declared as below − Counter binary integer; 1 NULL None of above www.prolearninghub.com