+ All Categories
Home > Documents > Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January...

Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January...

Date post: 19-Jan-2016
Category:
Upload: grant-hart
View: 243 times
Download: 0 times
Share this document with a friend
Popular Tags:
70
Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 COM M ONW EA LTH O F A U STRA LIA CopyrightRegulations1969 W ARNING Thism aterialhasbeen copied and com m unicated to you by oron behalfofThe U niversity ofSouthern Q ueensland pursuantto PartV A ofthe C opyright Act 1968 ( the A ct ). The m aterialin thiscom m unication m ay be subjectto copyrightunderthe A ct. A ny furthercopying or com m unication ofthism aterialby you m ay be the subject ofcopyrightprotection underthe A ct. D o notrem ove thisnotice. June 9, 2022 1
Transcript
Page 1: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATIONSemester 1, 2014 – LECTURE 2

COMMONWEALTH OF AUSTRALIA

Copyright Regulations 1969

WARNING

This material has been copied and communicated to you by or on behalf of The University of Southern Queensland pursuant to Part VA of the Copyright Act 1968 (the Act). The material in this communication may be subject to copyright under the Act. Any further copying or communication of this material by you may be the subject of copyright protection under the Act. Do not remove this notice.

April 21, 2023 1

Page 2: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

USAGE OF SLIDESUse of these lecture slides is restricted to teaching staff

and students enrolled in this course. All students who use these slides should have acquired the prescribed texts.

These slides are for the personal use of students on the Study Desk only.

Students should not copy slides, allow third parties access to the slides or distribute the slides.

Copyright of these slides vests in the university and, where applicable, Cengage Education

April 21, 2023 2

Page 3: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

VOLUME OF WORK• In this course, the first few weeks are relatively intense in

regards to readings, size of lecture, etc.• THIS ALLOWS you to build knowledge and skills quickly

giving you many weeks to work on practical problems• As the semester progresses, the amount of new material

introduced each week declines, HOWEVER…• Tutorial / practical work becomes progressively more

intense

April 21, 2023 3

Page 4: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

WEEKLY ONLINE QUIZ• A weekly online quiz will be made available on the Study

Desk• This will also familiarize you with the process of taking the

online test• Click on the link• Have a practice run after you studied the lecture and

tutorials

April 21, 2023 4

Page 5: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

ONLINE TEST• Released to the USQStudyDesk next week• Available until 23h55 on 24 March 2014• See Introductory Book for more detail• The following material will be examined:

Casteel, chapter 2 & 8• This test is worth FIVE PERCENT. Read the materials

attentively so you know where to look. It is not necessary to rote learn for this test. Practice is key!

April 21, 2023 5

Page 6: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

READINGS – WEEK 2• Study Book, Module 2 • Study Book, modules 9.1(optional)• Selected Readings 2.1 and 2.2 (Will be used for next 5/6

weeks)• Casteel, chapter 2• Casteel, chapter 8

April 21, 2023 6

Page 7: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Lecture 2 Objectives• Working with Oracle ISQLPLUS environment• Data Analysis and Modelling

• Data Models

• Data Model Concepts• Entities• Attributes• Data Associations (Relationships)• Cardinality• Business rules

• SQL WHERE Clause• ORDER BY Clause

April 21, 2023 7

Page 8: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

WORKING WITH ORACLE• Two interfaces – Oracle SQL Client Interface and Web

(HTML) interface• In the labs we will use the Web interface ISQLPLUS • Web interface is much more user friendly but has a few

disadvantages, e.g. some functionality is lost in formatting output

8

Page 9: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

iSQLPLUS (WEB INTERFACE) 1• We will use this utility in labs and you can use it from

home or anywhere as long as there is a good Internet connection

• Primary server:http://orastud-is1.usq.edu.au:5560/isqlplus/workspace.uix

• Reserve server:http://oradb-stud2.usq.edu.au:5560/isqlplus

Only use the reserve server if you have problems accessing the primary server. You will need to repeat any work already done in primary server, e.g. running table create scripts.

9

Page 10: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

iSQLPLUS 2

• You will get the ISQLPLUS login screen. Enter your username and password and the following host string if it is not already entered for you:

Primary server: student

Reserve server: student.usq.edu.au

Note: Details about your username and password are contained in Tutorial 1

10

Page 11: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

iSQLPLUS 3 (LOGIN SCREEN – RESERVE SERVER)

11

Page 12: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

iSQLPLUS 4• You will now be taken into the Oracle Web (HTML)

interface (see next slide). • Be careful while having more than one SQL statement

active at one time. When you have completed a statement, remove it (or click clear button) before starting with the next.

12

Page 13: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

iSQLPLUS 5

13

Page 14: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

iSQLPLUS 6In the workspace tab, you can:

•Enter SQL command and click on execute•Use <save script> to save OR cut and paste to Notepad ( not Word)•To load a script, click <load script> and then select the script file and click <load> in the right hand side.

14

Page 15: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

iSQLPLUS 7• The <History> tab allows you to retrieve previous SQL

