Information Systems Flashcards
List advantages of an information system?
Small amount of space.
Can be accessed quickly.
human error reduced.
A computer can deal with boring tasks.
Information can be made available to number of people simultaneously
Sophisticated electronic methods can be used to protect the information in a database.
The essential characteristics of a relational database?
Data appears in tables.
The language used generates a new table as the result of a database operation.
Protected against undesirable user action.
Entities (fields) in the system have a relationship with at least one other entity.
Basic Structure of a MSQL query?
Select
from
note: start every problem with these 2 lines.
Definition of an information system?
it is a computerised record keeping system.
What does SQL stand for?
Structured query language.
How to eliminate duplicate (same type) rows?
A result table should show one listing for each result, with duplicate rows removed.
This is achieved by the use of the key word ‘distinct’
How to order Column Data?
The order of the information appears in the way it was originally put into the table.
For example – The column pm_name in the table prime minister is ordered alphabetically. Adding the terms ‘order by’ will do this.
Ordering several columns?
If more than one item is included in the order by clause, a comma must separate consecutive items. Rows are arranged in order so that the second item is in specified ordered within the first (or primary) ordering criterion.
how to ‘order by’ with numbers?
Simply replace the column in the order by section by the number in what order it comes.
Conditional Retrieval?
It is often necessary to retrieve only rows from the table which satisfies a given condition.
Analysis Definition?
Analyse = tell what each line in the query does and break it down into smaller pieces and examine them.
Comparison Operator?
Comparison Operator: = equal to <> or ^= not equal to > greater than ^> not greater than >= greater than or equal to < less then ^< not less than <= less than or equal to
Using the Null keyword? (is)
Note: The key word ‘is’ is not required in the query, it depends on your preference.
Special Operators
Between, In, Like
Between Operator?
Retrieval on values within a range. Rows may be selected if a column or derived values lie within a specific numeric or character range.