chapter 18-databases Flashcards
what is
software program used to store data in a structured way, it includes data dn links between data items
whatre the 3 ways databases store data
-fields (single item of dataw with a field name)
-records (collection of fields)
-files (organised collection of records)
what are the 2 types of files
-flat file database
-relational database
whats a flat file database
simple strucure where data held in td tables with rows and columns
stored in single file
suitable for uses w one type of data (ex car data) a
whats a relational database
stores data in more than 1 linked table in a single file
used w more than 1 type of related data (ex cars sold and customers)
whats the primary key
holds unique data (no records are the same)
whats a foreign key
will link to primary key in another table (so data is only stored once)
whatre the advantages and disadvantages of using a flat file database
adv-ideal for small databases with little duplicated data,easier to create
dis-takes more internal memory and storage,data may be duplicated so there can be entry errors
whatre the advantages and disadvantages of using a relational database
adv-less memory and space,data isnt duplicated so fewer entry errors,difficul tto create
what are the 3 diff data types
-alpha numeric (text and numbers,short or long text)
-numeric (integer,decimal,currency,date and time)
-boolean (store data in 0 or -1 to represent yes and no or true or false
why are forms made
to collect data to add to a database
whatre the features of a good form
-title
-instructions on how to complete form
-clear questions (closed where possible)
-boxes for answers
-appropriate sizes of answer box
-small fields grouped to categories
-no crodwd fields
-fills page
-no large areas of space
-collect only relavent data
whatre queries used for
to find data/filter through data in a database
whatre the 3 query crieias
and (both must be ther)
or (either 1)
wildcards (like “x”)
whatre the different operators
> greater than
<less than
= equal to