Oracle & SQL. Oracle Data Types Character Data Types: Char(2) Varchar (20) Clob: large character string as long as 4GB Bolb and bfile: large amount of.

Slides:



Advertisements
Similar presentations
9 Creating and Managing Tables. Objectives After completing this lesson, you should be able to do the following: Describe the main database objects Create.
Advertisements

Data Definition Language (DDL)
SQL Introduction Standard language for querying and manipulating data Structured Query Language Many standards out there: SQL92, SQL2, SQL3. Vendors support.
SQL Rohit Khokher.
Virtual training week 4 structured query language (SQL)
Structured Query Language - SQL Carol Wolf Computer Science.
A Guide to SQL, Seventh Edition. Objectives Create a new table from an existing table Change data using the UPDATE command Add new data using the INSERT.
Fall 2001Arthur Keller – CS 1808–1 Schedule Today Oct. 18 (TH) Schemas, Views. u Read Sections u Project Part 3 extended to Oct. 23 (T). Oct.
Winter 2002Arthur Keller – CS 1808–1 Schedule Today: Jan. 29 (T) u Modifications, Schemas, Views. u Read Sections Assignment 3 due. Jan. 31 (TH)
Structured query language This is a presentation by JOSEPH ESTRada on the beauty of Structured Query Language.
Introduction to Oracle9i: SQL1 Selected Single-Row Functions.
Chapter 3: Using SQL Queries to Insert, Update, Delete, and View Data
Murali Mani SQL DDL and Oracle utilities. Murali Mani Datatypes in SQL INT (or) INTEGER FLOAT (or) REAL DECIMAL (n, m) CHAR (n) VARCHAR (n) DATE, TIME.
Correlated Queries SELECT title FROM Movie AS Old WHERE year < ANY (SELECT year FROM Movie WHERE title = Old.title); Movie (title, year, director, length)
DATABASES AND SQL. Introduction Relation: Relation means table(data is arranged in rows and columns) Domain : A domain is a pool of values appearing in.
ORACLE ONLINE TRAINING Contact our Support Team : SOFTNSOL India: Skype id : softnsoltrainings id:
DBMS 3. course. Reminder Data independence: logical and physical Concurrent processing – Transaction – Deadlock – Rollback – Logging ER Diagrams.
Structured Query Language (SQL) A2 Teacher Up skilling LECTURE 2.
3-1 Copyright  Oracle Corporation, All rights reserved. SQL Functions FunctionInput arg 1 arg 2 arg n Function performs action OutputResultvalue.
Agenda Journalling More Embedded SQL. Journalling.
Introduction to Databases Chapter 6: Understanding the SQL Language.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 8 Advanced SQL.
HAP 709 – Healthcare Databases SQL Data Manipulation Language (DML) Updated Fall, 2009.
Chapter 10 Selected Single-Row Functions Oracle 10g: SQL.
Chapter 5 Selected Single-Row Functions. Chapter Objectives  Use the UPPER, LOWER, and INITCAP functions to change the case of field values and character.
Oracle Database Administration Lecture 3  Transactions  SQL Language: Additional information  SQL Language: Analytic Functions.
Oracle Database Administration
1 Structured Query Language (SQL). 2 Contents SQL – I SQL – II SQL – III SQL – IV.
Nitin Singh/AAO RTI ALLAHABAD 1 SQL Nitin Singh/AAO RTI ALLAHABAD 2 OBJECTIVES §What is SQL? §Types of SQL commands and their function §Query §Index.
Oracle 11g: SQL Chapter 10 Selected Single-Row Functions.
SQL. Relating Multiple Tables Relational Database Terminology Row PK Column FK Field NULL.
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
SCUHolliday - coen 1788–1 Schedule Today u Modifications, Schemas, Views. u Read Sections (except and 6.6.6) Next u Constraints. u Read.
Chapter 3 Selected Single-Row Functions and Advanced DML & DDL.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 8 Advanced SQL.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
IFS Intro to Data Management Chapter 5 Getting More Than Simple Columns.
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
INTRODUCTION TO SQL Chapter SELECT * FROM teacher WHERE INSTR (subject_id, ‘&1’)= 4 AND LOWER (subject_id) LIKE ‘HST%’ ; When prompted for the.
Introduction to Functions – Single Row Functions.
SQL Overview Structured Query Language
1 Announcements Reading for next week: Chapter 4 Your first homework will be assigned as soon as your database accounts have been set up.  Expect an .
1 CS 430 Database Theory Winter 2005 Lecture 10: Introduction to SQL.
DBMS 3. course. Reminder Data independence: logical and physical Concurrent processing – Transaction – Deadlock – Rollback – Logging ER Diagrams.
CS 111 – Nov. 8 Databases Database Management Systems (DBMS) Structured Query Language (SQL) Commitment –Please review sections 9.1 – 9.2.
Relational Database Management System(RDBMS) Structured Query Language(SQL)
SQL: Structured Query Language It enables to create and operate on relational databases, which are sets of related information stored in tables. It is.
 CONACT UC:  Magnific training   
