MONASH UNIVERSITY. Faculty of Information Technology

Save this PDF as:
 WORD  PNG  TXT  JPG

Size: px
Start display at page:

Download "MONASH UNIVERSITY. Faculty of Information Technology"

Transcription

1 CSE2132/CSE Tutorial 1 Database Concept Exercises TOPICS - Database Concepts; Introduction to Oracle Part 1 (To be done in the students own time then discussed in class if necessary.) Hoffer,Prescott and McFadden Chapter 1 Review Questions 1,2,3,4,8 Part2 - Use of Oracle During the first tutorial students are required to log in to the computer and invoke the database management system Oracle. The following steps are to be carried out. 1. Students must first connect to the network. 2. Choose Programs from the start menu. 3. Choose Development. 4. This will show them choices for Oracle and Gershwin and students should choose Oracle. 5. This will show a number of choices and students should choose Oracle- Orahome This will show a number of choices and students should choose Application Development. 7. This will show a number of choices and students should choose either SQLPlus or SQLPlus worksheet(recommended). If students choose SQLPlus Worksheet they will then see a window requesting Username: enter s followed by their student number Password: initially this is student Service: Enter CSE2132 which is the database name They will then be able to enter SQL commands and execute them by clicking on the lightning bolt icon. If students choose SQLPlus they will see a window requesting Username: enter s followed by their student number Password: initially this is student Host String: Enter CSE2132 They will then be able to enter SQL Plus commands via command line mode, which can be a little tedious.

2 6. Changing Passwords In SQL Worksheet the command to change a password is alter user username identified by newpassword; In SQL Plus 8.0 the commands to change a password are as above and also the command password which then causes the user to be prompted for the old password, the new password and a confirmation of the new password. 7. Either from the SQL command line or within the SQL worksheet try some of the following commands which look at some of the tables in the Oracle Data Dictionary. SELECT TABLE_NAME, COMMENTS FROM DICT; The next command selects all the rows in a table called EMP which is owned by the user called LECTURER SELECT * FROM LECTURER.EMP; The next command attempts to delete the rows in the table EMP but it fails as the table is not owned by the student.(note the error message) DELETE FROM LECTURER.EMP WHERE ENO=7369; The next command shows all columns and all rows in USER_TABLES. (Students may not have any tables yet. SELECT * FROM USER_TABLES; (TABS is a synonym for USER_TABLES) It is possible to see the structure of a table with the DESCRIBE command eg. DESCRIBE USER_TABLES; You could then enter individual column names eg. SELECT table_name, num_rows FROM USER_TABLES; Students should explore the tables using these simple commands to familiarize themselves with the Oracle Data Dictionary.

3 CSE2132/CSE Tutorial 2 Relational Data Model TOPICS - Relational Data Model, SQL Data Definition Part 1 (To be done in the students own time then discussed in class if necessary.) Hoffer,Prescott and McFadden Chapter 2 Review Questions 2,3,10,11,15 Hoffer,Prescott and McFadden Chapter 5 Review Questions 4,5,13,14 Part 2 The aim of this exercise is to create tables, add some data, modify that data, perform some simple retrieval and finally remove any temporary tables. The situation we wish to represent is that of students enrolled in classes. For each student we need to store student number, name, street address, suburb, enrolment date and up to 8 subject codes. Each subject is described by a subject code, subject name, semester that it is run in and the teacher's name. The required relations (in third normal form) are SUBJECT (subcode, subname, semester, teacher) STUDENT (sno, sname, street, suburb, enrol_date) CLASS (subcode, sno) Decide on the datatype for each attribute (Oracle datatypes include char(w), varchar2(w), number, number(w), number(w,d), date and long). The following is some sample subject data. Make up at least 6 sample student records and their corresponding class enrolment. CODE NAME SEM TEACHER CSE1130 Computer systems 1 Brown CSE1140 Operating systems 2 Black CSE2138 Database Systems 1 White CSE3000 Database Design 1 Green EXERCISES. 1. Use the Create Table statement to define the tables above. CREATE TABLE tablename (columnname datatype{,columnname datatype}) 2. Use the Insert command to add data to the defined tables. For example, INSERT INTO SUBJECT (subcode,subname,sem,teacher) VALUES('CSE1130', 'Computer Systems',1,'Brown') etc for other values. It is recommended to save these commands to an edit file so they can be easily executed again if need be.

4 3. Once data is in the database we may retrieve all or part of it using the SELECT statement. For example to find out which students live in Caulfield, select sname from student where suburb = 'Caulfield' ; Find i) which subjects run in semester 1. ii) the student nos. of students enrolled in CSE2138. iii) students who live in Caulfield or Malvern. There are many forms and options for the select statement; more of them will be covered next week. 4. Once data is in the tables it may be altered using the UPDATE statement. For example to change the teacher for CSE1130 from Brown to Grey update subject set teacher = 'Grey' where subcode = 'CSE1130' ; i) change the subject description of CSE1130 to "Introduction to Computers" ii) change the suburb of students who live in Caulfield to Caulfield Heights. 5. One of the useful features of Oracle is the DESCRIBE command. The DESCRIBE command displays a specified tables definition which includes column names and data types. It may be abbreviated to DESC. e.g. DESC SUBJECT; Check the definition of all the tables you have created. 6. A number of tables are maintained by Oracle to record data about data ie.metadata. One such table is USER_TABLES another is ALL_TABLES ; They are used to record what tables are belong to the user and what tables exist in the current database. Use a select statement to find out which tables belong to you. You would expect that the three tables created above are there among a large number of data dictionary tables. 7. Finally, data may also be deleted from tables when it is no longer needed. This may be done one row at a time or for an entire table. For example to delete student Smith from the STUDENT table DELETE FROM STUDENT WHERE SNAME = 'Smith' ; Note i) All Smith's would be deleted. ii) This may cause referential integrity problems if Smith was actually enrolled in any subject. DROP TABLE tablename ; The above statement would delete an entire table. Remove all the tables that you have created. Use a SELECT on USER_TABLES to verify they are gone.

