Today's schedule includes a syllabus review, a lecture recap, account creation for Oracle Live SQL, and a lab assignment focused on the CREATE TABLE SQL statement. Key concepts covered include database design phases, relational models, and basic Oracle datatypes. Students are required to save their SQL scripts and upload them for the lab assignment.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
13 views
Lab 01 Slides
Today's schedule includes a syllabus review, a lecture recap, account creation for Oracle Live SQL, and a lab assignment focused on the CREATE TABLE SQL statement. Key concepts covered include database design phases, relational models, and basic Oracle datatypes. Students are required to save their SQL scripts and upload them for the lab assignment.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13
Today’s Schedule
Syllabus and Policy: 10 minutes
Review of Lecture: 10 minutes Create an Oracle Live SQL account: 5 minutes CREATE TABLE statement: 10 minutes Lab assignment: 30 minutes Syllabus and Policy Watch video lecture before Wednesday’s meeting Wewill work on exercises using the knowledge from the lecture Review of Lecture 1 A database is collection of related data. A Database System is both the DBMS and data together Phases of Database Design Requirement specification and analysis Conceptual design phase Entity-Relationship (ER) Model Logical design phase Expressing in a DBMS data model (e.g., relational model) Physical design phase Further specifications (e.g., access paths) Review of Lecture 1 (continued) Most successful database models Relational model (old) This course NoSQL model (new) Some other courses Key properties of relational model ER/EER Modeling Relational algebra is the mathematical foundation for Data and relationship representation Querying (SQL) Create an Oracle Live SQL account Go to https://livesql.oracle.com Create an account Remember the username and password
Note:Save all the SQL scripts
(statements) on your local computer Scripts created for in-class exercise Script created for homework and project SQL Statement: CREATE TABLE Inrelational model, data entity is modeled as a relation (table), which could be viewed in tabular format SQL Statement: CREATE TABLE (continued) Simple syntax of CREATE TABLE statement Example: Create Table Persons (simple syntax) SQL Statement: CREATE TABLE (continued) General syntax of CREATE TABLE statement Example: Create Table persons (general syntax) Example: Create Table persons (demo) CREATE TABLE persons( person_id integer PRIMARY KEY, first_name VARCHAR2(50) NOT NULL, script last_name VARCHAR2(50) NOT NULL, age integer )
schema BASIC Oracle Datatypes
Datatype Description Example
CHAR (length) Fixed-length characters CHAR (1)
VARCHAR2 (length) Variable-length VARCHAR2 (40)
characters Numeric types INTEGER DOUBLE PRECISION FLOAT REAL DATE Default format is a string ‘07-JUL-1776’ (DD-MON-YYYY) TIMESTAMP Combined DATE and '04-JUL-2021 09-30-00 TIME AM' Lab Assignment Saveyour sql statements in one file Lab01.sql Upload it through canvas Save it to your local computer We will use it later