Advanced Accounting Information Systems Day 12 Understanding the SQL Language September 21, 2009.
 Reviewing basic architecture concepts  Oracle 10g Architecture  Main features of 9i and 10g
1 ORACLE I 3 – SQL 1 Salim Phone: YM: talim_bansal.
Big Data Yuan Xue CS 292 Special topics on.
SQL SQL Ayshah I. Almugahwi Maryam J. Alkhalifa
SQL Query Getting to the data ……..
Introduction to SQL Karolina muszyńska
Oracle SQL.
Chapter 10 Selected Single-Row Functions Oracle 10g: SQL
Database Systems: Design, Implementation, and Management Tenth Edition
DATABASE SQL= Structure Query Language مبادئ قواعد بيانات
DATABASE MANAGEMENT SYSTEM
SQL data definition using Oracle
Database systems Lecture 3 – SQL + CRUD
SQL Fundamentals in Three Hours
Lecture 12: SQL Friday, October 20, 2000.
Index Note: A bolded number or letter refers to an entire lesson or appendix. A Adding Data Through a View ADD_MONTHS Function 03-22, 03-23,
Contents Preface I Introduction Lesson Objectives I-2
Database Systems: Design, Implementation, and Management Tenth Edition
SQL (Structured Query Language)
Presentation transcript:

Oracle & SQL

Oracle Data Types Character Data Types: Char(2) Varchar (20) Clob: large character string as long as 4GB Bolb and bfile: large amount of binary file Numeric Data Types: Number: used to store real numbers Binary float & binary double: to store data in a floating –point format Date and Time Data Types: Date: stores date & time Timestamp: stores time values that are precise to fractional seconds Conversion functions: TO_CHAR: floating number to a string TO_NUMBER: floating number or string to a number TO_DATE: character data to a DATE data type TO_TIMESTAMP:

SQL Statements Data Manipulation: SELECT INSERT DELETE UPDATE Data Definition: CREATE TABLE DROP TABLE ALTER TABLE CREATE VIEW DROP VIEW CREATE INDEX DROP INDEX CREATE SCHEME DROP SCHEME CREATE DOMAIN DROP DOMAIN Access Control: GRANT REVOKE

Transaction Control: COMMIT: Ends the current transaction ROLLBACK: Aborts the current transaction SET TRANSACTION: Define the data access char. Programmatic Control: DECLARE EXPLAIN OPEN FETCH CLOSE PREPARE EXECUTE DESCRIBE

Sql Operators Comparison operator: Between: tests whether a value is between a pair of value IN: test whether a value is in a list of values LIKE: Tests whether a value follows a certain pattern Logical Operator: AND, OR, NOT, GE, LE The set Operator: UNION: combines the result of more than one select statement after removing any duplicate rows NUION ALL: INTERSECTION: MINUS: returns the rows returned by the first query that aren’t in the second query’s result.

SQL Functions Single-Row Functions: CONCAT: puts together two or more character strings into one string LENGTH: length of character string LOWER: uppercase letter to lower case SUBSTR: part of string INSTR: number indicating where in a string a certain string value starts. REPLACE: Aggregate Functions: MIN MAX AVG SUM COUNT: total number of columns COUNT(*) : number of rows in a table Number & Date Functions: ROUND TRUNC TO_DATE