Download presentation
Presentation is loading. Please wait.
Published byAllen Rogers Modified over 9 years ago
1
What is a Database?
2
“A persistent & organised store of data. ” Persistent: Non-volatile Using secondary storage Organised: Data organised into tables, records & fields
3
Important Database Words Entity Table Record Field Relationship Primary Key Foreign Key Query
4
Tables, Records & Fields Movie TitleGenreYear Released Star Wars Sci Fi1977 Ice Age Animation2002 Wall E Animation2008 Avatar Nonsense2009 TABLERECORDFIELD
5
Database Examples What databases do you know of? What entities are involved in these example databases?
6
The Task DesignBuildingRelationshipsQueryingReports/Interface Create a database that stores information about recent film releases. The database will need to store information about the actors You will be free to decide the type of information that needs to be stored about each film. Film reviewers will also need to be able to submit reviews for each film
7
Step 1 - Design Its important to design the database well. To do this you use entity relationship diagrams (ERD’s) Each table in the database is a separate entity Teachers name DoB address subject niNumber salary startedJob teacherNo Entity An entity is a real-world object, about which data is stored.
8
Data Types Just like programming databases like to categorise the data Some of the most used types are in the table There can be a difference between different database systems Text Varchar() Text Number tinyInt() Int() bigInt() float Date dateTime() Timestamp() MySQL Data Types
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.