Oracle & SQL Introduction. Database Concepts Revision DB? DBMS? DB Application? Application Programs? DBS? Examples of DBS? Examples of DBMS? 2Oracle.

Slides:



Advertisements
Similar presentations
Basic SQL Introduction Presented by: Madhuri Bhogadi.
Advertisements

Virtual training week 4 structured query language (SQL)
Murach’s Java SE 6, C21© 2007, Mike Murach & Associates, Inc.Slide 1.
SQL This presentation will cover: A Brief History of DBMS View in database MySQL installation.
Structure Query Language (SQL) COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI.
Let’s try Oracle. Accessing Oracle The Oracle system, like the SQL Server system, is client / server. For SQL Server, –the client is the Query Analyser.
Introduction to Structured Query Language (SQL)
ASP.NET Database Connectivity I. 2 © UW Business School, University of Washington 2004 Outline Database Concepts SQL ASP.NET Database Connectivity.
A Guide to SQL, Seventh Edition. Objectives Understand the concepts and terminology associated with relational databases Create and run SQL commands in.
A Guide to MySQL 3. 2 Objectives Start MySQL and learn how to use the MySQL Reference Manual Create a database Change (activate) a database Create tables.
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
Your Oracle Account UserName is the same as your UWP username Followed Not case sensitive Initial Password: UWPstudent Password is case sensitive.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
Advance Computer Programming Java Database Connectivity (JDBC) – In order to connect a Java application to a database, you need to use a JDBC driver. –
Database Lecture # 1 By Ubaid Ullah.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
CPS120: Introduction to Computer Science Information Systems: Database Management Nell Dale John Lewis.
ASP.NET Programming with C# and SQL Server First Edition
Introduction. 
LOGO 1 Lab_02: Basic SQL. 2 Outline  Database Tables  SQL Statements  Semicolon after SQL Statements?  SQL DML and DDL  SQL SELECT Statement  SQL.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
 SQL stands for Structured Query Language.  SQL lets you access and manipulate databases.  SQL is an ANSI (American National Standards Institute) standard.
RDB/1 An introduction to RDBMS Objectives –To learn about the history and future direction of the SQL standard –To get an overall appreciation of a modern.
An introduction to SQL 1/21/2014 – See chapter 2.3 and 6.1 PostgreSQL -
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Introduction to SQL.
SQL Structured Query Language Programming Course.
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
1 Theory, Practice & Methodology of Relational Database Design and Programming Copyright © Ellis Cohen Introduction to Relational Databases &
SQL SQL Server : Overview SQL : Overview Types of SQL Database : Creation Tables : Creation & Manipulation Data : Creation & Manipulation Data : Retrieving.
DATA MANIPULATION andCONTROL
Copyright © Curt Hill SQL The Intergalactic Standard Database Query Language.
“INTRODUCTION TO DATABASE AND SQL”. Outlines 2  Introduction To Database  Database Concepts  Database Properties  What is Database Management System.
MySQL Database Connection
Quick review of SQL And conversion to Oracle SQL.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
SQL: Data Manipulation I Chapter 5 CIS 458 Sungchul Hong.
A Guide to MySQL 3. 2 Introduction  Structured Query Language (SQL): Popular and widely used language for retrieving and manipulating database data Developed.
SQL Unit – 2 Base Knowledge Presented By Mr. R.Aravindhan.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Information Building and Retrieval Using MySQL Track 3 : Basic Course in Database.
1 DBS201: Introduction to Structure Query Language (SQL) Lecture 1.
SQL Basics. What is SQL? SQL stands for Structured Query Language. SQL lets you access and manipulate databases.
SQL. คำสั่ง SQL SQL stands for Structured Query Language is a standard language for accessing and manipulating databases.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
SQL.. AN OVERVIEW lecture3 1. Overview of SQL 2  Query: allow questions to be asked of the data and display only the information required. It can include.
Oracle 11g: SQL Chapter 7 User Creation and Management.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 6 CGI/Perl and databases.
Relational Database Management System(RDBMS) Structured Query Language(SQL)
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
SQL. Originally developed by IBM Standardized in 80’s by ANSI and ISO Language to access relational database and English-like non-procedural Predominant.
Starting with Oracle SQL Plus. Today in the lab… Connect to SQL Plus – your schema. Set up two tables. Find the tables in the catalog. Insert four rows.
Chapter 3: Relational Databases
SQL Introduction to database and SQL. Chapter 1: Databases and Database Users 6 Introduction to Databases Databases touch all aspects of our lives. Examples:
7 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel 7.6 Advanced Select Queries SQL provides useful functions that.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
Understand Data Definition Language (DDL) Database Administration Fundamentals LESSON 1.4.
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
SQL SQL Ayshah I. Almugahwi Maryam J. Alkhalifa
3 A Guide to MySQL.
Web Systems & Technologies
Advanced Accounting Information Systems
Oracle & SQL Introduction
Introduction to Structured Query Language(SQL)
Structured Query Language (SQL) William Klingelsmith
SQL Queries Chapter No 3.
Data Model.
SQL .. An overview lecture3.
Introduction To Structured Query Language (SQL)
Lecuter-1.
Presentation transcript:

