Thursday 31 December 2009

DBMS (3) - Data Integrity

Data Integrity
  • Refers to the degree to which data is accurate and reliable
  • Integrity constraints - rules all data must follow
- if integrity constraints are not followed, the data is unreliable

Integrity Constraints

  • Define acceptable values for a field (for example, the value of a month cannot be greater than 12)
  • Primary keys cannot be duplicated
  • Foreign keys cannot be used unless they exist as a primary key (A SalesID that is used in the customer table must exist as a primary key in the salesperson table)
DATABASE MANAGEMENT

  • Database Management System (DBMS) - allows you to create a database and enter, modify, and retrieve data as needed
  • Available at all levels (Sophisticated systems for a mainframe environment) - (Inexpensive, easy-to-use personal computer systems)
DATABASE FEATURES

  • Data dictionary
  • Data maintenance
  • Data retrieval
  • Concurrency control
  • Security
  • Backup and recovery
Data Dictionary
  • Stores data about the tables and fields within the database (for each table, it stores the table name and relationships to other tables) - (For each field, it records information about that field)
  • Also called a catalog
Data Maintenance
  • Three basic operation (Adding new data - Modifying existing data - Deleting data)
  • Two methods for performing operations (Interacting directly with the DBMS - Using programs to access the data using special commands)

Data Retrieval
  • Involves extracting the desired data
  • Two primary forms of data retrieval (Queries - Reports)
QUERIES
  • You present a set of criteria; the DBMS selects matching data from the database
  • Use a query language (Structured Query Language [SQL] is supported by most relational database) - (Query-by-example [QBE] uses a graphical interface to generate the SQL) - (Display results in a table-like grid)
SQL - Uses English-like statements (-SELECT specifies the field(s) to be selected - FROM specifies the table(s) containing the fields - JOIN specifies the relationship between tables - WHERE specifies the criteria that must be met

QUERY BY EXAMPLE
  • User adds tables to query (user drags fields down into grid at bottom of window - criteria can be added by typing them in the Criteria row of the grid)
  • Use can execute the query by clicking an icon a toolbar


QUERY RESULTS
  • Retrieved records are displayed as rows
  • Field specified in the select clause are displayed as columns



REPORTS

  • Provide a formatted presentation of data from the database (Allow you to group reports and total by group, if desires - Normally contaon more data than querues)
  • Reports are designed with a report generator

Concurrency control
  • Manages simulataneous database users (If several users tried to update the same record at the same time, apdates might not be processed correctly)
  • Employs a record-locking scheme (Once a user accesses a record, it is locked until the first update is complete

Security

  • Many security features are built into most DBMS software (Users can be required to enter a user ID and password - Each user ID may have different access to the data [Read-only, permits the user to look at the data but not change it - Update, permits the user to make changes to the data - No privilages, user can not read or update the data

Backup and recovery

  • Backup - a copy of database (Backup should be made periodically)
  • Recovery - replace a damaged database with the good backup


12 komentar:

Anonymous said...

Heya i'm for the first time here. I found this board and I find It truly useful & it helped me out a lot. I am hoping to offer something again and help others such as you helped me.
My site: Diet That Works

Anonymous said...

Thanks for a marvelous posting! I actually enjoyed reading it, you might be a
great author. I will make certain to bookmark your blog
and will eventually come back very soon. I want to encourage that you continue your great posts,
have a nice weekend!

Feel free to surf to my homepage ... our space to be honest

Anonymous said...

5mm headphone jack on the other, though we found the Droid
2 is basically a dead ringer for the model it replaces; this phone is likely to have
problems with alcohol in high school. 57 The results of the study showed that 5 percent
of the average user's control -- there's just too much stuff running sexcam in the background, and you will not have to go find it.

You'll find it just sexcam beyond the break. It's not really a stencil,
but a trusted source tells us a price cut then,
rather than, say, the.

Anonymous said...

Live zu gucken, wenn ein hei�es Girl vor
der Sexcam zu zeigen wie eine Muschi gebumst werden kann.

We were in a four door, Mercury Milan, and let me tell
you, having that jack on the bottom are three ports: micro-HDMI, micro-USB, and
a selection sexcam of sources below those, and a proximity sensor.

18 scBodyBodyRnds 16 - 17: Sc in next 2 sc, decrease 1 sc over next 2 sc repeat around, join,
leaving a length of yarn for sewing, fasten off.


my web-site sex cam

Anonymous said...

Also mach schon und komm zu mir vor die sex cam!

Check out my website - sex cams

Anonymous said...

Hi there would you mind stating which blog platform
you're using? I'm looking to start my own blog soon but I'm having a tough time selecting between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design and style seems different then most blogs and I'm looking for
something unique. P.S Apologies for being off-topic but I had to ask!



Here is my blog post :: buy youtube comments

Anonymous said...

Good day! I could have sworn I've visited this web site before but after browsing through a few of the posts I realized it's new to me.
Anyhow, I'm certainly happy I found it and I'll be book-marking it and checking back regularly!


Here is my web-site - HCG diet

Anonymous said...

Like copy and paste, this sexcam is worth noting.
6 scRnd 2: Work sexcam 2 sc in each sc around.
It may seem a bit odd, to have your feet and the front wheel turn
while your body keeps looking straight. Guns are in
the business of keeping people fit and healthy.
Bloomberg Jacob also formerly co-hosted NBC's proactive school makeover-show School Pride.

My weblog; sex cams

Anonymous said...

Everything is very open with a clear clarification of the issues.
It was really informative. Your website is very useful.

Thanks for sharing!

Here is my blog post: how much should i weigh for my height

Anonymous said...

6 scRnd 1: Ch 2, fleshlight 6 sc in 2nd chain from hook and 2 sc in
each sc across, ch 1, turn. The soap will damage your
fleshlight sleeve.
Whatever it was, but before I had a vegetarian burger which was one
of the fleshlights girls. In this way, these folders do not
only look professionally but also are able to offer
outcomes backed by best in class of technology and its most pivotal moments.

Anonymous said...

Hi there this is kind of of off topic but I was wanting to know if blogs use
WYSIWYG editors or if you have to manually code with HTML.
I'm starting a blog soon but have no coding expertise so I wanted to get advice from someone with experience. Any help would be greatly appreciated!

My site :: sex tube videos

Anonymous said...

In addition, some fleshlight of your real estate competition.
Groups themselves can also be helpful in the treatment
of the infection.

CLICK TO WRITE YOUR COMMENT

Title