RDBMS Topic 4 Adv. SQL, MSBTE Questions and Answers ( 12 Marks)
|
|
- Marjorie Allison
- 6 years ago
- Views:
Transcription
1 2017 RDBMS Topic 4 Adv. SQL, MSBTE Questions and Answers ( 12 Marks)
2 2016 Q. What is view? Definition of view: 2 marks) Ans : View: A view is a logical extract of a physical relation i.e. it is derived from any base relation. OR View: Views are virtual relations mainly used for security purpose, and can be provided on request by a particular user. Q. Consider following schema. ( 4 Marks) Employee (empname, empid, dob, salary, job) Create a view on employee having attribute (empname, empid, dob, salary, job) where salary is greater than 20,000. Ans: Create view EMPVIEW as select empname, empid, dob, salary, job from employee where salary>20000; OR CREATE VIEW EMPVIEW AS SELECT * FROM EMPLOYEE WHERE SALARY >20000; Q. What are views? Give its syntax and explain its advantages. (Views - 2 marks; Syntax - 1 mark; Advantages (Any two) - 1 mark)
3 Views are created for security reasons. Instead of coping same table multiple times for different requirements, views can be created. View is a logical copy of physical table. It doesn t exist physically. With the help of view, we can give restricted access to users. When view is used, underlying table is invisible, thus increasing security. Views can be used to see, insert, update and delete data from base table. Syntax for creating view:- Create [OR Replace][Force /Noforce] view <viewname>[alias name.] As subquery [with CHECK OPTION[CONSTRAINT]] [with READ ONLY]; Advantages of Views: Views restrict access to the data because the view can display selective columns from the table. Views can be used to make simple queries to retrieve the results of complicated queries. For example, views can be used to query information from multiple tables without the user knowing how to write a join statement. Views provide data independence for adhoc users and application programs. One view can be used to retrieve data from several tables. Views provide groups of users to access to data according to their particular criteria. Thus implements security and authorization Explain views with example. (Explanation of view with syntax 3 Marks, Example - 1 Mark)
4 Views are created for security reasons. Instead of coping same table multiple times for different requirements, views can be created. View is a logical copy of physical table. It doesn t exist physically. With the help of view, we can give restricted access to users. When view is used,underlying table is invisible, thus increasing security. Views can be used to see, insert, update and delete data from base table. Syntax for creating view:- Create [OR Replace][Force /Noforce] view <viewname>[alias name.] As subquery [with CHECK OPTION[CONSTRAINT]] [with READ ONLY]; Example : Create view emp_info as select Emp_no, Emp_name from Employee where salary>12000; To describe content of view Select * from emp_info; To describe structure of view describe emp_info; Q. How to create view? (Syntax OR Example of view - 2 Marks) Ans: Syntax for creating view. Create view <viewname> as select <query>; OR Example : Create viewemp_info as select Emp_no, Emp_name from Employee;
5 2014 Q. Write the syntax for creating a view. (Syntax- 2 Marks) Ans: Syntax for creating view. Create view <viewname> as select <query> 2016 Q. What are sequence? Why it is used? Create sequence for STUDENT table. (Definition - 1 mark; Use - 1 mark; creating valid sequence example/pattern - 2 marks) Ans: Definition: A sequence refers to a database object that is capable of generating unique and sequential integer values. Use: 1. It saves a time by reducing application code. 2. It is used to generate unique sequential integers. 3. It is used to create an auto number fields. 4. Sequence can be use for many tables/relations Sequence for student table: Create sequence student_seq increment by 1 start with 1 maxvalue 60 nocycle; 2015 Q Explain sequences with example. (Definition of sequence - 1 Mark, syntax 2 Marks, Example - 1 Mark) Ans: Definition A sequence refers to a database object that is capable of generating unique and sequential integer values.
6 Syntax: Create sequence <seq_name> [increment by num] [start with num] [maxvalue num] [minvaluenum][cycle/nocycle][cache num/nocache]; Where, Increment by num: Used to specify the interval between sequence numbers. Start with num: States the first sequence numbers that needs to be generated. Minvalue num: This is used to state the minimum value of the sequence. Maxvalue num :It states the maximum value generated by sequence. Cycle: Cycle indicates that the sequence will be continued for generating the values from thestarting after reaching either its maximum value or minimum value. Cache: The cache option is used to pre-allocates a set of sequence numbers and keep these numbers in the memory so that they can be accessed. No Cache: This states that there is no pre-allocation for the values of sequence. Example: Create sequence student_seq increment by 1 start with 1 maxvalue 60 nocycle; Q. What is sequence? What are the various operations with respect to sequences? (Sequence explanation 2 Marks, any two operations 2 Marks) Ans: Sequence : exists a column which can uniquely identify the record from a table. For that purpose, that column has to be a primary key which can never contain duplicate or null value.
7 minimized by creating sequence for automatic entry of certain values which are in sequence. be inserted into a table. The value generated can have maximum of 38 digits. numeric values. Operations allowed on sequence: 1) Create a sequence : Create sequence < sequence name > [incremented by <integer value> start with <integer value>maxvalue<integer value>/nomaxvalue minvalue<integer value>/nominvalue cycle/ nocycle] cache<integer value>/nocache order/noorder INCREMENT BY:Specifies the interval between sequence number. It can be any positive or negative value but not zero. If this clause is omitted the default value is 1. MINIVALUE: Specifies the sequence minimum value. NOMINVALUE: Specifies the maximum value of 1 for an ascending sequence and (10)^26 for a descending sequence. MAXVALUE: Specifies the maximum value that a sequence can generate.
8 NOMAXVALUE: Specifies a maximum of 10^27 for an ascending sequence or -1 for a descending sequence is the sequence minimum value(1) and for a descending sequence, it is the maximum value(-1). CYCLE: Specifies that the sequence continues to generate repeat values after reaching either its maximum. NOCYCLE: Specifies that a sequence cannot generate more values after reaching the maximum value. Example Create sequence addr_sqe increment by 1 start with 1 minivalue 1 maxvalue 999 cycle; 2) Referncing a sequence Once a sequence is created SQL can be used to view the values held in its cache. To simply view sequence value use a SELECT sentence as describe below. SELECT<SequenceName>.NextVal FROM DUAL; Every time nextval reference a sequence its output is automatically increment from the old values to the values to the new value ready for use. INSERT INTO ADDR_DTLS(ADDR_NO,CODE_NO,ADDR_TYPE,ADDR1,ADDR2,CITY,STATE,PINCODE)VALUES(ADDR_SEQ.NextVal, B5, B, Vertex Plaza,Shop 4,, Western Express Highway,Dahisar(East),, Mumbai, ); To reference the current value of a sequence: SELECT<SequenceName>.CURRVAL FROM DUAL; 3) Altering a sequence A sequence once created can be altered. This is achieved by using the ALTER SEQUENCE statement.
9 SYNTAX: ALTER SEQUENCE<SequenceName> [Increment by <IntegerValue> Maximum<IntegerValue>/NOMAXVALUE MINVALUE<IntegerValue>/NOMINVALUE CYCLE/NOCYCLE CACHE<IntegerValue>/NOCACHE ORDER/NOORDER] Change the cache value of the sequence ADDR_SEQ to 30 and interval between two numbers as 2. Example - ALTER SEQUENCEADDR_SEQ INCREMENT BY 2 CACHE 30; 4) Dropping a Sequence The DROP SEQUENCE command is used to remove the sequence from database. Syntax: DROP SEQUENCE<SequenceName>; 2014 What are sequences? Write syntax for creating sequence. (Explanation -2 Marks, Syntax-2 Marks) Ans: Sequence: It is database object that generate/produce integer values in sequential order. It automatically generates primary key and unique key values. It may be ascending or descending order. It can be used for multiple tables. Sequence numbers are stored and generated independently of tables. Syntax: Create sequence <seq_name> Start with [initial value]
10 Increment by [value] Minvalue [minimum value] Maxvalue [maximum value] [cycle/nocycle] [{cache value / No cache}] [{order / No order}]; 2017 Q. Define index. ( 2 Marks) Ans: Index: An index is a schema object that can speed up the retrieval of rows by using pointer. An Index provides direct and fast access to rows in a table. Q. Describe unique index and composite index with example.(4 marks) Ans: Unique Index: Unique indexes are used not only for performance, but also for data integrity. An unique index does not allow any duplicate values to be inserted into the table. The basic syntax is as follows: CREATE UNIQUE INDEX index_name on table_name (column_name); Example: CREATE UNIQUE INDEX ename_idx on emp (ename); Composite Index: A composite index is an index created on two or more columns of a table. The basic syntax is as follows: CREATE INDEX index_name on table_name (column1, column2);
11 Example: CREATE INDEX en_idx on emp (ename,job); 2016 Q. What is index? Explain types of index. (Index Definition - 2 marks; Any Two Types - 1 mark each) Ans: Index: An index is a schema object that can speed up the retrieval of rows by using pointer. An index provides direct and fast access to rows in a table. Indexes are created explicitly Or automatically. Indexes are used to speed up searches/queries. Types of Index: Simple index (Single column): An index created on single column of a table is called a Simple Index. Unique indexes are used not only for performance, but also for data integrity. A unique index does not allow any duplicate values to be inserted into the table. Composite (concatenated): Indexes that contain two or more columns from the same table which are useful for enforcing uniqueness in a table column where there s no single column that can uniquely identify a row. Q. Explain the following terms with syntax and example: ( 4Marks) a) Simple Index b) Composite Index c) Unique Index. a) Simple Index: A simple index is one that is created based on only one column of a table.
12 The basic syntax is as follows: CREATE INDEX index_name ON table_name (column_name); Example: CREATE INDEX ename_idx on emp (ename); b) Composite Index: A composite index is an index created on two or more columns of a table. The basic syntax is as follows: CREATE INDEX index_name on table_name (column1, column2); Example: CREATE INDEX en_idx on emp (ename,job); c) Unique Indexes: Unique indexes are used not only for performance, but also for data integrity. A unique index does not allow any duplicate values to be inserted into the table. The basic syntax is as follows: CREATE UNIQUE INDEX index_name on table_name (column_name); Example: CREATE UNIQUE INDEX ename_idx on emp (ename); 2015 Q. Explain the concept of indexing with neat diagram. (Explanation - 3 Marks, Any relevant Diagram - 1 Mark)
13 Ans: Index: An index is a schema object that can speed up the retrieval of rows by using pointer. An index provides direct and fast access to rows in a table. Indexes are created explicitly Or automatically. Indexes are used to speed up searches/queries. Types of Index: Simple index(single column): An index created on single column of a table is called a Simple Index. Unique indexes are used not only for performance, but also for data integrity. A unique index does not allow any duplicate values to be inserted into the table. Composite (concatenated): Indexes that contain two or more columns from the same table which are useful for enforcing uniqueness in a table column where there s no single column that can uniquely identify a row. Q Explain with example simple and composite index. (Simple Index Explanation & Example-2 Marks, Composite Index Explanation &Example- 2 Marks)
14 Ans: Simple index: An index created on single column of a table is called a Simple Index. Syntax: Create index on <tablename><column name>; E.g.: Create index idx on employee (empno); Composite Index:An Index that contain two or more columns from the same table is called as Composite Index. Syntax: Create index on <tablename><column name1, Column name 2>; E.g.: Create index idx on employee (ename, empno); 2014 Q. Describe following terms: i) unique indexes ii) composite indexes. (Each index 2 Marks) i) Unique indexes are used not only for performance, but also for data integrity. A unique index does not allow any duplicate values to be inserted into the table. The basic syntax is as follows: Create unique index index_name on table_name(column_name); The example is as follows: Create unique index index_empno on emp(empno); ii) Composite index is an index on two or more columns of a table. To create a composite index, take into consideration the columns that you may use very frequently in a query's WHERE clause as filter conditions. If there are two or more columns that are frequently used in the WHERE clause as filters, the composite index would be the best choice.
15 The basic syntax is as follows: Create index index_name on table_name(column1,column2); The example is as follows: Create index index_empdept on emp(empno,deptno); 2017 Q. Explain snapshot with example. (4 Marks) Snapshot: It is also known as materialized view. It is a copy of either an entire single table or set of its rows or collection of tables, views or rows using join, grouping and selection criteria. Useful in distributed environment It has two types: Simple snapshot and complex snapshot. Simple snapshot related to single table and complex snapshot related to joined tables. Example : Operations on snapshot: i) Creating Snapshot: Create snapshot command is used to create the snapshot. Syntax:- CREATE SNAPSHOT [schema.] <snapshot name>as subquery; Example:- Create snapshot emp_snapas select * from emp where deptno=6; ii) Altering snapshot: Snapshot can be altered by using ALTER SNAPSHOT command.
16 The only parts ofa snapshot that can be altered are its storage parameters, refresh type and refresh start,and next interval. The select for the snapshot, base tables, and other data related items cannot be changed without dropping and recreating the snapshot. Syntax:- ALTER SNAPSHOT <snapshotname> [[PCTFREE <integer>] [PCTUSED <integer>] [REFRESH [FAST/COMPLETE/FORCE]]; Example:- To change the automatic refresh mode for the emp_data snapshot to fast: ALTER SNAPSHOT emp_data REFRESH FAST; iii) Dropping a snapshot To remove the snapshot DROP SNAPSHOT Command.When snapshot is dropped which a snapshot log had associated with it, only the rows required for maintainingthat snapshot are dropped. Syntax:- Drop snapshot <snapshot name>; Example:- Drop snapshot emp_snap; 2016 What are snapshots? Give its uses. How to create a snapshot? (Definition - 1 mark; any one Use - 1 mark, Syntax/Example - 2 marks) Ans: Snapshots:
17 It is also known as materialized view. It is a copy of either an entire single table or set of its rows or collection of tables, Views or either rows using join, grouping and selection criteria. Uses: Useful in distributed environment. Response time of the queries gets minimized as the client has made a local copy of master table. If the master table gets corrupted, then data can be restored using snapshot. Creating Snapshots: Create snapshot command is used to create the snapshot. Syntax: Create snapshot snapshot_name refresh with rowid as <select query>; Example: Create snapshot emp_snap refresh with rowid as select * from emp; Q. Explain the following terms with syntax and example. (4 Marks) i) Creating snapshot ii) Altering snapshot iii) Dropping a snapshot. i) Creating Snapshot: Create snapshot command is used to create the snapshot. Syntax:- CREATE SNAPSHOT [schema.] <snapshot name> AS subquery;
18 Example:- Create snapshot emp_snap as select * from emp where deptno=6; ii) Altering snapshot Snapshot can be altered by using ALTER SNAPSHOT command. The only parts of a snapshot that can be altered are its storage parameters, refresh type and refresh start, and next interval. The select for the snapshot, base tables, and other data related items cannot be changed without dropping and recreating the snapshot. Syntax:- ALTER SNAPSHOT <snapshotname> [[PCTFREE <integer>] [PCTUSED <integer>] [REFRESH [FAST/COMPLETE/FORCE]]; Example:- To change the automatic refresh mode for the emp_data snapshot to fast: ALTERSNAPSHOT emp_data REFRESH FAST; iii) Dropping a snapshot To remove the snapshot DROP SNAPSHOT Command.When snapshot is dropped which a snapshot log had associated with it, only the rows required for maintaining that snapshot are dropped. Syntax:- Drop snapshot <snapshot name>; Example:- Drop snapshot emp_snap;
19 2015 Explain snapshot with example. (Explanation of snapshot 3 Marks, example 1 Mark) Ans: Snapshot: It is also known as materialized view. It is a copy of either an entire single table or set of its rows or collection of tables, views or rows using join, grouping and selection criteria. Useful in distributed environment It has two types: Simple snapshot and complex snapshot. Simple snapshot related to single table and complex snapshot related to joined tables. Example: Snapshot for emp table: Create snapshot emp_data refresh with rowid as select * from emp; Q. Write a PL/SQL program to create any snapshot. (Creation of snapshot 2 Marks, PL/SQL code 2Marks) [Note: Any other relevant example of PL/SQL code can be considered] Ans: 1) To create a snapshot : Create snapshot emp_snap refresh with rowid as select * from emp; 2) To use snapshot from PL/SQL : declare cnt as number(2):=0; begin
20 Select count(*) into cnt from emp_snap; dbms_output.put_line ( Number of rows from snapshot : cnt); end; 2014 Q. What is snapshot? Write the syntax for creating a snapshot. (Explanation- 2 Marks, Syntax- 2 Marks) Ans: Snapshot: It is also known as materialized view. It is a copy of either an entire single table or set of its rows or collection of tables, Views or either rows using join, grouping and selection criteria. Useful in distributed environment It has two types: Simple snapshot and complex snapshot. Simple snapshot related to single table and complex snapshot related to joined tables. Syntax: Create snapshot snapshot_name Pctfree n Pctused n Tablespace tablespace_name Storage clause Refresh Star with date As select statement; OR Create snapshot snapshot_name As select statement; 2014 Q What are synonyms? Write a syntax for creating a synonym. (Synonym definition -2 Marks, Correct syntax -2 Marks)
21 Ans: A synonym is an alternative name for objects such as tables, views, sequences, stored procedures, and other database objects. You generally use synonyms when you are granting access to an object from another schema and you don't want the users to have to worry about knowing which schema owns the object. Syntax: CREATE [OR REPLACE] [PUBLIC] SYNONYM [schema.] synonym_name FOR [schema.] object_name; OR create synonym synonym_name for object_name; DROP SYNONYM Once a synonym has been created in Oracle, you might at some point need to drop the synonym. Syntax The syntax to drop a synonym in Oracle is: DROP [PUBLIC] SYNONYM [schema.] synonym_name [force]; PUBLIC Allows you to drop a public synonym. If you have specified PUBLIC, then you don't specify a schema. force It will force Oracle to drop the synonym even if it has dependencies. It is probably not a good idea to use force as it can cause invalidation of Oracle objects. Example Let's look at an example of how to drop a synonym in Oracle. For example:
22 DROP PUBLIC SYNONYM suppliers; This DROP statement would drop the synonym called suppliers that we defined earlier.
CHAPTER: 4 ADVANCE SQL: SQL PERFORMANCE TUNING (12 Marks)
(12 Marks) 4.1 VIEW View: Views are virtual relations mainly used for security purpose, and can be provided on request by a particular user. A view can contain all rows of a table or select rows from a
More informationAdvance SQL: SQL Performance Tuning. SQL Views
Advance SQL: SQL Performance Tuning SQL Views A view is nothing more than a SQL statement that is stored in the database with an associated name. A view is actually a composition of a table in the form
More informationMAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER 15 EXAMINATION Model Answer
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in themodel answer scheme. 2) The model answer and the answer written by candidate may
More informationMAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate
More informationCS6312 DATABASE MANAGEMENT SYSTEMS LABORATORY L T P C
CS6312 DATABASE MANAGEMENT SYSTEMS LABORATORY L T P C 0 0 3 2 LIST OF EXPERIMENTS: 1. Creation of a database and writing SQL queries to retrieve information from the database. 2. Performing Insertion,
More informationMAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate
More informationCreating Other Schema Objects. Copyright 2004, Oracle. All rights reserved.
Creating Other Schema Objects Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Create simple and complex views Retrieve data
More informationORACLE VIEWS ORACLE VIEWS. Techgoeasy.com
ORACLE VIEWS ORACLE VIEWS Techgoeasy.com 1 Oracle VIEWS WHAT IS ORACLE VIEWS? -A view is a representation of data from one or more tables or views. -A view is a named and validated SQL query which is stored
More informationOracle Class VII More on Exception Sequence Triggers RowID & Rownum Views
Oracle Class VII More on Exception Sequence Triggers RowID & Rownum Views Sequence An Oracle sequence is an Oracle database object that can be used to generate unique numbers. You can use sequences to
More informationUnit 1 - Advanced SQL
Unit 1 - Advanced SQL This chapter describes three important aspects of the relational database management system Transactional Control, Data Control and Locks (Concurrent Access). Transactional Control
More informationMAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in themodel answer scheme. 2) The model answer and the answer written by candidate may
More informationCreating and Managing Tables Schedule: Timing Topic
9 Creating and Managing Tables Schedule: Timing Topic 30 minutes Lecture 20 minutes Practice 50 minutes Total Objectives After completing this lesson, you should be able to do the following: Describe the
More informationSample Question Paper
Sample Question Paper Marks : 70 Time:3 Hour Q.1) Attempt any FIVE of the following. a) List any four applications of DBMS. b) State the four database users. c) Define normalization. Enlist its type. d)
More informationCREATING OTHER SCHEMA OBJECTS
CREATING OTHER SCHEMA OBJECTS http://www.tutorialspoint.com/sql_certificate/creating_other_schema_objects.htm Copyright tutorialspoint.com Apart from tables, other essential schema objects are view, sequences,indexes
More informationObjectives. After completing this lesson, you should be able to do the following:
Objectives After completing this lesson, you should be able to do the following: Describe the types of problems that subqueries can solve Define subqueries List the types of subqueries Write single-row
More information1. A) Attempt any six of following: 12
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate
More informationMySQL Introduction. By Prof. B.A.Khivsara
MySQL Introduction By Prof. B.A.Khivsara Note: The material to prepare this presentation has been taken from internet and are generated only for students reference and not for commercial use. Outline Design
More informationRNDr. Michal Kopecký, Ph.D. Department of Software Engineering, Faculty of Mathematics and Physics, Charles University in Prague
course: Database Applications (NDBI026) WS2015/16 RNDr. Michal Kopecký, Ph.D. Department of Software Engineering, Faculty of Mathematics and Physics, Charles University in Prague Triggers Triggers Overview
More informationTo understand the concept of candidate and primary keys and their application in table creation.
CM0719: Database Modelling Seminar 5 (b): Candidate and Primary Keys Exercise Aims: To understand the concept of candidate and primary keys and their application in table creation. Outline of Activity:
More informationMAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER 2018 EXAMINATION MODEL ANSWER
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate
More informationMisc. Triggers Views Roles Sequences - Synonyms. Eng. Mohammed Alokshiya. Islamic University of Gaza. Faculty of Engineering
Islamic University of Gaza Faculty of Engineering Computer Engineering Dept. Database Lab (ECOM 4113) Lab 9 Misc. Triggers Views Roles Sequences - Synonyms Eng. Mohammed Alokshiya December 7, 2014 Views
More informationChapter 7. Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel
Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel 1 In this chapter, you will learn: The basic commands
More informationSQL. Char (30) can store ram, ramji007 or 80- b
SQL In Relational database Model all the information is stored on Tables, these tables are divided into rows and columns. A collection on related tables are called DATABASE. A named table in a database
More informationSQL Interview Questions
SQL Interview Questions SQL stands for Structured Query Language. It is used as a programming language for querying Relational Database Management Systems. In this tutorial, we shall go through the basic
More informationDatabase Systems: Design, Implementation, and Management Tenth Edition. Chapter 7 Introduction to Structured Query Language (SQL)
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 7 Introduction to Structured Query Language (SQL) Objectives In this chapter, students will learn: The basic commands and
More informationSYSTEM CODE COURSE NAME DESCRIPTION SEM
Course: CS691- Database Management System Lab PROGRAMME: COMPUTER SCIENCE & ENGINEERING DEGREE:B. TECH COURSE: Database Management System Lab SEMESTER: VI CREDITS: 2 COURSECODE: CS691 COURSE TYPE: Practical
More informationTable of Contents. PDF created with FinePrint pdffactory Pro trial version
Table of Contents Course Description The SQL Course covers relational database principles and Oracle concepts, writing basic SQL statements, restricting and sorting data, and using single-row functions.
More informationITCertMaster. Safe, simple and fast. 100% Pass guarantee! IT Certification Guaranteed, The Easy Way!
ITCertMaster Safe, simple and fast. 100% Pass guarantee! http://www.itcertmaster.com Exam : 1z0-007 Title : Introduction to Oracle9i: SQL Vendor : Oracle Version : DEMO Get Latest & Valid 1Z0-007 Exam's
More informationCOSC 304 Introduction to Database Systems. Views and Security. Dr. Ramon Lawrence University of British Columbia Okanagan
COSC 304 Introduction to Database Systems Views and Security Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Views A view is a named query that is defined in the database.
More informationVendor: Oracle. Exam Code: 1Z Exam Name: Oracle Database: SQL Fundamentals I. Q&As: 292
Vendor: Oracle Exam Code: 1Z1-051 Exam Name: Oracle Database: SQL Fundamentals I Q&As: 292 QUESTION 1 Evaluate the SQL statement: TRUNCATE TABLE DEPT; Which three are true about the SQL statement? (Choose
More informationMicrosoft MOS- Using Microsoft Office Access Download Full Version :
Microsoft 77-605 MOS- Using Microsoft Office Access 2007 Download Full Version : http://killexams.com/pass4sure/exam-detail/77-605 QUESTION: 120 Peter works as a Database Designer for AccessSoft Inc. The
More informationSQL Structured Query Language Introduction
SQL Structured Query Language Introduction Rifat Shahriyar Dept of CSE, BUET Tables In relational database systems data are represented using tables (relations). A query issued against the database also
More informationORACLE 12C NEW FEATURE. A Resource Guide NOV 1, 2016 TECHGOEASY.COM
ORACLE 12C NEW FEATURE A Resource Guide NOV 1, 2016 TECHGOEASY.COM 1 Oracle 12c New Feature MULTITENANT ARCHITECTURE AND PLUGGABLE DATABASE Why Multitenant Architecture introduced with 12c? Many Oracle
More informationOracle Database 10g: Introduction to SQL
ORACLE UNIVERSITY CONTACT US: 00 9714 390 9000 Oracle Database 10g: Introduction to SQL Duration: 5 Days What you will learn This course offers students an introduction to Oracle Database 10g database
More informationDownloaded from
Lesson 16: Table and Integrity Constraints Integrity Constraints are the rules that a database must follow at all times. Various Integrity constraints are as follows:- 1. Not Null: It ensures that we cannot
More informationData about data is database Select correct option: True False Partially True None of the Above
Within a table, each primary key value. is a minimal super key is always the first field in each table must be numeric must be unique Foreign Key is A field in a table that matches a key field in another
More information1 Prepared By Heena Patel (Asst. Prof)
Topic 1 1. What is difference between Physical and logical data 3 independence? 2. Define the term RDBMS. List out codd s law. Explain any three in detail. ( times) 3. What is RDBMS? Explain any tow Codd
More informationRDBMS - PL SQL - Topic 5 - MSBTE QUESTIONS AND ANSWERS
RDBMS - PL SQL - Topic 5 - MSBTE QUESTIONS AND ANSWERS SUMMER 2017 Q. Describe Exception handling. Explain with example. 4 Marks Exception Handling: Exception is nothing but an error. Exception can be
More informationSQL: Advanced topics. Assertions
SQL: Advanced topics Prof. Weining Zhang Cs.utsa.edu Assertions Constraints defined over multiple tables. No student is allowed to take more than six courses. SQL> create assertion Course_Constraint check
More informationINDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables
INDEX Exercise No Title 1 Basic SQL Statements 2 Restricting and Sorting Data 3 Single Row Functions 4 Displaying data from multiple tables 5 Creating and Managing Tables 6 Including Constraints 7 Manipulating
More informationSQL functions fit into two broad categories: Data definition language Data manipulation language
Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Beginning Structured Query Language (SQL) MDM NUR RAZIA BINTI MOHD SURADI 019-3932846 razia@unisel.edu.my
More informationASSIGNMENT NO 2. Objectives: To understand and demonstrate DDL statements on various SQL objects
ASSIGNMENT NO 2 Title: Design and Develop SQL DDL statements which demonstrate the use of SQL objects such as Table, View, Index, Sequence, Synonym Objectives: To understand and demonstrate DDL statements
More informationOracle Database 11g: SQL and PL/SQL Fundamentals
Oracle University Contact Us: +33 (0) 1 57 60 20 81 Oracle Database 11g: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn In this course, students learn the fundamentals of SQL and PL/SQL
More informationChapter 2. DB2 concepts
4960ch02qxd 10/6/2000 7:20 AM Page 37 DB2 concepts Chapter 2 Structured query language 38 DB2 data structures 40 Enforcing business rules 49 DB2 system structures 52 Application processes and transactions
More informationDatabase Foundations. 6-3 Data Definition Language (DDL) Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Database Foundations 6-3 Roadmap You are here Introduction to Oracle Application Express Structured Query Language (SQL) Data Definition Language (DDL) Data Manipulation Language (DML) Transaction Control
More informationINDEX. 1 Introduction. 2 Types of Cursors 2.1 Explicit cursor 2.2 Attributes 2.3 Implicit cursor 2.4 Attributes. 3 Parameterized cursor
INDEX 1 Introduction 2 Types of Cursors 2.1 Explicit cursor 2.2 Attributes 2.3 Implicit cursor 2.4 Attributes 3 Parameterized cursor INTRODUCTION what is cursor? we have seen how oracle executes an SQL
More informationCSC Web Programming. Introduction to SQL
CSC 242 - Web Programming Introduction to SQL SQL Statements Data Definition Language CREATE ALTER DROP Data Manipulation Language INSERT UPDATE DELETE Data Query Language SELECT SQL statements end with
More informationCourse Outline and Objectives: Database Programming with SQL
Introduction to Computer Science and Business Course Outline and Objectives: Database Programming with SQL This is the second portion of the Database Design and Programming with SQL course. In this portion,
More informationDownloaded from
Unit-III DATABASES MANAGEMENT SYSTEM AND SQL DBMS & Structured Query Language Chapter: 07 Basic Database concepts Data : Raw facts and figures which are useful to an organization. We cannot take decisions
More informationGIFT Department of Computing Science Data Selection and Filtering using the SELECT Statement
GIFT Department of Computing Science [Spring 2013] CS-217: Database Systems Lab-2 Manual Data Selection and Filtering using the SELECT Statement V1.0 4/12/2016 Introduction to Lab-2 This lab reinforces
More informationIntroduction to Computer Science and Business
Introduction to Computer Science and Business This is the second portion of the Database Design and Programming with SQL course. In this portion, students implement their database design by creating a
More informationIntroduction to Views
Introduction to Views View is a virtual table, through which a selective portion of the data from one or more tables can be seen. Views do not contain data of their own. They are used to restrict access
More informationWhat s New in MariaDB Server 10.3
What s New in MariaDB Server 10.3 What s New in MariaDB Server 10.3 Database Compatibility Enhancements PL/SQL Compatibility for MariaDB Stored Functions including packages PL/SQL Compatibility for MariaDB
More informationENHANCING DATABASE PERFORMANCE
ENHANCING DATABASE PERFORMANCE Performance Topics Monitoring Load Balancing Defragmenting Free Space Striping Tables Using Clusters Using Efficient Table Structures Using Indexing Optimizing Queries Supplying
More informationStructure Query Language (SQL)
Structure Query Language (SQL) 1 6.12.2 OR operator OR operator is also used to combine multiple conditions with Where clause. The only difference between AND and OR is their behavior. When we use AND
More informationViews. COSC 304 Introduction to Database Systems. Views and Security. Creating Views. Views Example. Removing Views.
COSC 304 Introduction to Database Systems Views and Security Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Views A view is a named query that is defined in the database.
More informationChapter # 7 Introduction to Structured Query Language (SQL) Part I
Chapter # 7 Introduction to Structured Query Language (SQL) Part I Introduction to SQL SQL functions fit into two broad categories: Data definition language Data manipulation language Basic command set
More informationBraindumpsVCE. Best vce braindumps-exam vce pdf free download
BraindumpsVCE http://www.braindumpsvce.com Best vce braindumps-exam vce pdf free download Exam : 1z1-061 Title : Oracle Database 12c: SQL Fundamentals Vendor : Oracle Version : DEMO Get Latest & Valid
More informationRelational Database Management Systems Mar/Apr I. Section-A: 5 X 4 =20 Marks
Relational Database Management Systems Mar/Apr 2015 1 I. Section-A: 5 X 4 =20 Marks 1. Database Database: Database is a collection of inter-related data which contains the information of an enterprise.
More informationEECS 647: Introduction to Database Systems
EECS 647: Introduction to Database Systems Instructor: Luke Huan Spring 2009 Summary of SQL Features Query SELECT-FROM-WHERE statements Set and bag operations Table expressions, subqueries Aggregation
More informationITCertMaster. Safe, simple and fast. 100% Pass guarantee! IT Certification Guaranteed, The Easy Way!
ITCertMaster Safe, simple and fast. 100% Pass guarantee! http://www.itcertmaster.com IT Certification Guaranteed, The Easy Way! Exam : 1Z0-870 Title : MySQL 5.0, 5.1 and 5.5 Certified Associate Exam Vendors
More informationNow, we can refer to a sequence without having to use any SELECT command as follows:
Enhancement in 11g Database PL/SQL Sequence: Oracle Database 11g has now provided support for Sequence in PL/SQL. Earlier to get a number from a sequence in PL/SQL we had to use SELECT command with DUAL
More informationADVANTAGES. Via PL/SQL, all sorts of calculations can be done quickly and efficiently without use of Oracle engine.
1 PL/SQL INTRODUCTION SQL does not have procedural capabilities. SQL does not provide the programming techniques of condition checking, looping and branching that is required for data before permanent
More informationCMP-3440 Database Systems
CMP-3440 Database Systems Relational DB Languages SQL Lecture 06 zain 1 Purpose and Importance Database Language: To create the database and relation structures. To perform various operations. To handle
More informationOracle Rdb SQL Reference Manual Volume 3
Oracle Rdb SQL Reference Manual Volume 3 Release 7.2.5.2 for HP OpenVMS Industry Standard 64 for Integrity Servers and OpenVMS Alpha operating systems April 2012 SQL Reference Manual, Volume 3 Release
More informationCOSC 304 Introduction to Database Systems SQL DDL. Dr. Ramon Lawrence University of British Columbia Okanagan
COSC 304 Introduction to Database Systems SQL DDL Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca SQL Overview Structured Query Language or SQL is the standard query language
More informationEnhancements and New Features in Oracle 12c Summarized
Enhancements and New Features in Oracle 12c Summarized In this blog post I would be highlighting few of the features that are now available on Oracle Database 12cRelease. Here listing below in a summarized
More informationOracle Tables TECHGOEASY.COM
Oracle Tables TECHGOEASY.COM 1 Oracle Tables WHAT IS ORACLE DATABASE TABLE? -Tables are the basic unit of data storage in an Oracle Database. Data is stored in rows and columns. -A table holds all the
More informationSun Certified MySQL Associate
310-814 Sun Certified MySQL Associate Version 3.1 QUESTION NO: 1 Adam works as a Database Administrator for a company. He creates a table named Students. He wants to create a new table named Class with
More informationImplementing Table Operations Using Structured Query Language (SQL) Using Multiple Operations. SQL: Structured Query Language
Implementing Table Operations Using Structured Query Language (SQL) Using Multiple Operations Show Only certain columns and rows from the join of Table A with Table B The implementation of table operations
More informationLecture 07. Spring 2018 Borough of Manhattan Community College
Lecture 07 Spring 2018 Borough of Manhattan Community College 1 SQL Identifiers SQL identifiers are used to identify objects in the database, such as table names, view names, and columns. The ISO standard
More informationCHAPTER. Oracle Database 11g Architecture Options
CHAPTER 1 Oracle Database 11g Architecture Options 3 4 Part I: Critical Database Concepts Oracle Database 11g is a significant upgrade from prior releases of Oracle. New features give developers, database
More informationDatabases - 4. Other relational operations and DDL. How to write RA expressions for dummies
Databases - 4 Other relational operations and DDL How to write RA expressions for dummies Step 1: Identify the relations required and CP them together Step 2: Add required selections to make the CP Step
More informationtablename ORDER BY column ASC tablename ORDER BY column DESC sortingorder, } The WHERE and ORDER BY clauses can be combined in one
} The result of a query can be sorted in ascending or descending order using the optional ORDER BY clause. The simplest form of an ORDER BY clause is SELECT columnname1, columnname2, FROM tablename ORDER
More information.. Spring 2008 CSC 468: DBMS Implementation Alexander Dekhtyar..
.. Spring 2008 CSC 468: DBMS Implementation Alexander Dekhtyar.. Tuning Oracle Query Execution Performance The performance of SQL queries in Oracle can be modified in a number of ways: By selecting a specific
More informationAssignment 6: SQL III Solution
Data Modelling and Databases Exercise dates: April 12/April 13, 2018 Ce Zhang, Gustavo Alonso Last update: April 16, 2018 Spring Semester 2018 Head TA: Ingo Müller Assignment 6: SQL III Solution This assignment
More informationPL/SQL. Exception. When the PL/SQL engine cannot execute the PLSQL block it raise an error. Every Oracle error has an error number
PL/SQL Exception When the PL/SQL engine cannot execute the PLSQL block it raise an error. Every Oracle error has an error number Exceptions must be handled by name. PL/SQL predefines some common Oracle
More informationOracle Database: SQL and PL/SQL Fundamentals NEW
Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training delivers the fundamentals of SQL and PL/SQL along with the
More informationRelational Database Language
DATA BASE MANAGEMENT SYSTEMS Unit IV Relational Database Language: Data definition in SQL, Queries in SQL, Insert, Delete and Update Statements in SQL, Views in SQL, Specifying General Constraints as Assertions,
More informationREPORT ON SQL TUNING USING INDEXING
REPORT ON SQL TUNING USING INDEXING SUBMITTED BY SRUNOKSHI KANIYUR PREMA NEELAKANTAN CIS -798 INDEPENDENT STUDY COURSE PROFESSOR Dr.TORBEN AMTOFT Kansas State University Page 1 of 38 TABLE OF CONTENTS
More informationLab # 3 Hands-On. DML Basic SQL Statements Institute of Computer Science, University of Tartu, Estonia
Lab # 3 Hands-On DML Basic SQL Statements Institute of Computer Science, University of Tartu, Estonia DML: Data manipulation language statements access and manipulate data in existing schema objects. These
More informationOracle Database: SQL and PL/SQL Fundamentals Ed 2
Oracle University Contact Us: Local: 1800 103 4775 Intl: +91 80 67863102 Oracle Database: SQL and PL/SQL Fundamentals Ed 2 Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals
More informationThe Encryption Wizard for Oracle. API Library Reference
The Encryption Wizard for Oracle For Oracle 10g, 11g and 12c Databases Version 8 All Rights Reserved. The Encryption Wizard for Oracle RDC) 12021 Wilshire Blvd Suite 108 Los Angeles, CA. 90025 310-281-1915
More informationWhat s New in MariaDB Server Max Mether VP Server
What s New in MariaDB Server 10.3 Max Mether VP Server Recap MariaDB 10.2 New in MariaDB 10.2 - GA since May 2017 What s New in 10.2 Analytics SQL Window Functions Common Table Expressions (CTE) JSON JSON
More informationOracle Alter Table Add Unique Constraint Using Index Tablespace
Oracle Alter Table Add Unique Constraint Using Index Tablespace You must also have space quota in the tablespace in which space is to be acquired in Additional Prerequisites for Constraints and Triggers
More informationSlides by: Ms. Shree Jaswal
Slides by: Ms. Shree Jaswal A trigger is a statement that is executed automatically by the system as a side effect of a modification to the database. To design a trigger mechanism, we must: Specify the
More informationCS44800 Practice Project SQL Spring 2019
CS44800 Practice Project SQL Spring 2019 Due: No Grade Total Points: 30 points Learning Objectives 1. Be familiar with the basic SQL syntax for DML. 2. Use a declarative programming model (SQL) to retrieve
More informationLGNSCOE Depatment of Computer Enggineering T.E. Group A
Group A Assignment No 2 Title: Design and Develop SQL DDL statements which demonstrate the use of SQL objects such as Table, View, Index, Sequence, Synonym. Requirement: 1. Computer System with Ubuntu
More informationCUBE, ROLLUP, AND MATERIALIZED VIEWS: MINING ORACLE GOLD John Jay King, King Training Resources
CUBE, ROLLUP, AND MATERIALIZED VIEWS: MINING ORACLE GOLD John Jay, Training Resources Abstract: Oracle8i provides new features that reduce the costs of summary queries and provide easier summarization.
More informationOral Questions and Answers (DBMS LAB) Questions & Answers- DBMS
Questions & Answers- DBMS https://career.guru99.com/top-50-database-interview-questions/ 1) Define Database. A prearranged collection of figures known as data is called database. 2) What is DBMS? Database
More informationTriggers- View-Sequence
The Islamic University of Gaza Faculty of Engineering Dept. of Computer Engineering Database Lab (ECOM 4113) Lab 9 Triggers- View-Sequence Eng. Ibraheem Lubbad Triggers: A trigger is a PL/SQL block or
More informationCreating SQL Tables and using Data Types
Creating SQL Tables and using Data Types Aims: To learn how to create tables in Oracle SQL, and how to use Oracle SQL data types in the creation of these tables. Outline of Session: Given a simple database
More informationCBSE Revision Notes Class-11 Computer Science (New Syllabus) Unit 3: Data Management (DM-1) Database
CBSE Revision Notes Class-11 Computer Science (New Syllabus) Unit 3: Data Management (DM-1) Database Database: A Database is an organized collection of facts. In other words we can say that it is a collection
More informationTrigger is a stored procedure which is called implicitly by oracle engine whenever a insert, update or delete statement is fired.
Aim:- TRIGGERS Trigger is a stored procedure which is called implicitly by oracle engine whenever a insert, update or delete statement is fired. Advantages of database triggers: ---> Data is generated
More informationORACLE DATABASE 12C INTRODUCTION
SECTOR / IT NON-TECHNICAL & CERTIFIED TRAINING COURSE In this training course, you gain the skills to unleash the power and flexibility of Oracle Database 12c, while gaining a solid foundation of database
More informationUNIT-IV (Relational Database Language, PL/SQL)
UNIT-IV (Relational Database Language, PL/SQL) Section-A (2 Marks) Important questions 1. Define (i) Primary Key (ii) Foreign Key (iii) unique key. (i)primary key:a primary key can consist of one or more
More informationObjectives. After completing this lesson, you should be able to do the following:
Objectives After completing this lesson, you should be able to do the following: Write SELECT statements to access data from more than one table using equality and nonequality joins View data that generally
More informationExam Actual. Higher Quality. Better Service! QUESTION & ANSWER
Higher Quality Better Service! Exam Actual QUESTION & ANSWER Accurate study guides, High passing rate! Exam Actual provides update free of charge in one year! http://www.examactual.com Exam : 1Z0-047 Title
More informationChapter 9: Working with MySQL
Chapter 9: Working with MySQL Informatics Practices Class XI (CBSE Board) Revised as per CBSE Curriculum 2015 Visit www.ip4you.blogspot.com for more. Authored By:- Rajesh Kumar Mishra, PGT (Comp.Sc.) Kendriya
More informationSQL is an English like language consisting of commands to store, retrieve, maintain & regulate access to your database.
SQL SQL is an English like language consisting of commands to store, retrieve, maintain & regulate access to your database. SQL*Plus SQL*Plus is an application that recognizes & executes SQL commands &
More information