statements that were executed.• The <Preferences> button at the top allows you to set

local (client) preferences – be careful not to change the default formatting options.

• You can CHANGE PASSWORD from the <Preferences> section.

15

Page 16: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

ISQLPLUS 8• When you write programs (especially longer programs

towards the end of semester) keep a running copy of your work in Notepad. Sometimes, the connection goes down

• Copying from Word to ISQLPLUS sometimes causes problems, especially with the quotes.

16

Page 17: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

ISQLPLUS 9• Always click on <logout> icon at the top to finish your

session. REMEMBER THIS!! Don’t just close the browser.

17

Page 18: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Data Analysis and Modelling• We use the key elements of the Finkelstein approach for

data analysis and modelling

• This approach (also called Information Engineering) is the standard at USQ - with minor adaptations based on industry standards

April 21, 2023 18

Page 19: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Analysis & Modelling - A Tool• Analysis – goal is to break a complex requirement into

smaller parts to better understand the requirement.• Modelling - goal is to try and make a model of the

requirement to better understand the requirement.• Models are:

• inexpensive to produce• relatively easy/cheap to change• excellent communication for structured ideas exchange

April 21, 2023 19

Page 20: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Logical Model

•basis of existing system•Focuses on WHAT, not HOW• interpret in plain English

April 21, 2023 20

Page 21: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Data Model in SDLC• Used during the data analysis phase of the SDLC BUT can be used as standalone tool or outside the SDLC paradigm

• Database design (logical and physical)• Used as a means of communication with users• contains business rules relevant to the data

April 21, 2023 21

Page 22: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Data Modelling: art or science?

• Is Data Modelling an art or science ? Can it be done by following a specified set of rules/procedures.

• You decide as you do it.

April 21, 2023 22

Page 23: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

What about Process ?

• The theory says that good Data Modelling is independent of process.

• Is this really the case ? Can we create models, even databases without considering how they will be used ?

• If you are working on a system which already exists, do you think that you will work independent of process ?

April 21, 2023 23

Page 24: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Modelling Methods• Many Modelling methods

• Entity relationship (ER) modelling • Natural language Information Analysis Method (NIAM)• Unified Modelling Language (UML)

April 21, 2023 24

Our focus

Page 25: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

What is the data model?

•A graphical representation that is an •abstraction of the data (or ‘things’) •under investigation

April 21, 2023 25

Page 26: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Data Model Three level architecture

• Conceptual Schema – to organise the data requirements

• Logical Schema – to describe the structure of data, e.g. table and columns

• Physical Schema – to describe the physical means in storing data, e.g. storage, partitions, CPU

April 21, 2023 26

Page 27: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Data Model Concepts

•Data Entities (Entities)• Entity type - classification (e.g. UNIVERSITY)

• Entity occurrence - individual (e.g. USQ)•Data Attributes•Data Associations (Relationships)•Cardinality•Business rules

April 21, 2023 27

Page 28: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Data Entity

• Represents some 'thing' that is to be stored for later reference.• Always named in the singular e.g. CUSTOMER,

ORDER, STUDENT

• Is any object of interest to the organisation under investigation, any part of the system, or any object about which data can be collected and stored

April 21, 2023 28

Page 29: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Data Entity (2)

• Often shortened to ‘entity’• Entity refers to the logical representation of data• compared with the physical representation on disk or on paper (record)

April 21, 2023 29

Page 30: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Data Attribute

• A 'piece' of information that describes a data entity. Referred to as an attribute or a data item.

• Always uniquely named in the singular.

April 21, 2023 30

Entity: PLAYERAttributes: player name, position, nationality

Page 31: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Data Relationship or Association

• Indicates that a relationship exists between two entities.

• May be called association or relationship• Two entity occurrences are related if a change in

one makes a significance difference to the other,

April 21, 2023 31

eg. The relationship between jobs and workersa job has a worker/s associated with it

a worker/s have jobs associated with themthe removal of one effects the other

Page 32: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

The Data Model

• Is built from:• Entities• Attributes• Associations

04/21/23 32

Page 33: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

The Data Model - Illustrated

04/21/23 33

ENTITY A

ENTITY B

Page 34: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Cardinality - One to One

A department has one manager and a manager

manages one department

04/21/23 34

DEPT MANAGER

Page 35: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Cardinality - One to Many

04/21/23 35

ORDER INVOICE

An order generates (one or) many invoices and an invoice is generated against one order

Page 36: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Cardinality - Many to Many

04/21/23 36

PRODUCT PART

A product contains (one or) many parts and a part is used in (one or) many products

Page 37: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Cardinality

• Tells how many occurrences of one entity type are linked to occurrences of the other entity type

• Ask: "What is the maximum number of instances in the second entity that this first entity can be related to?" Then repeat in the reverse order.

04/21/23 37

Page 38: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Cardinality

• One to one

• One to Many

• Many to many

04/21/23 38

Page 39: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Business Rules or Optionality

• Optional

• Mandatory

• Optional becoming

