Section I : Section II : Question 1. Question 2. Question 3.
|
|
- Brice Goodman
- 6 years ago
- Views:
Transcription
1 Computer Science, Midterm Examiner: Ritu Chaturvedi Date: Oct. 27 th, 2011 Student Name: Student Number: INSTRUCTIONS (Please Read Carefully) Examination Period is 1 hour and 15 minutes Answer all questions. Write your answers in the spaces provided in the question paper. This is closed book and closed notes test. Total Marks =60. Total number of sections = 2 Total number of pages =14 Please read questions carefully! Misinterpreting a question intentionally or unintentionally results in getting a ZERO for that question. Good Luck!!! Section I : Section II : Question 1. Question 2. Question 3. Page 1 of 16
2 SECTION I : Multiple-Choice Questions : Each question has 1 answer, unless otherwise specified. You must select the best possible answer. (13 X marks for question 14 = 29 marks) 1. You are defining a cursor in your PL/SQL block. Which line in the following statement will produce an error? A. cursor action_cursor is B. select name, rate, action C. into action_record D. from action_table; E. There are no errors in this statement 2. Which of the following integrity constraints automatically create an index when defined? (Choose two) A. Foreign keys B. UNIQUE constraints C. NOT NULL constraints D. Primary keys 3. Omitting the where clause from a delete statement has which of the following effects? A. The delete statement will fail because there are no records to delete. B. The delete statement will prompt the user to enter criteria for the deletion. C. The delete statement will fail because of syntax error. D. The delete statement will remove all records from the table. 4. Which of the following is TRUE / FALSE? 1 Host variables are declared anywhere in the program 2 Host variables are declared in the DECLARE section A. Only 1 is TRUE B. Only 2 is TRUE C. Both 1 & 2are TRUE D. Both are FALSE Page 2 of 16
3 5. Martha writes the following query to display information from the Ordinates table : SELECT Ord_no, DISTINCT Ord_name, Salary FROM Ordinates; A. The query will display all values for Ord_no, unique values for Ord_name and unique values for Salary. B. The query will display only those rows in Ordinates that have a unique Ord_name. C. The query will display all values for Ord_No, unique values for Ord_name and all values of Salary. D. The query will produce an error. E. none of the above 6. In this PL/SQL statement, which of the following lines will produce an error? A. CURSOR capital IS B. SELECT city, state, zip C. INTO my_city D. FROM CITIES; 7. This is an example of what type of cursor? DECLARE v_dname department.dname%type; BEGIN SELECT dname INTO v_dname FROM department WHERE dno = 60; END; A. There is no cursor used in the code B. SELECT C. Explicit D. Implicit 8. After executing an update statement, the developer codes a PL/SQL block to perform an operation based on SQL%ROWCOUNT. What data is returned by the SQL%ROWCOUNT operation? A. A Boolean value representing the success or failure of the update B. A numeric value representing the number of rows updated C. A VARCHAR2 value identifying the name of the table updated D. A LONG value containing all data from the table Page 3 of 16
4 9. Which line in the code below returns an error? The structure of table EMP is : EMP(NAME VARCHAR2(20), salary NUMBER(5)). 1 SELECT name, salary, SUM(salary) total 2 FROM emp 3 GROUP BY name 4 HAVING SUM(salary) > ORDER BY name; A. Line 1 B. Line 2 C. Line 4 D. Line PL/SQL blocks MAY NOT contain what? A. SELECT statements with subqueries. B. Data definition language statements such as CREATE TABLE. C. Data manipulation language statements such as UPDATE. D. Arithmetic statements such as v_variable := 24; 11. What is the name of Oracle's implicit cursor? A. CUR B. SQL C. ORA D. IMP_CUR E. You cannot reference an implicit cursor 12. The DBA created a public synonym called S_FOR_ALL for table S and has granted you access to it. You, as a user, have created a table called S in your account as well. What is the result of executing this query : SELECT * FROM S; A. You obtain results from the table S of the DBA. B. You obtain results from table S of your schema. C. You get an error message as you have access to 2 tables of the same name. D. You obtain a Cartesian product of the tables S of your schema and S of the DBA s schema. e. None of the above Page 4 of 16
5 13. VARIABLE VAR_X NUMBER DECLARE VAR_Y NUMBER (2) := &&VAR_X2; BEGIN :VAR_X := VAR_Y + 3; END; A. VAR_X is a substitution variable whereas VAR_X2 is a bind variable B. VAR_X is a bind variable whereas VAR_X2 is a substitution variable C. VAR_Y is a substitution variable whereas VAR_X2 is a bind variable D. VAR_X is a substitution variable whereas VAR_X is a bind variable 14. A table called TEST has 1000 rows and has the following structure: ID NAME BDATE NUMBER(3) PRIMARY KEY VARCHAR2(30) DATE The number of blocks required to store these 1000 rows is 50. The DBA decides to create a secondary index IND_NAME on the field NAME. How many entries will the primary index and the secondary index IND_NAME have? A. Primary index will have 1000 ; Secondary index will have 50 B. Primary index will have 50 ; Secondary index will have 1000 C. Both Primary and Secondary index will have the same = 1000 D. Both Primary and Secondary index will have the same = 50 Page 5 of 16
6 Section II ( = 31 marks) 1. (6 marks). In the PL/SQL block shown below, determine the values for each of the following cases, after the block is run. DECLARE customer credit_rating BEGIN DECLARE BEGIN END; VARCHAR2(50) := 'APPLE'; VARCHAR2(50) := 'EXCELLENT'; customer NUMBER(7) := 201; name VARCHAR2(25) := 'SAMSUNG'; credit_rating :='GOOD'; END; / a. The value of customer in the nested block is: 201 b. The value of name in the nested block is: SAMSUNG c. The value of credit_rating in the nested block is: GOOD d. The value of customer in the main block is: APPLE e. The value of name in the main block is: N / A f. The value of credit_rating in the main block is: GOOD Page 6 of 16
7 2. (4 + 4 = 8 marks) Use the Functional Dependency diagram given below in Figure 2 to answer Question 2a and b. Figure 2: C1 C2 C3 C4 Figure 2 represents all functional dependencies in relation R with attributes C1, C2, C3, C4 and C5. C5 a. (4 marks) Identify the following components in the FD diagram given below. Write None if there is none. Primary Key: (C1, C2) Non-trivial Functional Dependencies: C1 -> C3, C3 -> C4 Non-Full Functional dependencies: C1 -> C3 Transitive dependencies: C3 -> C4 b. (4 marks) Prove that relation R is not in 3NF. R is not in 3NF because of 2 reasons : 1. R is not in 2NF as we have a non-full functional dependency. 2. R has a transitive dependency. Page 7 of 16
8 Page 8 of 16
9 Page 9 of 16
10 3.(17 marks + 1 bonus) Tables S and SP, You are also given a table called supplier_summary with the following fields. Currently, there are no records in this table. seq_num NUMBER PRIMARY KEY supplier_name VARCHAR2(20) total_number_of_parts NUMBER(3) total_quantity NUMBER (5) minimum_quantity NUMBER (5) todays_date DATE Page 10 of 16
11 Write a PL/SQL block using explicit cursors to populate some statistics into the supplier_summary table using the tables S and SP given above. - Column supplier_name is the supplier name. - Column total_number_of_parts stores the total number of parts supplied by each supplier - Columns total_quantity and minimum_quantity store the total quantity and minimum quantity respectively for each supplier. - To populate the column seq_num, use a sequence called midterm_seq that starts with 1 and increments by 1 (Assume that the sequence is already created and stored in the Database). - Todays_date column stores today s date (this will fetch you a bonus mark). In addition to populating the table supplier_summary, your program must display messages on the screen as shown below : Data 1 cannot be inserted - too few parts Data 2 cannot be inserted - too few parts Data 3 cannot be inserted - too few parts Data 4 Successful insertion Data 5 cannot be inserted - too few parts PL/SQL procedure successfully completed. rituch@cs01> After successful execution of your program on the tables S and SP as shown on Page 8, supplier_summary table must have the following rows: (Adams is the only supplier supplier who supplies more than 3 parts(6 parts actually) the rest of them supply 1 or 2 and hence are not inserted in the table). Page 11 of 16
12 Solution: DECLARE CURSOR lab2_2 IS SELECT sname, COUNT(*) AS total_parts, SUM(qty) AS total_qty, MIN(qty) as min_qty FROM s, sp WHERE s.sno=sp.sno GROUP BY s.sname; rec_cursor_lab2_2 lab2_2%rowtype; i NUMBER := 1; BEGIN OPEN lab2_2; LOOP FETCH lab2_2 INTO rec_cursor_lab2_2 ; EXIT WHEN lab2_2%notfound; IF (rec_cursor_lab2_2.total_parts <= 2) THEN DBMS_OUTPUT.PUT_LINE ('Data ' i ' cannot be inserted - too few parts '); ELSE DBMS_OUTPUT.PUT_LINE ('Data ' i 'Successful insertion'); INSERT INTO supplier_summary VALUES(midterm_seq.nextval, rec_cursor_lab2_2.sname, rec_cursor_lab2_2.total_parts, rec_cursor_lab2_2.total_qty, rec_cursor_lab2_2.min_qty, SYSDATE); END IF; i := i+ 1; END LOOP; END; / Note : There can be more than solutions to this question only 1 is provided. Page 12 of 16
13 Page 13 of 16
14 Page 14 of 16
15 Supplement Sheet : Syntax PL/SQL Block Structure DECLARE (optional) Variables, cursors, user-defined exceptions BEGIN (mandatory) EXCEPTION (optional) END; (mandatory) Declaring and Initializing PL/SQL Variables identifier [CONSTANT] datatype [NOT NULL] [:= DEFAULT expr]; Declaring Variables with the %TYPE Attribute identifier table.column_name%type; IF Statements IF condition THEN statements; [ELSIF condition THEN statements;] [ELSE statements;] END IF; CASE Expressions CASE selector WHEN expression1 THEN result1 WHEN expression2 THEN result2... WHEN expressionn THEN resultn [ELSE resultn+1] END; Loops : LOOP statement1;... EXIT [WHEN condition]; END LOOP; WHILE Loops WHILE condition LOOP statement1;... END; FOR Loops FOR counter IN [REVERSE] lower_bound..upper_bound LOOP statement1; statement2;... END LOOP; Page 15 of 16
16 Declaring a Cursor CURSOR cursor_name IS select_statement; Opening the Cursor OPEN cursor_name; Fetching Data from the Cursor FETCH cursor_name INTO variables..; Closing the Cursor CLOSE cursor_name; Cursor FOR Loops FOR record_name IN cursor_name LOOP statement1; statement2;... END LOOP; Cursors with Parameters CURSOR cursor_name [(parameter_name datatype,...)] IS select_statement; Exceptions EXCEPTION WHEN exception1 [OR exception2...] THEN statement1; statement2; RAISE_APPLICATION_ERROR Procedure Syntax: raise_application_error (error_number, message[, {TRUE FALSE}]); PRAGMA EXCEPTION_INIT(message, error_number) Some Oracle Errors : CURSOR_ALREADY_OPEN NO_DATA_FOUND TOO_MANY_ROWS VALUE_ERROR ORA ORA ORA ORA Oracle error : Integrity constraint violation. Occurs when attempting to insert a child record for which no parent record exists. Oracle error : Integrity constraint violation. Occurs when attempting to delete a parent record for which children records exist. ORA-00001: unique constraint violation / Primary key violation Page 16 of 16
Procedural Language Structured Query Language (PL/SQL)
The Islamic University of Gaza Faculty of Engineering Dept. of Computer Engineering Database Lab (ECOM 4113) Lab 7 Procedural Language Structured Query Language (PL/SQL) Eng. Ibraheem Lubbad Structured
More informationUNIT II PL / SQL AND TRIGGERS
UNIT II PL / SQL AND 1 TRIGGERS TOPIC TO BE COVERED.. 2.1 Basics of PL / SQL 2.2 Datatypes 2.3 Advantages 2.4 Control Structures : Conditional, Iterative, Sequential 2.5 Exceptions: Predefined Exceptions,User
More informationLesson B Objectives IF/THEN. Chapter 4B: More Advanced PL/SQL Programming
Chapter 4B: More Advanced PL/SQL Programming Monday 2/23/2015 Abdou Illia MIS 4200 - Spring 2015 Lesson B Objectives After completing this lesson, you should be able to: Create PL/SQL decision control
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 informationSisteme Informatice şi Standarde Deschise (SISD) Curs 7 Standarde pentru programarea bazelor de date (1)
Administrarea Bazelor de Date Managementul în Tehnologia Informaţiei Sisteme Informatice şi Standarde Deschise (SISD) 2009-2010 Curs 7 Standarde pentru programarea bazelor de date (1) 23.11.2009 Sisteme
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 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 informationPL/SQL Block structure
PL/SQL Introduction Disadvantage of SQL: 1. SQL does t have any procedural capabilities. SQL does t provide the programming technique of conditional checking, looping and branching that is vital for data
More information2. Programming written ( main theme is to test our data structure knowledge, proficiency
ORACLE Job Placement Paper Paper Type : General - other 1. Tech + Aptitude written 2. Programming written ( main theme is to test our data structure knowledge, proficiency sorting searching algorithms
More informationORACLE Job Placement Paper. Paper Type : General - other
ORACLE Job Placement Paper Paper Type : General - other 1. Tech + Aptitude written 2. Programming written ( main theme is to test our data structure knowledge, proficiency sorting searching algorithms
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL Trapping Oracle Server Exceptions 1 Copyright 2013, Oracle and/or its affiliates. All rights Objectives This lesson covers the following objectives: Describe and provide
More informationContents I Introduction 1 Introduction to PL/SQL iii
Contents I Introduction Lesson Objectives I-2 Course Objectives I-3 Human Resources (HR) Schema for This Course I-4 Course Agenda I-5 Class Account Information I-6 Appendixes Used in This Course I-7 PL/SQL
More information5. Single-row function
1. 2. Introduction Oracle 11g Oracle 11g Application Server Oracle database Relational and Object Relational Database Management system Oracle internet platform System Development Life cycle 3. Writing
More informationQuestion Bank PL/SQL Fundamentals-I
Question Bank PL/SQL Fundamentals-I UNIT-I Fundamentals of PL SQL Introduction to SQL Developer, Introduction to PL/SQL, PL/SQL Overview, Benefits of PL/SQL, Subprograms, Overview of the Types of PL/SQL
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 informationOracle Class VI. Exception Block Cursors For Loops
Oracle Class VI Exception Block Cursors For Loops Pl/sql some more basics Loop through records, manipulating them one at a time. Keep code secure by offering encryption, and storing code permanently on
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 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 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 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 informationTopics Fundamentals of PL/SQL, Integration with PROIV SuperLayer and use within Glovia
Topics Fundamentals of PL/SQL, Integration with PROIV SuperLayer and use within Glovia 1. Creating a Database Alias 2. Introduction to SQL Relational Database Concept Definition of Relational Database
More informationSubquery: There are basically three types of subqueries are:
Subquery: It is also known as Nested query. Sub queries are queries nested inside other queries, marked off with parentheses, and sometimes referred to as "inner" queries within "outer" queries. Subquery
More informationMeet MariaDB Vicențiu Ciorbaru Software MariaDB Foundation * * 2017 MariaDB Foundation
Meet MariaDB 10.3 Vicențiu Ciorbaru Software Engineer @ MariaDB Foundation vicentiu@mariadb.org * * What is MariaDB? MariaDB 5.1 (Feb 2010) - Making builds free MariaDB 5.2 (Nov 2010) - Community features
More informationPL/SQL is a combination of SQL along with the procedural features of programming languages.
(24 Marks) 5.1 What is PLSQL? PLSQL stands for Procedural Language extension of SQL. PLSQL is a combination of SQL along with the procedural features of programming languages. It was developed by Oracle
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL 5-4 Objectives This lesson covers the following objectives: List the benefits of using parameters with cursors Create PL/SQL code to declare and use a cursor with a parameter
More informationTable of Contents. Oracle SQL PL/SQL Training Courses
Table of Contents Overview... 7 About DBA University, Inc.... 7 Eligibility... 8 Pricing... 8 Course Topics... 8 Relational database design... 8 1.1. Computer Database Concepts... 9 1.2. Relational Database
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 informationIntroduction to Computer Science and Business
Introduction to Computer Science and Business The Database Programming with PL/SQL course introduces students to the procedural language used to extend SQL in a programatic manner. This course outline
More informationPLSQL 9i Index. Section Title Page
One PLSQL Introduction 2 Procedural Language for SQL 3 Two PLSQL Structure 5 Basic Structure of PLSQL 6 The Declaration Section in PLSQL 7 Local Variables in PLSQL 8 Naming Local Variables in PLSQL 10
More informationProgramming in Oracle with PL/SQL. Procedural Language Extension to SQL
Programming in Oracle with PL/SQL Procedural Language Extension to SQL PL/SQL Allows using general programming tools with SQL, for example: loops, conditions, functions, etc. This allows a lot more freedom
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 informationThe PL/SQL Engine: PL/SQL. A PL/SQL Block: Declaration Section. Execution Section. Declaration Section 3/24/2014
PL/SQL The PL/SQL Engine: PL/SQL stands for Procedural Language extension of SQL. PL/SQL is a combination of SQL along with the procedural features of programming languages. It was developed by Oracle
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL 5-3 Objectives This lesson covers the following objectives: List and explain the benefits of using cursor FOR loops Create PL/SQL code to declare a cursor and manipulate
More informationORACLE: PL/SQL Programming
%ROWTYPE Attribute... 4:23 %ROWTYPE... 2:6 %TYPE... 2:6 %TYPE Attribute... 4:22 A Actual Parameters... 9:7 Actual versus Formal Parameters... 9:7 Aliases... 8:10 Anonymous Blocks... 3:1 Assigning Collection
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL Cursor FOR Loops 1 Copyright 2013, Oracle and/or its affiliates. All rights Objectives This lesson covers the following objectives: List and explain the benefits of using
More informationFull file at
ch02 True/False Indicate whether the statement is true or false. 1. The term anonymous blocks refers to blocks of code that are not stored for reuse and do not exist after being executed. 2. The only required
More informationLecture 08. Spring 2018 Borough of Manhattan Community College
Lecture 08 Spring 2018 Borough of Manhattan Community College 1 The SQL Programming Language Recent versions of the SQL standard allow SQL to be embedded in high-level programming languages to help develop
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 informationOracle PLSQL. Course Summary. Duration. Objectives
Oracle PLSQL Course Summary Use conditional compilation to customize the functionality in a PL/SQL application without removing any source code Design PL/SQL packages to group related constructs Create
More informationMidterm Exam #2 (Version A) CS 122A Winter 2017
NAME: SEAT NO.: STUDENT ID: Midterm Exam #2 (Version A) CS 122A Winter 2017 Max. Points: 100 (Please read the instructions carefully) Instructions: - The total time for the exam is 50 minutes; be sure
More information5 Integrity Constraints and Triggers
5 Integrity Constraints and Triggers 5.1 Integrity Constraints In Section 1 we have discussed three types of integrity constraints: not null constraints, primary keys, and unique constraints. In this section
More informationOverview of PL/SQL. About PL/SQL. PL/SQL Environment. Benefits of PL/SQL. Integration
About PL/ Overview of PL/ PL/ is an extension to with design features of programming languages. Data manipulation and query statements of are included within procedural units of code. PL/ Environment Benefits
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 informationOracle Introduction to PL/SQL
Oracle Introduction to PL/SQL 1. For which column would you create an index? a. a column that is small b. a column that is updated frequently c. a column containing a wide range of values d. a column with
More information2 PL/SQL - fundamentals Variables and Constants Operators SQL in PL/SQL Control structures... 7
Table of Contents Spis treści 1 Introduction 1 2 PLSQL - fundamentals 1 2.1 Variables and Constants............................ 2 2.2 Operators.................................... 5 2.3 SQL in PLSQL.................................
More informationPLSQL Interview Questions :
PLSQL Interview Questions : In my previous articles I have explained the SQL interview questions,bi Interview questions which will give the best idea about the question that may ask in interview.in this
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 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 informationIntroduction to SQL/PLSQL Accelerated Ed 2
Oracle University Contact Us: Local: 1800 103 4775 Intl: +91 80 67863102 Introduction to SQL/PLSQL Accelerated Ed 2 Duration: 5 Days What you will learn This Introduction to SQL/PLSQL Accelerated course
More information1Z0-144 Q&As Oracle Database 11g: Program with PL/ SQL
CertBus.com 1Z0-144 Q&As Oracle Database 11g: Program with PL/ SQL Pass Oracle 1Z0-144 Exam with 100% Guarantee Free Download Real Questions & Answers PDF and VCE file from: 100% Passing Guarantee 100%
More informationMANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9)
Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 6 Professional Program: Data Administration and Management MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9) AGENDA
More informationOracle Database: Introduction to SQL/PLSQL Accelerated
Oracle University Contact Us: Landline: +91 80 67863899 Toll Free: 0008004401672 Oracle Database: Introduction to SQL/PLSQL Accelerated Duration: 5 Days What you will learn This Introduction to SQL/PLSQL
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 informationIntroduction to Explicit Cursors. Copyright 2008, Oracle. All rights reserved.
Introduction to Explicit Cursors Introduction to Explicit Cursors 2 What Will I Learn? In this lesson, you will learn to: Distinguish between an implicit and an explicit cursor Describe why and when to
More informationCourse 492 Supplementary Materials. Mutating Tables
Course 492 Supplementary Materials Mutating Tables 1 Mutating Table Restriction A mutating table is a table that is currently being modified by an UPDATE, DELETE, or INSERT In the following example, the
More informationIntroduction to Oracle9i: SQL
Oracle 1z0-007 Introduction to Oracle9i: SQL Version: 22.0 QUESTION NO: 1 Oracle 1z0-007 Exam Examine the data in the EMPLOYEES and DEPARTMENTS tables. You want to retrieve all employees, whether or not
More informationChapter 1 CONTROL STRUCTURES. SYS-ED/ Computer Education Techniques, Inc.
Chapter 1 CONTROL STRUCTURES SYS-ED/ Computer Education Techniques, Inc. ORACLE: PL/SQL: Programming - Advanced Objectives You will learn: Uses and types of control structures. Constructing an IF statement.
More informationM.C.A. (CBCS) Sem.-III Examination November-2013 CCA-3004 : Database Concepts and Tools. Faculty Code: 003 Subject Code:
003-007304 M.C.A. (CBCS) Sem.-III Examination November-2013 CCA-3004 : Database Concepts and Tools Faculty Code: 003 Subject Code: 007304 Time: 21/2 Hours] [Total Marks: 70 I. Answer the following multiple
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 informationVendor: Oracle. Exam Code: 1Z Exam Name: Oracle Database 11g: Program with PL/ SQL. Version: Demo
Vendor: Oracle Exam Code: 1Z0-144 Exam Name: Oracle Database 11g: Program with PL/ SQL Version: Demo QUESTION NO: 1 View the Exhibit to examine the PL/SQL code: SREVROUPUT is on for the session. Which
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 Views Creating views Using
More informationLab # 6. Using Subqueries and Set Operators. Eng. Alaa O Shama
The Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4113: Database Lab Lab # 6 Using Subqueries and Set Operators Eng. Alaa O Shama November, 2015 Objectives:
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 informationDatabase Management Systems Triggers
Database Management Systems Triggers 1 Triggers Active Database Systems Oracle Triggers DB2 Triggers Differences between Oracle and DB2 Trigger Design 2 Database Management Systems Active Database Systems
More informationUsing SQL with SQL Developer Part II
One Data Manipulation in SQL Developer 2 Introduction 3 Updating a record in Data 4 Updating a Primary Key in Data 6 Reverting Changes using Refresh 7 Updating a table with a trigger in Data 8 Deleting
More informationPL/SQL-TYCS. The 'Hello World' Example
PLSQL-TYCS In this chapter, we will discuss the Basic Syntax of PLSQL which is a block-structured language; this means that the PLSQL programs are divided and written in logical blocks of code. Each block
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 informationOracle Database: Introduction to SQL Ed 2
Oracle University Contact Us: +40 21 3678820 Oracle Database: Introduction to SQL Ed 2 Duration: 5 Days What you will learn This Oracle Database 12c: Introduction to SQL training helps you write subqueries,
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 informationData Definition Language (DDL)
Islamic University of Gaza Faculty of Engineering Computer Engineering Dept. Database Lab (ECOM 4113) Lab 6 Data Definition Language (DDL) Eng. Mohammed Alokshiya November 11, 2014 Database Keys A key
More information12. MS Access Tables, Relationships, and Queries
12. MS Access Tables, Relationships, and Queries 12.1 Creating Tables and Relationships Suppose we want to build a database to hold the information for computers (also refer to parts in the text) and suppliers
More informationUsing SQL with SQL Developer 18.1 Part II
One Data Manipulation in SQL Developer 2 - Introduction 3 - Updating a record in Data 4 - Updating a Primary Key in Data 6 - Reverting Changes using Refresh 7 - Updating a table with a trigger in Data
More informationOracle Developer Track Course Contents. Mr. Sandeep M Shinde. Oracle Application Techno-Functional Consultant
Oracle Developer Track Course Contents Sandeep M Shinde Oracle Application Techno-Functional Consultant 16 Years MNC Experience in India and USA Trainer Experience Summary:- Sandeep M Shinde is having
More informationnormalization are being violated o Apply the rule of Third Normal Form to resolve a violation in the model
Database Design Section1 - Introduction 1-1 Introduction to the Oracle Academy o Give examples of jobs, salaries, and opportunities that are possible by participating in the Academy. o Explain how your
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 informationSankalchand Patel College of Engineering, Visnagar B.E. Semester III (CE/IT) Database Management System Question Bank / Assignment
Sankalchand Patel College of Engineering, Visnagar B.E. Semester III (CE/IT) Database Management System Question Bank / Assignment Introductory concepts of DBMS 1. Explain detailed 3-level architecture
More informationEDUVITZ TECHNOLOGIES
EDUVITZ TECHNOLOGIES Oracle Course Overview Oracle Training Course Prerequisites Computer Fundamentals, Windows Operating System Basic knowledge of database can be much more useful Oracle Training Course
More informationOVERVIEW OF THE TYPES OF PL/SQL BLOCKS:
OVERVIEW OF THE TYPES OF PL/SQL BLOCKS: The P/L SQL blocks can be divided into two broad categories: Anonymous Block: The anonymous block is the simplest unit in PL/SQL. It is called anonymous block because
More information数据库系统概论讲义, 第 8 章编程 SQL,2015,3
数据库系统概论 An Introduction to Database Systems 第八章数据库编程 (ODBC, PL/SQL) 2016, 3, 29 Programmatic SQL Three types of programmatic SQL Embedded SQL statements ISO standard specifies embedded support for C, COBOL,
More informationOracle Development - Part III: Coding Standards
By Cheetah Solutions Editor s Note: In this final of a three-white-paper series on Oracle Custom Development, Cheetah Solutions tackles the issue of coding standards. In their concluding white paper, Cheetah
More informationPersistent Stored Modules (Stored Procedures) : PSM
1 Persistent Stored Modules (Stored Procedures) : PSM Stored Procedures What is stored procedure? SQL allows you to define procedures and functions and store them in the database server Executed by the
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 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 informationBasant Group of Institution
Basant Group of Institution Visual Basic 6.0 Objective Question Q.1 In the relational modes, cardinality is termed as: (A) Number of tuples. (B) Number of attributes. (C) Number of tables. (D) Number of
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 informationAppendix A Practices and Solutions
Appendix A Practices and Solutions Table of Contents Practices for Lesson 1... 3 Practice 1-1: Introduction... 4 Practice Solutions 1-1: Introduction... 7 Practices for Lesson 2... 19 Practice 2-1: PLSQL
More informationMahathma Gandhi University
Mahathma Gandhi University BSc Computer science III Semester BCS 303 OBJECTIVE TYPE QUESTIONS Choose the correct or best alternative in the following: Q.1 In the relational modes, cardinality is termed
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 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 informationMarwadi University Bachelor of Computer Application Semester II (w.e.f. July, 2016)
Learning Objectives: This course is intended to give students basic fundamental knowledge about RDBMS. This will give conceptual insight about how database design and implementation takes place. Also,
More informationWhen a database trigger routine does not have to take place before the triggering event, which timing should you assign to the trigger?
Page 1 of 80 Item: 1 (Ref:1z0-147e.9.2.4) When a database trigger routine does not have to take place before the triggering event, which timing should you assign to the trigger? nmlkj ON nmlkj OFF nmlkj
More informationD B M G. SQL language: basics. Managing tables. Creating a table Modifying table structure Deleting a table The data dictionary Data integrity
SQL language: basics Creating a table Modifying table structure Deleting a table The data dictionary Data integrity 2013 Politecnico di Torino 1 Creating a table Creating a table (1/3) The following SQL
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 informationOracle SQL & PL SQL Course
Oracle SQL & PL SQL Course Complete Practical & Real-time Training Job Support Complete Practical Real-Time Scenarios Resume Preparation Lab Access Training Highlights Placement Support Support Certification
More informationCOSC344 Database Theory and Applications. Lecture 11 Triggers
COSC344 Database Theory and Applications Lecture 11 Triggers COSC344 Lecture 11 1 Overview Last Lecture - PL/SQL This Lecture - Triggers - Source: Lecture notes, Oracle documentation Next Lecture - Java
More informationUsing SQL with SQL Developer 18.2
One Introduction to SQL 2 - Definition 3 - Usage of SQL 4 - What is SQL used for? 5 - Who uses SQL? 6 - Definition of a Database 7 - What is SQL Developer? 8 Two The SQL Developer Interface 9 - Introduction
More informationExact Numeric Data Types
SQL Server Notes for FYP SQL data type is an attribute that specifies type of data of any object. Each column, variable and expression has related data type in SQL. You would use these data types while
More informationIndex. Boolean expression, , Business rules enforcement. see Declarative constraints table with Oracle constraints and,
Index ABS numeric function, 355 Active State Perl, SQL*Plus with, 61 ADD_MONTHS, 360 AFTER DELETE ROW trigger, 202 AFTER DELETE STATEMENT trigger, 202 AFTER-INSERT-ROW (AIR) trigger, 172 174, 177, 179
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 information1) Introduction to SQL
1) Introduction to SQL a) Database language enables users to: i) Create the database and relation structure; ii) Perform insertion, modification and deletion of data from the relationship; and iii) Perform
More information