5 CSE2132/CSE Tutorial 3 SQL Data Manipulation TOPICS - SQL DML Part 1 (To be done in the students own time then discussed in class if necessary.) Hoffer,Prescott and McFadden Chapter 7 Review Questions 1,5,8,10,11,16 Part 2 Three tables have been created in the CSE2132/CSE9002 database that may be used for the following exercises. Their structure is as follows: EMP(eno, ename,jid,age, hiredate, salary, dno, mgr) DEPT(dno,dname,floor) JOB(jid,jtitle,lowsal,highsal) These tables have the following data: EMP Eno Ename Jid Age Hiredate Salary Dno Mgr 7369 Smith Dec Allen Feb Ward Feb Jones Apr Martin Sep Blake May Clark Jun Scott Jul King Nov Turner Sep Adams Jul James Dec Ford Dec Miller Jan DEPT Dno Dname Floor 10 Accounting Top 20 Research Basement 30 Sales Ground 40 Operations Second JOB Jid Jtitle Lowsal Highsal 1 President Manager Analyst Salesperson Clerk (Note that the table design could be improved - Age would be better stored as a birthdate.)

6 EXERCISES (Not necessarily in order of difficulty) To create the tables from the existing tables owned by the user called LECTURER perform the following steps:- i) Go into the SQL option of Oracle (using database CSE2132/CSE9002 ). ii) Type the following :- CREATE TABLE tablename AS SELECT * FROM lecturer.tablename iii) The new tables will be prefixed with your userid now so they can updated by you. Write and execute the necessary SQL statements to perform the following tasks. 1. List all employees whose name begins with 'A'. 2. Select all those employees who don't have a manager. 3. List employee name, number and salary for those employees who earn in the range 1200 to Give all the employees in the RESEARCH department a 10% pay rise. Verify that this has been done by listing all their details before and after the rise. 5. Create a view called OLDTIMERS of employees who were hired before (Hint: use the TO_DATE function.) 6. Find the number of CLERKS employed. Give it a descriptive heading. 7. Find the average salary for each job type and the number of people employed in each job. 8. List the employee names, number of years with the company and the DAY they were hired on. (Hint: need to use the first four date manipulation functions in appendix.) 9. List the yearly salaries for the Managers. 10.List the employees with the lowest and highest salary. 11.List full details of departments that don't have any employees. 12.Get the names and salaries of all the analysts earning more than 1200 who are based in department 20. Sort the answer by ascending name. 13. For each department, list its name and number together with the total salary paid to employees in that department. 14. List department names, their location and a list of all employees who work in the departments. 15. Get a list of all people who manage anyone else and the people they manage i.e. a series of pairs; order by manager name. 16. Find all the employees in department 20 who have a job that is the same as anyone in the accounting department.