Oracle & SQL Introduction

Database Concepts Revision DB? DBMS? DB Application? Application Programs? DBS? Examples of DBS? Examples of DBMS? 2Oracle & SQL

Database Design Revision Steps in building a database for an application: 1. Analysis:  Understand real-world domain being captured. 2. Design:  Specify it using a database conceptual model (ER).  Translate specification to model of DBMS (Relational or tables). 3. Implementation (using DBMS):  Create schema using DBMS commands (DDL).  Load data (DML). 3Oracle & SQL

Relational Database  A relational database is a DB that stores the data in the form of tables/relations with rows and columns. Every table shares at least one column with another table (Relationships).  A table/Relation is the category of data, like Staff. The columns are information about the category (Attributes), like name or address and the rows are the actual data or records. Oracle & SQL4

Oracle  Oracle is a powerful relational database management system (RDBMS) that offers a large feature set.  Oracle is widely regarded as one of the popular full-featured database systems on the market today.  In almost all relational databases, data is accessed through Structured Query Language (SQL), and Oracle is one of them.  SQL is nonprocedural language that represents a combination of DDL and DML. Oracle & SQL5

Data Definition Language (DDL)  DDL is a descriptive language for defining the database schema.  Some of the main SQL-DDL commands are: CREATE TABLE ALTER TABLE DROP TABLE 6Oracle & SQL

Data Manipulation Language (DML)  DML is a language for retrieving and updating (insert, delete, & modify) the data in the DB.  The main SQL-DML commands are: SELECT INSERT INTO UPDATE DELETE FROM 7Oracle & SQL

Simple Queries Syntax: SELECT { * | column | column_expression [,…] } FROM table_name; Staff 8Oracle & SQL

Simple Queries Retrieve all columns & rows Example: Retrieve all staff information. SELECT sno, fname, lname, position, sex, dob, salary, bno FROM staff; OR SELECT * FROM staff; 9Oracle & SQL

Simple Queries Retrieve specific columns & all rows Example: List salaries of all staff, showing only the staff number, the full and last name, and salary. SELECT sno, fname, lname, salary FROM staff; 10Oracle & SQL

Simple Queries Row selection (WHERE clause) Syntax: SELECT { * | column | column_expression [,…] } FROM table_name WHERE condition; Comparison operators: =,, =, <> 11Oracle & SQL

Example: List all staff with a salary greater than 10,000. SELECT sno, fname, lname, salary FROM staff WHERE salary > 10000; 12Oracle & SQL Simple Queries Row selection (WHERE clause)

Demo Demo Oracle 10g (SQL worksheet)

Oracle & SQL14  From Start menu choose: All Programs  Oracle-OraClient10g_home1  Application Development  SQLPlus Worksheet.

Oracle & SQL15  A DOS window will open (Don't close it) and a login window.  In the login window type S then your serial# then _ then your lecture section# as the Username & password.  In the Service field type O10G then press OK.

Oracle & SQL16  The worksheet window will open. Make sure that “Connected” word is written in the lower panel.

Oracle & SQL17  Disconnect icon: connect/disconnect from server.  Execute icon: execute a SQL statement (as shown below).

Oracle & SQL18  Command History icon: show the SQL Command executed during this session.  Previous/Next Command icon: show the previous/Next SQL statement (Undo/ Redo).

Try your account and execute a simple query.