Presentation is loading. Please wait.

Presentation is loading. Please wait.

D ATABASE Dr. Satria Mandala. R ELATIONAL D ATABASE F UNDAMENTALS What Is a Database? a database is any collection of data items (simple definition) a.

Similar presentations


Presentation on theme: "D ATABASE Dr. Satria Mandala. R ELATIONAL D ATABASE F UNDAMENTALS What Is a Database? a database is any collection of data items (simple definition) a."— Presentation transcript:

1 D ATABASE Dr. Satria Mandala

2 R ELATIONAL D ATABASE F UNDAMENTALS What Is a Database? a database is any collection of data items (simple definition) a self-describing collection of integrated records that includes programming languages such as SQL (details definition) A database consists of both data and metadata.

3 D ATABASE M ANAGEMENT S YSTEM What Is a Database Management System? Block diagram of a DBMS based information system

4 D ATABASE M ODELS Hierarchical: These databases arrange their data in a simple hierarchical structure that allows fast access. Network: Network databases have minimal redundancy but pay for that advantage with structural complexity. Relational: These databases store their data in tables that are related to each other.

5 W HY RELATIONAL D ATABASE MODEL BETTER THAN BOTH HIERARCHICAL AND NETWORK MODELS ? A. The database structure of both hierarchical and network models are hard-coded into the application. That application is dependent on the specific physical implementation of the database. B. Relational databases offer structural flexibility; applications written for those databases are easier to maintain than similar applications written for hierarchical or network databases.

6 C OMPONENTS OF A RELATIONAL DATABASE

7 T ABLE

8 FORM

9 Query Design in Microsoft Access Result of Running the Query Command Q UERIES

10 R EPORTS

11 M ACROS

12 M ODULES

13 SQL F UNDAMENTALS What is SQL? What is Query? SELECT * FROM EMPLOYEE WHERE Age > 40 OR Salary > 60000 ;

14 SQL S TATEMENTS The SQL command language consists of a limited number of statements that perform three functions of data handling: Some of them define data, some manipulate data, and others control data.

15 SQL S TATEMENTS

16

17 R ESERVED W ORDS RESERVED WORDS are words that cannot be used for the name of any table or any function because have been reserved for special purpose in RDBMS There are several words have been reserved by SQL, for examples: SELECT, FROM, WHERE

18 D ATA T YPES Numerics Binary Strings Booleans Datetimes Intervals XML


Download ppt "D ATABASE Dr. Satria Mandala. R ELATIONAL D ATABASE F UNDAMENTALS What Is a Database? a database is any collection of data items (simple definition) a."

Similar presentations


Ads by Google