7 Appendix: Date Functions and arithmetic SYSDATE gives the system date. TO_CHAR(date,format) see formats below TO_DATE(string,format) MONTHS_BETWEEN(date2,date1) gives date2-date1 in months(can be fractional months). ADD_MONTHS(date,count) adds count months to date e.g. ADD_MONTHS(hiredate,6) would give a date six months later. LAST _DAY(date) gives date of last day of month that date is in. NEXT_DAY(date,'day' gives the date of next day after date, where 'day' is 'Monday' and so on. GREATEST(date1,date2,date3,...) picks the latest date from a list of dates. LEAST(date1,date2,date3,...) picks the earliest date from a list of dates. Some Date Formats (used with TO_CHAR and TO_DATE) MM number of : 12 MON Three letter abbreviation of month: XXII MONTH Month fully spelled out: AUGUST DDD Number of days in year, since Jan1: 354 DD Number of days in month: 23 D Number days in week: 6 DY Three letter abbreviation of day: FRI DAY Day fully spelled out: FRIDAY YYYY Full four digit year: 1946 SYYYY Signed year, 1000 B.C = YYY Last three digits of year: 946 YY Last two digits of year: 46 Y Last digit of year: RR Last two digits of year relative from current date YEAR Year spelled out: NINETEEN-FORTY-SIX Q Number of quarter: 3 WW Number of weeks in year: 46 W Number of weeks in month: 3 HH Hours of day, always 1-12: 11 HH24 Hours of day, 24 hour clock...there are others.

8 CSE2132/CSE Tutorial 4 Conceptual Data Modeling Part 1 (To be done in the students own time then discussed in class if necessary except Problems and Exercises 4a,4c and 4d which can be done in the lab.) Hoffer,Prescott and McFadden Chapter 3 Review Questions 1,2,3,11,12,13,14 Problems and Exercises 3,4a,4c,4d (Use GERSHWIN to do the questions to gain exposure to an automated support tool in the lab.)

9 CSE2132/CSE Tutorial 5 Logical Database Design Part 1 (To be done in the students own time then discussed in class if necessary.) Hoffer,Prescott and McFadden Chapter 5 Review Questions 9,15 Hoffer,Prescott and McFadden Chapter 6 Review Questions 12,13,14 Part 2 The aim of the exercises is to have students go through the major steps of the database design lifecycle. It could be done manually but students are asked to employ GERSHWIN for some steps to gain exposure to an automated support tool. Consider the following ER diagram to support the University database (modified from Elmasri & Navathe Figure 12.10) You should enter the following into GERSHWIN as is without the foreign keys and linking tables(or associative entity) as they will be automatically generated when generate DSD(Data Structure Diagram) is chosen from the menu item:- Department(Dname,Doffice,Dphone) Subject(Subject_No,Subject_Name,Points) Student(Student_Number,Sname,Saddress) Also note that the relationship between Subject and Student has an attribute Grade Lecturer(Lecturer_Name,Position,Office,Phone) Prerequisites(Prereq_Subject_No) Also note that the relationship between Subject and Prerequisite is PE-WE relationship or at least can be represented in this way for the purposes of the exercise.(i.e. Parent Entity - Weak Entity relationship) It is possible that subjects may not belong to any Department. Prerequisites must belong to a Subject 500 Department 10 Prerequisites 120 Subject Student Lecturer

10 You are required to produce the following: 1. An entity-relationship diagram (similar to above) using the software called GERSHWIN - listing the primary keys, and cardinalities of the relations you produce. Also note that foreign keys need not be included as GERSHWIN inserts these automatically in the Data Structure Diagram. 2. A logical Data Structure Diagram generated by GERSHWIN. Note that the many to many relationship between subject and student will automatically be resolved by GERSHWIN. 3. Create table statements with appropriate data types (i.e. variable length columns and nulls). 4. Given the data volumes and processing needs given below, consider what changes you might make to the logical model in setting up the implementation model database, for example any derived data, introduced codes or redundancy. Departments - 10 Lecturers - 50 Students Subjects Prerequisites Most students enroll in approx. 24 subjects during their course. The administration want rapid access to the number of students enrolled in any subject. They require both ad hoc queries and regular reports on lecturers workloads ( total hours taught weekly). When enquiries are made on what students are doing a subject the student surname must be shown as well as the student number.

11 CSE2132/CSE Tutorial 6 Normalization Part 1 (To be done in the students own time then discussed in class if necessary.) Hoffer,Prescott and McFadden Chapter 5 Review Questions 1,2,3,6,7,8,11 Problems and Exercises 3,4,5

12 CSE2132/CSE Tutorial 7 Relational Integrity Rules TOPICS - Integrity ; Domains Part 1 (To be done in the students own time then discussed in class if necessary.) Hoffer,Prescott and McFadden Chapter 5 Review Question 12,18 Hoffer,Prescott and McFadden Chapter 8 Review Question 7,8 Part 2 1. Using the following attributes indicate the primary and foreign keys. Provide a list of create table statements for all the required tables. For each table include the SQL to enforce the primary and foreign key constraints(decide if the delete should be restricted or cascading, which are the only two options in Oracle). Use the Oracle syntax to show columns that should be not null(e.g. surname) and/or unique(e.g. dept_name). Also include a check constraint on a column (e.g. that dept_name is LAW or MEDICINE or SCIENCE) and a check constraint on a table (e.g. surname is different from first name). (Execute create tables statements for the following table structures in the labs) Lecturer(l_code char(3), l_surname char(15), first_name char(15), d_o_b date,) Subject(S_code char(4), subject_title char(20), l_code char(3)) Student(St_id char(10), surname char(15), first_name c(15), address char(20)) Student_enrolment(St_id char(10), s_code char(4), result char(20)) Enter some data and see the effect when the data does and does not conform to the constraints. 2. Write a trigger to raise an error if any attempt is made to update the result column in student_enrolment. Check that the trigger works by attempting the update.

13 Part 1 Questions MONASH UNIVERSITY Faculty Information Technology CSE2132/CSE Tutorial 8&9 PL/SQL 1. What are the advantages of using PL/ SQL? 2. The procedural and SQL staements in a PL/SQL block are processed by the SQL statement executor and the Procedural statement executor. Explain how this works in a client server environment and where the components reside. 3. What are 4 of the places (or vehicles) for the use of PL/SQL? What is the purpose of each? 4. What restrictions apply to the use of PL/SQL in triggers? 5. What is the difference between an Implicit and Explicit cursor?. 6. When is it appropriate to use explicit cursors, give an example? 7. State the steps involved in using explicit cursors. Part 2 In the Lab 1. Alter the table subject(created in week 7 tutorial) to add a column no_of_students. 2.Write a trigger to disallow more than 3 enrolments in a subjects which is checked when the table student_enrolment has an insert or update on it. 3.Check that it works. 4.Issue the following command. ALTER TRIGGER triggername DISABLE; Check it's effect. Then issue an ENABLE ALTER TRIGGER triggername ENABLE; 5.Maintain the value of no_of_students as an additional task in the trigger.

14 Examples of Triggers with PL/SQL REM This file contains the trigger examples REM used in Chapter 5 of "Oracle PL/SQL Programming" by Scott Urman. The example following shows a Cursor FOR Loop which provides two important shortcuts for cursor processing. The record v_statsrecord is not declared in the declaritive section of the block. It is implicitly declared by the PL/SQL compiler. Secondly the cursor c_statistics is implicitly opened, fetched from, and closed by the loop. The type of this variable is c_statistics%rowtype. REM *** Chapter 5: Creating a Trigger *** CREATE OR REPLACE TRIGGER UpdateMajorStats /* Keeps the major_stats table up-to-date with changes made to the students table. */ AFTER INSERT OR DELETE OR UPDATE ON students DECLARE CURSOR c_statistics IS SELECT major, COUNT(*) total_students, SUM(current_credits) total_credits FROM students GROUP BY major; BEGIN /* Loop through each major. Attempt to update the statistics in major_stats corresponding to this major. If the row doesn't exist, create it. */ FOR v_statsrecord in c_statistics LOOP UPDATE major_stats SET total_credits = v_statsrecord.total_credits, total_students = v_statsrecord.total_students WHERE major = v_statsrecord.major; /* Check to see if the row exists. */ IF SQL%NOTFOUND THEN INSERT INTO major_stats (major, total_credits, total_students) VALUES (v_statsrecord.major, v_statsrecord.total_credits, v_statsrecord.total_students); END IF; END LOOP; END UpdateMajorStats;

15 /

16 CSE2132/CSE Tutorial 10 Underlying Data Structures - Oracle File Organizations Part 1 (To be done in the students own time then discussed in class if necessary.) Hoffer,Prescott and McFadden Chapter 6 Review Questions 1,2,3,4 Part 2 1. What is the difference between a file organization and an access method? 2. What are the basic types of file organizations? Do the available Oracle file structures correspond to any of these? 3. You are developing a project which requires the storage of data as an indexed file, but the only file handling facilities are sequential and relative. Your decision then is to use a serially-loaded relative file as the data file with an index being built in the load program. In the first load run, the data and the order provided is:- 103,13,76,44,10,180,56,3,78,35,66,12,156,122,19 (a) show what the index would be after the load run if a binary tree is used for the index. Draw the index as a tree structure and also show how this would appear as a linear table in memory e.g. Drawn as a tree The same thing as a linear table (which is how it is really stored in memory) RRN Leftpointer Key Rightpointer null 2 null null 76 null (b) On reflection you decide to use the B+Tree model to store the index and to store 3 key values at each node. Show how the index would appear at the end of the load run. Illustrate as a tree structure only (it would have to be implemented as a linear table index). (c) Having stabilized on the B+ tree index, the next load run present the values 14,15,101,102 and 103 to be added. What is the effect of this on the index.? What safeguards would be necessary in the load program?

17 CSE2132/CSE Tutorial 11 Indexes Part 1 (To be done in the students own time then discussed in class if necessary.) Hoffer,Prescott and McFadden Chapter 6 Review Questions 16,18,19 Problems and Exercises 10,11 Part 2 Consider the following relations (from week 7) to support the University database 1. Given the data volumes and processing needs given below. What indexes and or clusters would be helpful? Should the indexes be btree or bitmap types? Should the clusters be indexed or hash type.? Justify your decisions. Write the CREATE INDEX/CREATE TABLE and CREATE CLUSTER statements to implement your choices in Oracle. (When in the lab enter these statements into Oracle) Nb: Two new attributes have been included; short_course(y/n) and hours_week. Lecturer(L_code c3, l_surname c20, first_name c20, d_o_b date) Subject(S_code c4, subject_title c20, l_code c3, hours_week c2) Student(St_id c10, surname c20, first_name c20, address c30,short_course(y/n) c1) Student_enrolment(St_id c10, S_code c4, result c2) Lecturers - 50 Students Subjects Most students enrol in approx 24 subjects during their course. The administration want rapid access to the number of students enrolled in any subject. They require both adhoc queries and regular reports on lecturers workloads (total hours taught weekly). They also need to know whether a particular student is enrolled in a short course or degree course. Before enrolling students into a subject the admin people use an online system to check whether or not a particular student has failed the subject previously - previous fails may lead to exclusion. n.b.[the administration is due for an equipment upgrade but until they get it, storage space is at a premium.] 2. Calculate the approximate Table and Index file sizes for each of the indexes you have identified above. For the indexes assume the index entries consist of the primary key plus a 9 byte row identifier and one entry per row.

18 CSE2132/CSE Tutorial 12 Distributed Database Tutorial Part 1 (To be done in the students own time then discussed in class if necessary.) Hoffer,Prescott and McFadden Chapter 13 Review Questions 1a,b,e,2,4,5,6,7,8,9 Problems and Exercises 1,4

Database implementation Introduction to SQL

Database implementation Introduction to SQL IRU SEMESTER 2 January 2010 Semester 1 Session 1 Database implementation Introduction to SQL Objectives To be able to connect to the local ORACLE database To be able to describe the component parts of

More information

SQL: Update 2/11/2008. USC - CSCI585 - Spring Farnoush Banaei-Kashani

SQL: Update 2/11/2008. USC - CSCI585 - Spring Farnoush Banaei-Kashani SQL: Update 1 Example Schema Dept (DeptNo, Name, Location) Emp (EmpNo, Name, Job, Sal, Comm, HireDate, Mgr, DeptNo) Dept DeptNo Name Location Number(2) Varchar2(14) Varchar2(13) Emp EmpNo Name Job Sal

More information

SQL DML. Session 6 (CSCI-585) Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1

SQL DML. Session 6 (CSCI-585) Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 SQL DML Session 6 (CSCI-585) Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Dept (DeptNo, Name, Location) Example Schema Emp (EmpNo, Name, Job, Sal, Comm, HireDate, Mgr, DeptNo) Dept

More information

Data vs. Information. Data vs. Information. Where We Are. FIT1004 Database Topic 1: Introduction

Data vs. Information. Data vs. Information. Where We Are. FIT1004 Database Topic 1: Introduction FIT1004 Database Topic 1: Introduction Learning Objectives: Data, Database, DBMS Understand the motivation for the Database Approach The Database System Environment Objectives of Database Technology DBMS

More information

Chapter 2. Restricting and Sorting Data

Chapter 2. Restricting and Sorting Data Chapter 2 Restricting and Sorting Data 1 Objectives After completing this lesson, you should be able to do the following: Limit the rows retrieved by a query Sort the rows retrieved by a query Lesson Aim

More information

Limiting Rows Using a Selection

Limiting Rows Using a Selection Limiting Rows Using a Selection EMP EMPNO ENAME JOB... DEPTNO 7839 KING PRESIDENT 10 7698 BLAKE MANAGER 30 7782 CLARK MANAGER 10 7566 JONES MANAGER 20... EMP EMPNO ENAME JOB retrieve all employees in department

More information

Introduction to the Relational Model and SQL

Introduction to the Relational Model and SQL Introduction to the Relational Model and SQL 61 After completing this chapter, you should be able to: explain basic notions of the relational model: table/relation, row/tuple, column/attribute, column

More information

Introduction to the Relational Model and SQL

Introduction to the Relational Model and SQL Introduction to the Relational Model and SQL 69 After completing this chapter, you should be able to: explain basic notions of the relational model: table/relation, row/tuple, column/attribute, column

More information

Downloaded from

Downloaded from Table EMP 1. Insert a record with suitable data in the table emp, having emp as the Hiredate. SQL> insert into emp values (3008,18,'Xavier', 7782, sysdate, 3250, NULL, 20); 2. Write a statement to show

More information

DEPARTMENT OF COMPUTER SCIENCE

DEPARTMENT OF COMPUTER SCIENCE DEPARTMENT OF COMPUTER SCIENCE Topic :SQL EMP Empno Ename Job Mgr Hiredate Sal Comm. Deptno 7839 King President 17-nov-81 5000 10 7698 Blake Manager 7839 01-may-81 2850 30 7782 Clark Manager 7839 09-jun-81

More information

IRU (Information Retrieval and Use) Module Handbook

IRU (Information Retrieval and Use) Module Handbook IRU (Information Retrieval and Use) Module Handbook 2009-2010 Contents Book list Module Specification Schedule Connecting to SQL Changing your password Creating the EMP and DEPT tables Exercises Book List

More information

Oracle Database: SQL and PL/SQL Fundamentals NEW

Oracle Database: SQL and PL/SQL Fundamentals NEW Oracle University Contact Us: + 38516306373 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

More information

Oracle Database: SQL and PL/SQL Fundamentals

Oracle Database: SQL and PL/SQL Fundamentals Oracle University Contact Us: 1.800.529.0165 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This course is designed to deliver the fundamentals of SQL and PL/SQL along

More information

Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB

Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB Outline Database concepts Conceptual Design Logical Design Communicating with the RDBMS 2 Some concepts Database: an

More information

List of Practical Exercises (ORACLE)

List of Practical Exercises (ORACLE) ASSIGNMENT Batch : 2010-12 Session : 2011-12 Programme: MBA Semester : III/IV Course Code : MS-251 Course Title : DBMS Lab List of Practical Exercises (ORACLE) (Set 1) Note: Consider the EMP and DEPT tables

More information

Oracle Database 12c: Introduction to SQL Ed 1.1

Oracle Database 12c: Introduction to SQL Ed 1.1 Oracle University Contact Us: 1.800.529.0165 Oracle Database 12c: Introduction to SQL Ed 1.1 Duration: 5 Days What you will learn This Oracle Database: Introduction to SQL training helps you write subqueries,

More information

Oracle 10g PL/SQL Training

Oracle 10g PL/SQL Training Oracle 10g PL/SQL Training Course Number: ORCL PS01 Length: 3 Day(s) Certification Exam This course will help you prepare for the following exams: 1Z0 042 1Z0 043 Course Overview PL/SQL is Oracle's Procedural

More information

DBMS LAB MANUAL PREPARED BY JAGRUTI SAVE

DBMS LAB MANUAL PREPARED BY JAGRUTI SAVE DBMS LAB MANUAL PREPARED BY JAGRUTI SAVE 1 EXPERIMENT NO: 1 AIM: Preparing an ER diagram for given database and Conversion from ER diagram to tables THEORY: Database : A Database is a collection of interrelated

More information

Chapter 1. Writing Basic. SQL Statements

Chapter 1. Writing Basic. SQL Statements Chapter 1 Writing Basic SQL Statements 1 Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement

More information

Oracle Database 12c R2: SQL and PL/SQL Fundamentals Ed 2 NEW

Oracle Database 12c R2: SQL and PL/SQL Fundamentals Ed 2 NEW Oracle University Contact Us: 0800 891 6502 Oracle Database 12c R2: SQL and PL/SQL Fundamentals Ed 2 NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training

More information

Oracle Database: SQL and PL/SQL Fundamentals

Oracle Database: SQL and PL/SQL Fundamentals Oracle University Contact Us: +966 12 739 894 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training is designed to

More information

Oracle SQL. Course Summary. Duration. Objectives

Oracle SQL. Course Summary. Duration. Objectives Oracle SQL Course Summary Identify the major structural components of the Oracle Database 11g Create reports of aggregated data Write SELECT statements that include queries Retrieve row and column data

More information

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 043 COMPUTER SCIENCE AND ENGINEERING Course Title Course Code Regulation Course Structure Course Coordinator Team of Instructors

More information

SQL Development Using Oracle

SQL Development Using Oracle SQL Development Using Oracle Course Summary Identify the major structural components of the Oracle Database 11g Create reports of aggregated data Write SELECT statements that include queries Retrieve row

More information

Including Constraints Schedule: Timing Topic

Including Constraints Schedule: Timing Topic 10 Including Constraints Schedule: Timing Topic 45 minutes Lecture 25 minutes Practice 70 minutes Total Objectives After completing this lesson, you should be able to do the following: Describe constraints

More information

SQL Introduction Chapter 7, sections 1 & 4. Introduction to SQL. Introduction to SQL. Introduction to SQL

SQL Introduction Chapter 7, sections 1 & 4. Introduction to SQL. Introduction to SQL. Introduction to SQL SQL Introduction Chapter 7, sections 1 & 4 Objectives To understand Oracle s SQL client interface Understand the difference between commands to the interface and SQL language. To understand the Oracle

More information

There are five fields or columns, with names and types as shown above.

There are five fields or columns, with names and types as shown above. 3 THE RELATIONAL MODEL Exercise 3.1 Define the following terms: relation schema, relational database schema, domain, attribute, attribute domain, relation instance, relation cardinality, andrelation degree.

More information

Darshan Institute of Engineering & Technology PL_SQL

Darshan Institute of Engineering & Technology PL_SQL Explain the advantages of PL/SQL. Advantages of PL/SQL Block structure: PL/SQL consist of block of code, which can be nested within each other. Each block forms a unit of a task or a logical module. PL/SQL

More information

10. What SQL command can be used to add columns to a table? a. MODIFY TABLE TableName ADD COLUMN ColumnName b. MODIFY TABLE TableName ADD ColumnName c

10. What SQL command can be used to add columns to a table? a. MODIFY TABLE TableName ADD COLUMN ColumnName b. MODIFY TABLE TableName ADD ColumnName c 1. The first generation of DBMS is represented by systems a. Hierarchical and CODASYL systems. b. Relational model c. Network model 2. Which of the following SQL statements are helpful in database redesign?

More information

Oracle Database: Introduction to SQL

Oracle Database: Introduction to SQL Oracle University Contact Us: +381 11 2016811 Oracle Database: Introduction to SQL Duration: 5 Days What you will learn Understanding the basic concepts of relational databases ensure refined code by developers.

More information

<Course name> <Lesson number>-

<Course name> <Lesson number>- Objectives Creating Database Triggers After completing this lesson, you should be able to do the following: Describe database triggers and their use Create database triggers Describe database trigger firing

More information

ERM to Relational Model. Kathleen Durant CS 3200 Lesson 3

ERM to Relational Model. Kathleen Durant CS 3200 Lesson 3 ERM to Relational Model Kathleen Durant CS 3200 Lesson 3 Outline for today Review of fundamental ERM concepts Walk through the process of identifying the components of a entity relational model (ER) Introduce

More information

Oracle Database: Introduction to SQL

Oracle Database: Introduction to SQL Oracle University Contact Us: 1.800.529.0165 Oracle Database: Introduction to SQL Duration: 5 Days What you will learn View a newer version of this course This Oracle Database: Introduction to SQL training

More information

Developing SQL and PL/SQL with JDeveloper

Developing SQL and PL/SQL with JDeveloper Seite 1 von 23 Developing SQL and PL/SQL with JDeveloper Oracle JDeveloper 10g Preview Technologies used: SQL, PL/SQL An Oracle JDeveloper Tutorial September 2003 Content This tutorial walks through the

More information

Oracle Database: SQL and PL/SQL Fundamentals NEW

Oracle Database: SQL and PL/SQL Fundamentals NEW Oracle University Contact Us: 001-855-844-3881 & 001-800-514-06-97 Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals

More information

Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved.

Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved. Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement

More information

Scheme G. Sample Test Paper-I

Scheme G. Sample Test Paper-I Scheme G Sample Test Paper-I Course Name : Computer Engineering Group Course Code : CO/CM/IF/CD/CW Marks : 25 Hours: 1 Hrs. Q.1 Attempt Any THREE. 09 Marks a) List any six applications of DBMS. b) Define