mandatory(not used extensively in this course)

04/21/23 39

Page 40: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Relationships

04/21/23 40

A relationship is a logical connection between two entities. It defines and qualifies the relationship between the entities.

Relationship Degree (or cardinality)

SKILLEMPLOYEE

SKILLEMPLOYEE

One or many

One

Relationship Nature

Optional

Mandatory

An employee MAY have (one or) many skills. A skill MUST be assigned to one (and only one) employee.

Page 41: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Relationships

04/21/23 41

SKILL

JOBEMPLOYEE

Entities

Relationships

An employee MAY be allocated to many jobs. A job MUST be allocated to (one or) many employees. A job requires (one or) many skills. A skill MAY relate to (one or) Many jobs. An employee MUST have (one or) many skills. A skill may be assigned to (one or) many employees

Page 42: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Relational Database Design steps

April 21, 2023 42

Data Requirements

DataModel

CandidateRelations

(or just relations)

Normalizedrelations

Tables in a relational

database

SupportingPhysical

Implementatione.g. indexes

Page 43: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

1. DATA REQUIREMENTS• An employee MUST be assigned to one (and only one)

department. For employees, we store empid and employye name

• A department MAY have (one or) many employees. We store deptno, department name and location

April 21, 2023 43

Page 44: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

2. DATA MODEL• CONSIDER THE FOLLOWING ERD

April 21, 2023 44

EMPLOYEE

An employee MUST be assigned to one (and only one) department

A department MAY have (one or) many employees

Notes: MAY implies that a department need not have any employeesIf the department only has one employee, the rule is satisfied. It has the potential to have many employees

DEPARTMENT

Page 45: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

3. CREATE A RELATION• Now, convert the entity and (where applicable) it’s

relationships, into a relation

• If an entity is on the MANY side of a relationship, you will need to add a foreign key to the attributes

• Another name for a set of relations is an ENTITY LIST

April 21, 2023 45

Page 46: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

3 and 4. RELATIONS • Consider the relation:EMPLOYEE(empid#,empname,deptid#)

The relation is named EMPLOYEE and has THREE attributes.

empid# is the primary keydeptid# is a foreign key pointing to DEPARTMENT

NOTE how keys are represented. These relations are already normalized.

April 21, 2023 46

Page 47: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

RELATIONS 2

• The relation DEPARTMENT becomes:

DEPARTMENT(deptno#, department name, location)

April 21, 2023 47

Page 48: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

SQL – CASTEEL CHAPTER 8

April 21, 2023 48

Page 49: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

WHERE Clause Syntax• A WHERE clause is used to retrieve rows based on a

stated condition• Requires:

• Column name• Comparison operator• Value or column for comparison

• Values are case sensitive

49

Page 50: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

WHERE Clause Example• List WHERE clause after FROM clause• Enclose nonnumeric data in single quotes

50

Page 51: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Comparison Operators

• Indicate how the data should relate to the given search value

51

Page 52: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Arithmetic Comparison Operators

52

Page 53: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Other Comparison Operators

53

Page 54: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

BETWEEN…AND Operator• Finds values in a specified range

54

Page 55: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

IN Operator

• Returns records that match a value in a specified list

• List must be in parentheses• Values are separated by commas

55

Page 56: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

IN Operator Example

56

Page 57: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

LIKE Operator

• Performs pattern searches• Used with wildcard characters:

• Underscore (_) for exactly one character in the indicated position

• Percent sign (%) represents any number of characters

57

Page 58: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

LIKE Operator Example

58

Page 59: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Logical Operators

• Used to combine conditions• Evaluated in order of NOT, AND, OR:

• NOT – reverses meaning• AND – both conditions must be TRUE• OR – at least one condition must be TRUE

59

Page 60: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

AND Logical Operator Example

60

Page 61: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

OR Logical Operator Example

61

Page 62: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Multiple Logical Operators• Resolved in order of NOT, AND, OR

62

Page 63: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Multiple Logical Operators• Use parentheses to override the order of evaluation

63

Page 64: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Resolving Multiple Types of Operators

1. Arithmetic operators

2. Comparison operators

3. Logical operators

64

Page 65: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Treatment of NULL Values• Absence of data• Requires use of IS NULL operator

65

Page 66: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

Treatment of NULL Values (continued)

• A common error is using = NULL which does not raise an Oracle error but it also does not return any rows

66

Page 67: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

ORDER BY Clause Syntax • The ORDER BY clause presents data in sorted order• Ascending order is default• Use DESC keyword to override column default • 255 columns maximum

67

Page 68: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

ORDER BY Clause Syntax Sort Sequence• In ascending order, values will be listed in the following sequence:• Numeric values• Character values• NULL values

• In descending order, sequence is reversed

68

Page 69: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

ORDER BY Example

69

Page 70: Welcome to CIS 2002: DATABASE DESIGN AND IMPLEMENTATION Semester 1, 2014 – LECTURE 2 7 January 2016 1.

ORDER BY Can Reference Column Position

70


Recommended