Lab Assignment 9 CIS 208A PL/SQL Programming and SQL
|
|
- Clement Henderson
- 6 years ago
- Views:
Transcription
1 Lab Assignment 9 CIS 208A PL/SQL Programming and SQL Section 9-1, Exercise #2, 3 2. Function full_name: A. Create a function called full_name. Pass two parameters to the function: an employee s last name and first name. The function should return the full name in the format: last name, comma and space, first name (for example: Smith, Joe). Save your code. B. Test your function from an anonymous block which uses a local variable to store and display the returned value. C. Modify your anonymous block from step B to remove the local variable declaration and call the function directly from within the DBMS_OUTPUT.PUT_LINE call. Test the block again. D. Now call the function from within a SQL SELECT statement. Execute a SQL statement (not a PL/SQL block) which displays the first_name, last_name and full name (using the function) of all employees in department 50. Your output should look like this: 3.. Function divide: A. Create a function called divide that accepts two numbers as input and returns the result of dividing the first number by the second number, rounded to two decimal places. Save your code.
2 B. Test your function twice from an anonymous block using input values (50,2) and (25,3). C. Test your function a third time using input values (16,0). What happens? D. Modify the function code to trap the ZERO_DIVIDE exception. The exception handler should return a value of zero from the function if ZERO_DIVIDE is raised. E. Test your function again using input values (16,0) as before. Now what happens? Section 9-2, Exercise #1, 2, 3 1. The questions in this Practice use partial copies of the employees and departments tables. Create these copies by executing the following SQL statements: CREATE TABLE f_emps AS SELECT employee_id, last_name, salary, department_id FROM employees; CREATE TABLE f_depts AS SELECT department_id, department_name FROM departments; 2. Function sal_increase A. Create and execute a function sal_increase using the following two code samples. The first creates a function that returns an employee s new salary if a percentage increase is granted. The second calls this function in a SELECT statement, using an increase of 5 percent. CREATE OR REPLACE FUNCTION sal_increase (p_salary f_emps.salary%type, p_percent_incr NUMBER) RETURN NUMBER
3 IS RETURN (p_salary + (p_salary * p_percent_incr / 100)); END; SELECT last_name, salary, sal_increase(salary, 5) FROM f_emps; B. Now, suppose you want to see the same information in your SELECT statement, but only for those employees for whom the increased salary would be greater than Write and test two SELECT statements to do this. In the first, do NOT use your function. In the second, use your function. Use an increase of 5 percent. Which do you think is better, and why? 3. Functions: A. Name five places within a SQL statement where a function can be used. The first one has been done for you (think of four more). B. Modify your SELECT using the function from question 2B to ORDER the results by the increased salary in descending order, i.e., highest increased salary first. C. Examine the following SELECT statement that lists the total salaries in each department, for those departments whose total salary is greater than SELECT department_id, sum(salary) FROM f_emps GROUP BY department_id HAVING sum(salary) > 20000; Modify the statement so that it also lists the total salary in each department if a 5 percent increase is granted, and lists those departments whose increased total salary would be greater than Your modified statement should call the sal_increase function twice, once in the column_list and once in the HAVING clause. Test the modified statement.
4 Section 9-3, Exercise #1, 3 1. Which of the following statements are true: A) The Data Dictionary is a list of hard coded table names in all Oracle databases. B) The Data Dictionary can be updated by all users with SELECT statements. C) All users of an Oracle Database can see details of all tables in that database. D) The Data Dictionary is owned by the user called SYS. 3. Write and execute a SELECT statement that lists all the stored objects you have created in your account so far. The query should return the object name and type and its status. Order the output by type of object. Section 9-4, Exercise #1 A-E, 2, 3, 4 1. This question shows how exceptions are propagated. A. Execute the following two SQL statements to create a duplicate of the departments table, with department_id as the primary key. CREATE TABLE my_depts AS SELECT * FROM departments; ALTER TABLE my_depts ADD CONSTRAINT my_dept_id_pk PRIMARY KEY (department_id); B. Examine the following code. Create the procedure in Application Express. Save your work (you will need to modify the procedure code later). CREATE OR REPLACE PROCEDURE add_my_dept (p_dept_id IN VARCHAR2, p_dept_name IN VARCHAR2) IS INSERT INTO my_depts (department_id,department_name) VALUES (p_dept_id, p_dept_name); END add_my_dept; C. What do you think would happen if you execute this procedure to insert department_id 10 (which already exists)? Write and execute an anonymous block to test your theory. D. Modify your procedure to handle the exception in a generic WHEN OTHERS
5 exception handler. E. Now what do you think would happen if you execute this procedure for department_id 10 (which already exists)? Test it again as in step c. 2. Write and execute a SELECT statement to list the names of all the procedures you have created so far. 3. Delete the last procedure you created: outer_proc.. 4. Write and execute a SELECT statement to list the source code of your add_my_dept procedure. Make sure the lines of code are listed in the correct sequence. Section 9-5, Exercise #1, 2 1. If you wanted user SUSAN to be able to execute SELECT and all DML statements on your wf_countries table, what SQL statement would you execute to give her the required privileges? 2. Another user TOM creates a table called tomtab, and does not grant you any privileges on it. A. If you try to execute the following statement, will it work? INSERT INTO tom.tomtab (.) VALUES (..); B. Examine the following code. Now the INSERT statement has been included in a procedure which you have created. Will it work now? CREATE OR REPLACE PROCEDURE my_ins_proc IS INSERT into tom.tomtab (.) VALUES ( ); END;
6 C. TOM now executes the following statement: GRANT INSERT ON tomtab TO <your user name>; Will your my_ins_proc procedure work now? Why or why not? D. TOM now REVOKEs your INSERT privilege on tomtab. TOM then writes the following procedure. Which privilege must TOM grant to you to allow you to execute the procedure? With this privilege, will your INSERT work now? CREATE OR REPLACE PROCEDURE tom_ins_proc IS INSERT into tom.tomtab (.) VALUES ( ); END;
7 Section 9-6, Exercise #1, 2, 3, 4 The following questions illustrate how Definer s and Invoker s rights work. 1. The following two procedures have been created in an account called IACAD_SCHEMA, which also contains an emps table: CREATE OR REPLACE PROCEDURE show_emps_def (p_emp_id IN NUMBER) IS v_name emps.name%type; v_dept_id emps.department_id%type; v_dept_name emps.department_name%type; v_sal emps.salary%type; SELECT name, department_id, department_name, salary INTO v_name, v_dept_id, v_dept_name, v_sal FROM emps WHERE employee_id = p_emp_id; DBMS_OUTPUT.PUT_LINE('The employee details are: ' v_name ' ' v_dept_id ' ' v_dept_name ' ' v_sal); EXCEPTION WHEN no_data_found THEN DBMS_OUTPUT.PUT_LINE('No data found for employee id : ' p_emp_id '. Sorry, please enter another number and try again.'); END; CREATE OR REPLACE PROCEDURE show_emps_inv (p_emp_id IN NUMBER) AUTHID CURRENT_USER IS v_name emps.name%type; v_dept_id emps.department_id%type; v_dept_name emps.department_name%type; v_sal emps.salary%type; SELECT name, department_id, department_name, salary INTO v_name, v_dept_id, v_dept_name, v_sal FROM emps WHERE employee_id = p_emp_id; DBMS_OUTPUT.PUT_LINE('The employee details are: ' v_name ' ' v_dept_id ' ' v_dept_name ' ' v_sal); EXCEPTION WHEN no_data_found THEN DBMS_OUTPUT.PUT_LINE('No data found for employee id : '
8 END; p_emp_id '. Sorry, please enter another number and try again.'); A. DESCRIBE both procedures, to verify that you can see them in your account. Remember to prefix the procedure name with the schema name. B. Execute a SQL statement to try to select directly from the table used in the procedures. C. What are the differences between the two procedures? 2. Execute the first procedure (show_emps_def) with the following actual parameter value: employee_id = 100. What happens and why? 3.. Execute the first procedure again, this time with employee_id = 10. What happens and why? 4. Execute the second procedure (show_emps_inv) with employee_id = 100. What happens and why?
Database 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 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 informationOracle EXAM - 1Z Program with PL/SQL. Buy Full Product.
Oracle EXAM - 1Z0-147 Program with PL/SQL Buy Full Product http://www.examskey.com/1z0-147.html Examskey Oracle 1Z0-147 exam demo product is here for you to test the quality of the product. This Oracle
More informationOracle 1z z0-146 Oracle Database 11g: Advanced PL/SQL. Practice Test. Version QQ:
Oracle 1z0-146 1z0-146 Oracle Database 11g: Advanced PL/SQL Practice Test Version 1.1 QUESTION NO: 1 Which two types of metadata can be retrieved by using the various procedures in the DBMS_METADATA PL/SQL
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL 3-2 Objectives This lesson covers the following objectives: Recognize the SQL statements that can be directly included in a PL/SQL executable block Construct and execute
More informationIT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://
IT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://www.certqueen.com Exam : 1Z0-146 Title : Oracle database 11g:advanced pl/sql Version : Demo 1 / 9 1.The database instance was
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 informationAssignment 6. This lab should be performed under the Oracle Linux VM provided in the course.
Assignment 6 This assignment includes hands-on exercises in the Oracle VM. It has two Parts. Part 1 is SQL Injection Lab and Part 2 is Encryption Lab. Deliverables You will be submitting evidence that
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL 12-2 Objectives This lesson covers the following objectives: Identify the benefits of the NOCOPY hint and the DETERMINISTIC clause Create subprograms which use the NOCOPY
More informationBsc (Hons) Software Engineering. Examinations for / Semester 1. Resit Examinations for BSE/15A/FT & BSE/16A/FT
Bsc (Hons) Software Engineering Cohort: BSE/16B/FT Examinations for 2017-2018 / Semester 1 Resit Examinations for BSE/15A/FT & BSE/16A/FT MODULE: DATABASE APPLICATION DEVELOPMENT MODULE CODE: DBT2113C
More informationOracle MOOC: SQL Fundamentals
Week 4 Homework for Lesson 4 Homework is your chance to put what you've learned in this lesson into practice. This homework is not "graded" and you are encouraged to write additional code beyond what is
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 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 informationDUE: 9. Create a query that will return the average order total for all Global Fast Foods orders from January 1, 2002, to December 21, 2002.
CIS 207 Oracle - Database Programming and SQL HOMEWORK: # 10 DUE: Run the following queries in Oracle Application Express. Paste a copy of each query Into this word document below the questions or notepad.txt
More informationOracle Exam 1z0-144 Oracle Database 11g: Program with PL/SQL Version: 8.5 [ Total Questions: 103 ]
s@lm@n Oracle Exam 1z0-144 Oracle Database 11g: Program with PL/SQL Version: 8.5 [ Total Questions: 103 ] Question No : 1 What is the correct definition of the persistent state of a packaged variable?
More information1Z0-007 ineroduction to oracle9l:sql
ineroduction to oracle9l:sql Q&A DEMO Version Copyright (c) 2007 Chinatag LLC. All rights reserved. Important Note Please Read Carefully For demonstration purpose only, this free version Chinatag study
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 informationSQL and PL/SQL New Features in Oracle Database 12c Czinkóczki László
Siófok, 2014, HOUG 2014 SQL and PL/SQL New Features in Oracle Database 12c Czinkóczki László SQL New Features CREATE PLUGGABLE DATABASE CREATE TABLE and ALTER TABLE Enhancements Extended Data Types Temporal
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 informationSELF TEST. List the Capabilities of SQL SELECT Statements
98 SELF TEST The following questions will help you measure your understanding of the material presented in this chapter. Read all the choices carefully because there might be more than one correct answer.
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 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 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 information2. SQl is limited 4GL language. PL/SQL overcomes this limits, that the basic program logic can be combined with SQL statements.
Homework Week #1 1. 3GL PL/SQL YES SQL NO 4GL PL/SQL NO SQL YES Is proprietary to Oracle Corporation PL/SQL YES SQL NO Nonprocedural PL/SQL NO SQL YES Procedural PL/SQL YES SQL NO Is ANSI-compliant 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 informationOracle 1Z Oracle Database 11g SQL Fundamentals I. Download Full Version :
Oracle 1Z1-051 Oracle Database 11g SQL Fundamentals I Download Full Version : https://killexams.com/pass4sure/exam-detail/1z1-051 QUESTION: 238 You need to perform these tasks: - Create and assign a MANAGER
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL 3-3 Objectives This lesson covers the following objectives: Construct and execute PL/SQL statements that manipulate data with DML statements Describe when to use implicit
More informationSQL IN PL/SQL. In this chapter, you will learn about: Making Use of DML in PL/SQL Page 68 Making Use of Savepoint Page 77
CHAPTER 4 SQL IN PL/SQL CHAPTER OBJECTIVES In this chapter, you will learn about: Making Use of DML in PL/SQL Page 68 Making Use of Savepoint Page 77 This chapter is a collection of some fundamental elements
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 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 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 10g Express
Oracle Database 10g Express This tutorial prepares the Oracle Database 10g Express Edition Developer to perform common development and administrative tasks of Oracle Database 10g Express Edition. Objectives
More informationDatabase Foundations. 6-4 Data Manipulation Language (DML) Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Database Foundations 6-4 Roadmap You are here Introduction to Oracle Application Express Structured Query Language (SQL) Data Definition Language (DDL) Data Manipulation Language (DML) Transaction Control
More informationRESTRICTING AND SORTING DATA
RESTRICTING AND SORTING DATA http://www.tutorialspoint.com/sql_certificate/restricting_and_sorting_data.htm Copyright tutorialspoint.com The essential capabilities of SELECT statement are Selection, Projection
More informationCreating Other Schema Objects
Creating Other Schema Objects Objectives After completing this lesson, you should be able to do the following: Create simple and complex views Retrieve data from views Database Objects Object Table View
More informationDatabase Programming with SQL
Database Programming with SQL 2-1 Objectives This lesson covers the following objectives: Apply the concatenation operator to link columns to other columns, arithmetic expressions, or constant values to
More informationOracle PLSQL Training Syllabus
Oracle PLSQL Training Syllabus Introduction Course Objectives Course Agenda Human Resources (HR) Schema Introduction to SQL Developer Introduction to PL/SQL PL/SQL Overview Benefits of PL/SQL Subprograms
More informationActual4Test. Actual4test - actual test exam dumps-pass for IT exams
Actual4Test http://www.actual4test.com Actual4test - actual test exam dumps-pass for IT exams Exam : 1z0-144 Title : Oracle Database 11g: Program with PL/SQL Vendor : Oracle Version : DEMO Get Latest &
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 informationExam Name: Oracle9i program with pl/sql Exam Type: Oracle Exam Code: 1Z0-147 Total Questions: 132
Question: 1 What can you do with the DBMS_LOB package? A - Use the DBMS_LOB WRITE procedure to write data to a BFILE. B - Use the DBMS_LOB.BFILENAME function to locate an external BFILE. C - Use the DBMS
More informationOracle Database SQL Basics
Oracle Database SQL Basics Kerepes Tamás, Webváltó Kft. tamas.kerepes@webvalto.hu 2015. február 26. Copyright 2004, Oracle. All rights reserved. SQL a history in brief The relational database stores data
More informationRetrieving Data Using the SQL SELECT Statement. Copyright 2004, Oracle. All rights reserved.
Retrieving Data Using the SQL SELECT Statement Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL 2-7 Objectives This lesson covers the following objectives: List examples of good programming practices Accurately insert comments into PL/SQL code Create PL/SQL code that
More informationOracle 1Z Oracle Database 12c: Advanced PL/SQL.
Oracle 1Z0-148 Oracle Database 12c: Advanced PL/SQL https://killexams.com/pass4sure/exam-detail/1z0-148 QUESTION: 67 Examine this Java method in class Employee, loaded into the Oracle database: Public
More informationSchool of Computing and Information Technology. Examination Paper Autumn Session 2017
School of Computing and Information Technology CSIT115 Data Management and Security Wollongong Campus Student to complete: Family name Other names Student number Table number Examination Paper Autumn Session
More information1Z0-147.v Number: 1Z0-147 Passing Score: 800 Time Limit: 120 min File Version:
1Z0-147.v12.47 Number: 1Z0-147 Passing Score: 800 Time Limit: 120 min File Version: 12.47 http://www.gratisexam.com/ Vendor: Oracle Exam Code: 1Z0-147 Exam Name: Program with PL/SQL Exam A QUESTION 1 Which
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL 5-6 Objectives This lesson covers the following objectives: Explain the need for using multiple cursors to produce multilevel reports Create PL/SQL code to declare and
More informationAn Introduction to Structured Query Language
An Introduction to Structured Query Language Alexandra Roatiş David R. Cheriton School of Computer Science University of Waterloo CS 348 Introduction to Database Management Winter 2016 CS 348 SQL Winter
More informationRDBMS Using Oracle. Use of IN OUT
RDBMS Using Oracle PL/SQL Procedural Language/Structural Query Language PL/SQL Procedures Kamran.Munir@niit.edu.pk Use of IN OUT Example: Format phone Procedure 1 Example: Format phone Procedure Input
More informationThree types of sub queries are supported in SQL are Scalar, Row and Table sub queries.
SQL Sub-Queries What are Sub queries? SQL Sub queries are the queries which are embedded inside another query. The embedded queries are called as INNER query & container query is called as OUTER query.
More informationPrepared by Manash Deb website: 1
S.Q.L. SQL means Structured Query Language. SQL is a database computer language designed for managing data in relational database management systems (RDBMS). RDBMS technology is based on the concept of
More informationDEFAULT Values, MERGE, and Multi-Table Inserts. Copyright 2009, Oracle. All rights reserved.
DEFAULT Values, MERGE, and Multi-Table Inserts What Will I Learn? In this lesson, you will learn to: Understand when to specify a DEFAULT value Construct and execute a MERGE statement Construct and execute
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 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 informationSchool of Computing and Information Technology Session: Spring CSCI835 Database Systems (Bridging Subject) Sample class test 23 July 2018
School of Computing and Information Technology Session: Spring 2018 University of Wollongong Lecturer: Janusz R. Getta CSCI835 Database Systems (Bridging Subject) Sample class test 23 July 2018 THE QUESTIONS
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 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 informationDatabase Programming with PL/SQL
Database Programming with PL/SQL 9-5 Objectives This lesson covers the following objectives: List and explain several object privileges Explain the function of the EXECUTE object privilege Write SQL statements
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 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 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 informationGIFT Department of Computing Science. CS-217/224: Database Systems. Lab-5 Manual. Displaying Data from Multiple Tables - SQL Joins
GIFT Department of Computing Science CS-217/224: Database Systems Lab-5 Manual Displaying Data from Multiple Tables - SQL Joins V3.0 5/5/2016 Introduction to Lab-5 This lab introduces students to selecting
More informationAppendix A Practices and Solutions
Appendix A Practices and Solutions Table of Contents Practices and Solutions for Lesson I... 3 Practice I-1: Accessing SQL Developer Resources... 4 Practice I-2: Using SQL Developer... 5 Practice Solutions
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 informationMonitoring and Resolving Lock Conflicts. Copyright 2004, Oracle. All rights reserved.
Monitoring and Resolving Lock Conflicts Objectives After completing this lesson you should be able to do the following: Detect and resolve lock conflicts Manage deadlocks Locks Prevent multiple sessions
More informationDenys Xavier denys org br) has a non-transferable license to use this Student Guide
D64250GC11 Edition 1.1 March 2012 D76392 Oracle Database: Develop PL/SQL Program Units Additional Practices Authors Prathima Trivedi Lauran Serhal Technical Contributors and Reviewers Diganta Choudhury
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 informationData Manipulation Language (DML)
In the name of Allah Islamic University of Gaza Faculty of Engineering Computer Engineering Department ECOM 4113 DataBase Lab Lab # 3 Data Manipulation Language (DML) El-masry 2013 Objective To be familiar
More informationOracle Database 12c: Program with PL/SQL Duration: 5 Days Method: Instructor-Led
Oracle Database 12c: Program with PL/SQL Duration: 5 Days Method: Instructor-Led Course Description This training starts with an introduction to PL/SQL and then explores the benefits of this powerful programming
More informationc. Invoke your procedure again, passing a job ID of ST_MAN and a job title of Stock Manager. What happens and why?
Practice 1 Note: You can find table descriptions and sample data in Appendix B, Table Descriptions and Data. Click the Save Script button to save your subprograms as.sql files in your local file system.
More informationORACLE TRAINING. ORACLE Training Course syllabus ORACLE SQL ORACLE PLSQL. Oracle SQL Training Syllabus
ORACLE TRAINING ORACLE Training Course syllabus ORACLE SQL ORACLE PLSQL Oracle SQL Training Syllabus Introduction to Oracle Database List the features of Oracle Database 11g Discuss the basic design, theoretical,
More informationManipulating Data. Copyright 2004, Oracle. All rights reserved.
Manipulating Data Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Describe each data manipulation language (DML) statement
More information1Z Oracle Database 11g - SQL Fundamentals I Exam Summary Syllabus Questions
1Z0-051 Oracle Database 11g - SQL Fundamentals I Exam Summary Syllabus Questions Table of Contents Introduction to 1Z0-051 Exam on Oracle Database 11g - SQL Fundamentals I 2 Oracle 1Z0-051 Certification
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 informationLimit Rows Selected. Copyright 2008, Oracle. All rights reserved.
What Will I Learn? In this lesson, you will learn to: Apply SQL syntax to restrict the rows returned from a query Demonstrate application of the WHERE clause syntax Explain why it is important, from a
More informationUsing DDL Statements to Create and Manage Tables. Copyright 2004, Oracle. All rights reserved.
Using DDL Statements to Create and Manage Tables Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Categorize the main database
More informationIntermediate SQL: Aggregated Data, Joins and Set Operators
Intermediate SQL: Aggregated Data, Joins and Set Operators Aggregated Data and Sorting Objectives After completing this lesson, you should be able to do the following: Identify the available group functions
More informationRETRIEVING DATA USING THE SQL SELECT STATEMENT
RETRIEVING DATA USING THE SQL SELECT STATEMENT Course Objectives List the capabilities of SQL SELECT statements Execute a basic SELECT statement Development Environments for SQL Lesson Agenda Basic SELECT
More informationStored Procedures in MYSQL
Stored Procedures in MYSQL Introduction A stored procedure or a function is a named Pl/SQL block which resides in the Database engine s tables. A stored procedure can be invoked by other procedure, triggers
More informationSQL STRUCTURED QUERY LANGUAGE
STRUCTURED QUERY LANGUAGE SQL Structured Query Language 4.1 Introduction Originally, SQL was called SEQUEL (for Structured English QUery Language) and implemented at IBM Research as the interface for an
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 informationUsing DDL Statements to Create and Manage Tables. Copyright 2004, Oracle. All rights reserved.
Using DDL Statements to Create and Manage Tables Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Categorize the main database
More informationchapter 2 G ETTING I NFORMATION FROM A TABLE
chapter 2 Chapter G ETTING I NFORMATION FROM A TABLE This chapter explains the basic technique for getting the information you want from a table when you do not want to make any changes to the data and
More informationDatabase Foundations. 6-9 Joining Tables Using JOIN. Copyright 2014, Oracle and/or its affiliates. All rights reserved.
Database Foundations 6-9 Roadmap Introduction to Oracle Application Express Structured Query Language (SQL) Data Definition Language (DDL) Data Manipulation Language (DML Transaction Control Language (TCL)
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 informationSQL Data Definition Language: Create and Change the Database Ray Lockwood
Introductory SQL SQL Data Definition Language: Create and Change the Database Pg 1 SQL Data Definition Language: Create and Change the Database Ray Lockwood Points: DDL statements create and alter the
More informationAssignment Grading Rubric
Final Project Outcomes addressed in this activity: Overview and Directions: 1. Create a new Empty Database called Final 2. CREATE TABLES The create table statements should work without errors, have the
More informationOracle TimesTen In-Memory Database
Oracle TimesTen In-Memory Database PL/SQL Developer's Guide 11g Release 2 (11.2.2) E21639-03 September 2012 Oracle TimesTen In-Memory Database PL/SQL Developer's Guide, 11g Release 2 (11.2.2) E21639-03
More informationOracle Database: Program with PL/SQL
Oracle University Contact Us: + 420 2 2143 8459 Oracle Database: Program with PL/SQL Duration: 5 Days What you will learn This Oracle Database: Program with PL/SQL training starts with an introduction
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 informationRestricting and Sorting Data. Copyright 2004, Oracle. All rights reserved.
Restricting and Sorting Data Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Limit the rows that are retrieved by a query Sort
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 informationOracle Database: Program with PL/SQL Ed 2
Oracle University Contact Us: +38 61 5888 820 Oracle Database: Program with PL/SQL Ed 2 Duration: 5 Days What you will learn This Oracle Database: Program with PL/SQL training starts with an introduction
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 informationSTRUCTURED QUERY LANGUAGE (SQL)
1 SQL STRUCTURED QUERY LANGUAGE (SQL) The first questions to ask are what is SQL and how do you use it with databases? SQL has 3 main roles: Creating a database and defining its structure Querying the
More informationDisplaying Data from Multiple Tables. Copyright 2004, Oracle. All rights reserved.
Displaying Data from Multiple Tables Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Write SELECT statements to access data
More informationWHAT IS SQL. Database query language, which can also: Define structure of data Modify data Specify security constraints
SQL KEREM GURBEY WHAT IS SQL Database query language, which can also: Define structure of data Modify data Specify security constraints DATA DEFINITION Data-definition language (DDL) provides commands
More informationOracle Database 12c R2: Program with PL/SQL Ed 2 Duration: 5 Days
Oracle Database 12c R2: Program with PL/SQL Ed 2 Duration: 5 Days This Database Program with PL/SQL training shows you how to develop stored procedures, functions, packages and database triggers. You'll
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 informationConditionally control code flow (loops, control structures). Create stored procedures and functions.
TEMARIO Oracle Database: Program with PL/SQL Ed 2 Duration: 5 Days What you will learn This Oracle Database: Program with PL/SQL training starts with an introduction to PL/SQL and then explores the benefits
More information