More information

RESTRICTING AND SORTING DATA QUESTIONS

RESTRICTING AND SORTING DATA QUESTIONS RESTRICTING AND SORTING DATA QUESTIONS http://www.tutorialspoint.com/sql_certificate/restricting_and_sorting_data_questions.htm Copyright tutorialspoint.com 1. Which of the following clause is used to

More information

Dr. Philip Cannata Data Management 2

Dr. Philip Cannata Data Management 2 B-Tree Indexing Dr. Philip Cannata Data Management 2 Dr. Philip Cannata Data Management 3 Dr. Philip Cannata Data Management 4 emp table DDL CREATE TABLE "SCOTT"."EMP" ( "EMPNO" NUMBER(4,0) NOT NULL ENABLE,

More information

Producing Readable Output with SQL*Plus

Producing Readable Output with SQL*Plus Producing Readable Output with SQL*Plus Chapter 8 Objectives After completing this lesson, you should be able to do the following: Produce queries that require an input variable Customize the SQL*Plus

More information

IT2305 Database Systems I (Compulsory)

IT2305 Database Systems I (Compulsory) Database Systems I (Compulsory) INTRODUCTION This is one of the 4 modules designed for Semester 2 of Bachelor of Information Technology Degree program. CREDITS: 04 LEARNING OUTCOMES On completion of this

More information

Triggers & Packages. {INSERT [OR] UPDATE [OR] DELETE}: This specifies the DML operation.

Triggers & Packages. {INSERT [OR] UPDATE [OR] DELETE}: This specifies the DML operation. Triggers & Packages An SQL trigger is a mechanism that automatically executes a specified PL/SQL block (referred to as the triggered action) when a triggering event occurs on the table. The triggering

More information

www.gr8ambitionz.com

www.gr8ambitionz.com Data Base Management Systems (DBMS) Study Material (Objective Type questions with Answers) Shared by Akhil Arora Powered by www. your A to Z competitive exam guide Database Objective type questions Q.1

More information

Oracle 11g PL/SQL training

Oracle 11g PL/SQL training Oracle 11g PL/SQL training Course Highlights This course introduces students to PL/SQL and helps them understand the benefits of this powerful programming language. Students learn to create PL/SQL blocks

More information

More advanced Selection queries

More advanced Selection queries More advanced Selection queries Ordering results ORDER BY In a table, the order of the records (rows) cannot be guaranteed in fact as records are added (to the bottom of the table) and deleted (from the

More information

Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff

Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff D80198GC10 Oracle Database 12c SQL and Fundamentals Summary Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff Level Professional Delivery Method Instructor-led

More information

IT2304: Database Systems 1 (DBS 1)

IT2304: Database Systems 1 (DBS 1) : Database Systems 1 (DBS 1) (Compulsory) 1. OUTLINE OF SYLLABUS Topic Minimum number of hours Introduction to DBMS 07 Relational Data Model 03 Data manipulation using Relational Algebra 06 Data manipulation

More information

Databases and BigData

Databases and BigData Eduardo Cunha de Almeida eduardo.almeida@uni.lu Outline of the course Introduction Database Systems (E. Almeida) Distributed Hash Tables and P2P (C. Cassagnes) NewSQL (D. Kim and J. Meira) NoSQL (D. Kim)

More information

SQL for Practical Records Using MySQL

SQL for Practical Records Using MySQL SQL for Practical Records Using MySQL 01. Create the following relations DEPT and EMP. On the basis of the two tables write SQL commands and their outputs: Relation : DEPT Deptno Dname Loc 10 ACCOUNTING

More information

Oracle Database 10g: Introduction to SQL

Oracle Database 10g: Introduction to SQL Oracle University Contact Us: 1.800.529.0165 Oracle Database 10g: Introduction to SQL Duration: 5 Days What you will learn This course offers students an introduction to Oracle Database 10g database technology.

More information

More advanced Selection queries

More advanced Selection queries More advanced Selection queries Ordering results ORDER BY In a table, the order of the records (rows) cannot be guaranteed in fact as records are added (to the bottom of the table) and deleted (from the

More information

Part 2: Introduction to the Relational Model and SQL

Part 2: Introduction to the Relational Model and SQL 2. Introduction to the Relational Model and SQL 2-1 Part 2: Introduction to the Relational Model and SQL References: Elmasri/Navathe: Fundamentals of Database Systems, 3rd Edition, 1999. Section 7.1, Relational

More information

Oracle Database 11g SQL

Oracle Database 11g SQL AO3 - Version: 2 19 June 2016 Oracle Database 11g SQL Oracle Database 11g SQL AO3 - Version: 2 3 days Course Description: This course provides the essential SQL skills that allow developers to write queries

More information

IT2305 Database Systems I (Compulsory)

IT2305 Database Systems I (Compulsory) Database Systems I (Compulsory) INTRODUCTION This is one of the 4 modules designed for Semester 2 of Bachelor of Information Technology Degree program. CREDITS: 04 LEARNING OUTCOMES On completion of this

More information

Restricting and Sorting Data. Copyright 2006, Oracle. All rights reserved.

Restricting and Sorting Data. Copyright 2006, Oracle. All rights reserved. Restricting and Sorting Data Objectives After completing this lesson, you should be able to do the following: Limit the rows that are retrieved by a query Sort the rows that are retrieved by a query Use

More information

Contents. Introduction to MySQL Create a table Specify keys and relations Empty and Drop tables. CSCU9Q5 Introduction to MySQL.

Contents. Introduction to MySQL Create a table Specify keys and relations Empty and Drop tables. CSCU9Q5 Introduction to MySQL. Contents CSCU9Q5 Introduction to MySQL Data Definition & Manipulation (Over ~two Lectures) Introduction to MySQL Create a table Specify keys and relations Empty and Drop tables 1 2 Introduction Online

More information

ORACLE SQL REVISION TOUR AND DATABASE FUNDAMENTALS

ORACLE SQL REVISION TOUR AND DATABASE FUNDAMENTALS ORACLE SQL REVISION TOUR AND DATABASE FUNDAMENTALS Q1. (a)define the term candidate key and foreign key with respect to database. (b) Define the term primary key and alternate key with respect to database.

More information

CURSORS AND TRIGGERS

CURSORS AND TRIGGERS CURSORS AND TRIGGERS Q1. a) What is a cursor? What types of cursors are supported in PL/SQL? Explain Cursor attributes. b) What is the purpose of cursor in PL/SQL? Name the types of cursors used in PL/SQL?

More information

Oracle Database 10g Express

Oracle 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 information

Instant SQL Programming

Instant SQL Programming Instant SQL Programming Joe Celko Wrox Press Ltd. INSTANT Table of Contents Introduction 1 What Can SQL Do for Me? 2 Who Should Use This Book? 2 How To Use This Book 3 What You Should Know 3 Conventions

More information

SQL Simple Queries. Chapter 3.1 V3.0. Copyright @ Napier University Dr Gordon Russell

SQL Simple Queries. Chapter 3.1 V3.0. Copyright @ Napier University Dr Gordon Russell SQL Simple Queries Chapter 3.1 V3.0 Copyright @ Napier University Dr Gordon Russell Introduction SQL is the Structured Query Language It is used to interact with the DBMS SQL can Create Schemas in the

More information

Handling Exceptions. Schedule: Timing Topic. 45 minutes Lecture 20 minutes Practice 65 minutes Total

Handling Exceptions. Schedule: Timing Topic. 45 minutes Lecture 20 minutes Practice 65 minutes Total 23 Handling Exceptions Copyright Oracle Corporation, 1999. All rights reserved. Schedule: Timing Topic 45 minutes Lecture 20 minutes Practice 65 minutes Total Objectives After completing this lesson, you

More information

Database Implementation: SQL Data Definition Language

Database Implementation: SQL Data Definition Language Database Systems Unit 5 Database Implementation: SQL Data Definition Language Learning Goals In this unit you will learn how to transfer a logical data model into a physical database, how to extend or

More information

Solutions Assignment 1

Solutions Assignment 1 Solutions Assignment 1 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 Display the contents of the DEPT, EMP and SALGRADE tables. [Check your results against the tables listed.] from Emp from dept from salgrade Display

More information

Oracle Database: Introduction to SQL

Oracle Database: Introduction to SQL Oracle University Contact Us: 1.800.529.0165 Oracle Database: Introduction to SQL Duration: 5 Days What you will learn View a newer version of this course It's important for developers to understand the

More information

Oracle Database: Introduction to SQL

Oracle Database: Introduction to SQL Oracle University Contact Us: 1.800.529.0165 Oracle Database: Introduction to SQL Duration: 5 Days What you will learn This Oracle Database: Introduction to SQL training teaches you how to write subqueries,

More information

Controlling User Access

Controlling User Access 13 Controlling User Access Copyright Oracle Corporation, 2001. All rights reserved. Schedule: Timing Topic 20 minutes Lecture 20 minutes Practice 40 minutes Total Objectives After completing this lesson,

More information

SQL Databases Course. by Applied Technology Research Center. This course provides training for MySQL, Oracle, SQL Server and PostgreSQL databases.

SQL Databases Course. by Applied Technology Research Center. This course provides training for MySQL, Oracle, SQL Server and PostgreSQL databases. SQL Databases Course by Applied Technology Research Center. 23 September 2015 This course provides training for MySQL, Oracle, SQL Server and PostgreSQL databases. Oracle Topics This Oracle Database: SQL

More information

Database Design and Programming with SQL: Part 2 Learning Objectives

Database Design and Programming with SQL: Part 2 Learning Objectives Database Design and Programming with SQL: Part 2 Learning Objectives This is the second portion of the Database Design and Programming with SQL course. In this portion, students implement their database

More information

Aveek Gupta, CISA. IPCC Paper 7A: Information Technology Chapter 2

Aveek Gupta, CISA. IPCC Paper 7A: Information Technology Chapter 2 Aveek Gupta, CISA IPCC Paper 7A: Information Technology Chapter 2 * DBMS/RDBMS 1 Administration 2 3 4 5 6 6 7 Models DML and DDL Data Dictionaries Distributed DataBases Object Oriented DataBases Client

More information

The Relational Model. Ramakrishnan&Gehrke, Chapter 3 CS4320 1

The Relational Model. Ramakrishnan&Gehrke, Chapter 3 CS4320 1 The Relational Model Ramakrishnan&Gehrke, Chapter 3 CS4320 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. Legacy systems in older models

More information

Question 1. Relational Data Model [17 marks] Question 2. SQL and Relational Algebra [31 marks]

Question 1. Relational Data Model [17 marks] Question 2. SQL and Relational Algebra [31 marks] EXAMINATIONS 2005 MID-YEAR COMP 302 Database Systems Time allowed: Instructions: 3 Hours Answer all questions. Make sure that your answers are clear and to the point. Write your answers in the spaces provided.

More information

Lecture 6. SQL, Logical DB Design

Lecture 6. SQL, Logical DB Design Lecture 6 SQL, Logical DB Design Relational Query Languages A major strength of the relational model: supports simple, powerful querying of data. Queries can be written intuitively, and the DBMS is responsible

More information

SQL*Plus. User s Guide and Reference. Release September 2000 Part No. A

SQL*Plus. User s Guide and Reference. Release September 2000 Part No. A SQL*Plus User s Guide and Reference Release 8.1.7 September 2000 Part No. A82950-01 SQL*Plus User s Guide and Reference, Release 8.1.7 Part No. A82950-01 Copyright 1996, 2000, Oracle Corporation. All rights

More information

The Relational Model. Why Study the Relational Model? Relational Database: Definitions

The Relational Model. Why Study the Relational Model? Relational Database: Definitions The Relational Model Database Management Systems, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Microsoft, Oracle, Sybase, etc. Legacy systems in

More information

Database Concepts 3.5

Database Concepts 3.5 Database Concepts 3.5 David M. Kroenke and David J. Auer THE ACCESS WORKBENCH Section 3 Working with Queries in Microsoft Access 2007, 2008, 2009 by Prentice Hall, David Kroenke, and David Auer In the

More information

Oracle For Beginners Page : 1

Oracle For Beginners Page : 1 Oracle For Beginners Page : 1 Chapter 22 OBJECT TYPES Introduction to object types Creating object type and object Using object type Creating methods Accessing objects using SQL Object Type Dependencies

More information

Managing Objects with Data Dictionary Views. Copyright 2006, Oracle. All rights reserved.

Managing Objects with Data Dictionary Views. Copyright 2006, Oracle. All rights reserved. Managing Objects with Data Dictionary Views Objectives After completing this lesson, you should be able to do the following: Use the data dictionary views to research data on your objects Query various

More information

Database Access from a Programming Language: Database Access from a Programming Language

Database Access from a Programming Language: Database Access from a Programming Language Database Access from a Programming Language: Java s JDBC Werner Nutt Introduction to Databases Free University of Bozen-Bolzano 2 Database Access from a Programming Language Two Approaches 1. Embedding

More information

Database Access from a Programming Language:

Database Access from a Programming Language: Database Access from a Programming Language: Java s JDBC Werner Nutt Introduction to Databases Free University of Bozen-Bolzano 2 Database Access from a Programming Language Two Approaches 1. Embedding

More information

The Relational Model. Why Study the Relational Model? Relational Database: Definitions. Chapter 3

The Relational Model. Why Study the Relational Model? Relational Database: Definitions. Chapter 3 The Relational Model Chapter 3 Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase,

More information

Topics Advanced PL/SQL, Integration with PROIV SuperLayer and use within Glovia

Topics Advanced PL/SQL, Integration with PROIV SuperLayer and use within Glovia Topics Advanced PL/SQL, Integration with PROIV SuperLayer and use within Glovia 1. SQL Review Single Row Functions Character Functions Date Functions Numeric Function Conversion Functions General Functions

More information

Appendix A Practices and Solutions

Appendix A Practices and Solutions Appendix A Practices and Solutions Table of Contents Practices for Lesson I... 3 Practice I-1: Introduction... 4 Practice Solutions I-1: Introduction... 5 Practices for Lesson 1... 11 Practice 1-1: Retrieving

More information

Elena Baralis, Silvia Chiusano Politecnico di Torino. Pag. 1. Physical Design. Phases of database design. Physical design: Inputs.

Elena Baralis, Silvia Chiusano Politecnico di Torino. Pag. 1. Physical Design. Phases of database design. Physical design: Inputs. Phases of database design Application requirements Conceptual design Database Management Systems Conceptual schema Logical design ER or UML Physical Design Relational tables Logical schema Physical design

More information

Database 10g Edition: All possible 10g features, either bundled or available at additional cost.

Database 10g Edition: All possible 10g features, either bundled or available at additional cost. Concepts Oracle Corporation offers a wide variety of products. The Oracle Database 10g, the product this exam focuses on, is the centerpiece of the Oracle product set. The "g" in "10g" stands for the Grid

More information

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC MyOra 3.0 SQL Tool for Oracle User Guide Jayam Systems, LLC Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL

More information

In This Lecture. SQL Data Definition SQL SQL. Notes. Non-Procedural Programming. Database Systems Lecture 5 Natasha Alechina

In This Lecture. SQL Data Definition SQL SQL. Notes. Non-Procedural Programming. Database Systems Lecture 5 Natasha Alechina This Lecture Database Systems Lecture 5 Natasha Alechina The language, the relational model, and E/R diagrams CREATE TABLE Columns Primary Keys Foreign Keys For more information Connolly and Begg chapter

More information

Mini User's Guide for SQL*Plus T. J. Teorey

Mini User's Guide for SQL*Plus T. J. Teorey Mini User's Guide for SQL*Plus T. J. Teorey Table of Contents Oracle/logging-in 1 Nested subqueries 5 SQL create table/naming rules 2 Complex functions 6 Update commands 3 Save a query/perm table 6 Select

More information

5.1 Database Schema. 5.1.1 Schema Generation in SQL

5.1 Database Schema. 5.1.1 Schema Generation in SQL 5.1 Database Schema The database schema is the complete model of the structure of the application domain (here: relational schema): relations names of attributes domains of attributes keys additional constraints

More information

SQL. Short introduction

SQL. Short introduction SQL Short introduction 1 Overview SQL, which stands for Structured Query Language, is used to communicate with a database. Through SQL one can create, manipulate, query and delete tables and contents.

More information

The Relational Model. Chapter 3. Comp 521 Files and Databases Fall

The Relational Model. Chapter 3. Comp 521 Files and Databases Fall The Relational Model Chapter 3 Comp 521 Files and Databases Fall 2010 1 Why Study the Relational Model? Most widely used model by industry. IBM, Informix, Microsoft, Oracle, Sybase, etc. It is simple,

More information

Hours / 100 Marks Seat No.

Hours / 100 Marks Seat No. 17332 14115 3 Hours / 100 Seat No. Instructions (1) All Questions are Compulsory. (2) Illustrate your answers with neat sketches wherever necessary. (3) Figures to the right indicate full marks. (4) Mobile

More information

Oracle Database: Program with PL/SQL

Oracle Database: Program with PL/SQL 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 to PL/SQL and then explores the benefits of this

More information

Setting up SQL Translation Framework OBE for Database 12cR1

Setting up SQL Translation Framework OBE for Database 12cR1 Setting up SQL Translation Framework OBE for Database 12cR1 Overview Purpose This tutorial shows you how to use have an environment ready to demo the new Oracle Database 12c feature, SQL Translation Framework,

More information

3.GETTING STARTED WITH ORACLE8i

3.GETTING STARTED WITH ORACLE8i Oracle For Beginners Page : 1 3.GETTING STARTED WITH ORACLE8i Creating a table Datatypes Displaying table definition using DESCRIBE Inserting rows into a table Selecting rows from a table Editing SQL buffer

More information

Developing Rich Web Applications with Oracle ADF and Oracle WebCenter Portal

Developing Rich Web Applications with Oracle ADF and Oracle WebCenter Portal JOIN TODAY Go to: www.oracle.com/technetwork/java OTN Developer Day Oracle Fusion Development Developing Rich Web Applications with Oracle ADF and Oracle WebCenter Portal Hands on Lab (last update, June

More information

BCA. Database Management System

BCA. Database Management System BCA IV Sem Database Management System Multiple choice questions 1. A Database Management System (DBMS) is A. Collection of interrelated data B. Collection of programs to access data C. Collection of data

More information

Uka Tarsadia University C. G. Patel Institute of Technology. Diploma. Semester 3 DATABASE MANAGEMENT SYSTEM-I

Uka Tarsadia University C. G. Patel Institute of Technology. Diploma. Semester 3 DATABASE MANAGEMENT SYSTEM-I C. G. Patel Institute of Technology Diploma Semester 3 020040305 DATABASE MANAGEMENT SYSTEM-I EFFECTIVE FROM July-2015 Syllabus version: 1.02 SEMESTER 3 (020040305) Credits: 3+1 (Theory + Tutorial) Contact

More information

EECS 647: Introduction to Database Systems

EECS 647: Introduction to Database Systems EECS 647: Introduction to Database Systems Instructor: Luke Huan Spring 2013 Administrative Take home background survey is due this coming Friday The grader of this course is Ms. Xiaoli Li and her email

More information

Programming with SQL

Programming with SQL Unit 43: Programming with SQL Learning Outcomes A candidate following a programme of learning leading to this unit will be able to: Create queries to retrieve information from relational databases using

More information