Wednesday, February 15, 2012

Querying A Database

Question 1:
Suppliers-We need a Query with a contact name, the phone number of all companies in the USA. Below is the Query.
Below is the Result of the Query.


Question 2: Product Names that cost more than $20
Here is the Query

 Here are the Results:

Question3:Products with more than 30 items in stock
Here is the Query:
 Here are the Results:


Creating A Basic Database

Today we used a new program called "Microsoft Access". In this program you can make basic databases. Firstly we have to make a table like any ordinary one but with different fields. As shown below:
Afterwards we have to make different queries.Like if i had to locate everyones birthday then I would simply have to press the button"query design" and then add in the "DOB" and the "NAME OF THE PEOPLE". As shown below:

Like these we did a few more but different queries

Wednesday, February 8, 2012

Notes

Data=Field=Records=Files
There are different types of Data Types:
-Alphanumeric
-Numeric
A query is when you ask questions to the databases. Query search for records that match field criteria.

Monday, February 6, 2012

Database Definitions

Q1.Definitions
Field- are the smallest units of information you can access. Fields make records and records make up a databases



Record- Records are composed of fields, each of which contains one item of information. A set of records constitutes a file. For example, a personnel file might contain records that have three fields: a name field, an address field, and a phone number field.

File-  is a collection of records. For example, a telephone book is analogous to a file. It contains a list of records, each of which consists of three fields: name, address, and telephone number.

Query-A request for information from a database. There are three general methods for posing queries: Choosing parameters from a menu: In this method, the database system presents a list of parameters from which you can choose. This is perhaps the easiest way to pose a query because the menus guide you, but it is also the least flexible. Query by example (QBE): In this method, the system presents a blank record and lets you specify the fields and values that define the query. Query language: Many database systems require you to make requests for information in the form of a stylized query that must be written in a special query language. This is the most complex method because it forces you to learn a specialized language, but it is also the most powerful.

Database-A collection of information organized in such a way that a computer program can quickly select desired pieces of data. You can think of a database as an electronic filing system



Report-A formatted and organized presentation of data. Most database management systems include a report writer that enables you to design and generate reports DBMS-A collection of programs that enables you to store, modify, and extract information from a database. There are many different types of DBMSs, ranging from small systems that run on personal computers to huge systems that run on mainframes.

Data Dictionary-In database management systems, a file that defines the basic organization of a database. A data dictionary contains a list of all files in the database, the number of records in each file, and the names and types of each field. Most database management systems keep the data dictionary hidden from users to prevent them from accidentally destroying its contents. Data dictionaries do not contain any actual data from the database, only bookkeeping information for managing it. Without a data dictionary, however, a database management system cannot access data from the database.

Data Type-classification of a particular type of information.


Q2.Table Showing Files and Records

As depicted from the above table of songs. This is an example of what records, fields and files.
Q3.Common Used Databases
There are many commonly used databases that are around us everyday such as:
  • Library
  • Phones
  • Contacts
  • Spreadsheets
  • Information Records

Using An Electronic Database

What is a Database?
 A database is an organized collection of data for one or more purposes, usually in digital form. The data are typically organized to model relevant aspects of reality (for example, the availability of rooms in hotels), in a way that supports processes requiring this information (for example, finding a hotel with vacancies). This definition is very general, and is independent of the technology used.
Examples Of Databases
example, the availability of rooms in hotels), in a way that supports processes requiring this information (for example, like street directories, mobile phones and contacts. Places like libraries and yellow pages.)
Yellow Pages
 1. The name of the shop is Bennett Office Supplies
2.The closet florist to where she lives is M & A Fresh Cut Flowers which is on 91a Fowler Rd, Merrylands NSW 2160, ph: (02) 9892 1564. Below is a map to show the directions to the florist.
3.Here are the different motels found in the Noosa Qld area.
-Hotel Laguna
6 Hastings St, Noosa Heads QLD 4567
ph: (07) 5447 3077
-Noosa Heads Motel

71 Noosa Drv, Noosa Heads QLD 4567
ph: (07) 5440 4550
-Noosa Village Motel

10 Hastings St, Noosa Heads QLD 4567
ph: (07) 5447 5800
-Seahaven Beachfront Resort


Hastings St, Noosa Heads QLD 4567
ph: (07) 5447 3422
4.I have found my number on white pages, as shown below:
Is Yellow Pages A Database?
Yes it is, because they store people's numbers and contacts.
Advantages of using a database
-convenient
-quicker
-easier /varieties different ranges
-reliable, its easier to update
-its also easier to search.
-electronic database saves paper and space
-Better Access
-Electronic Databases can be duplicated
Are there any disadvantages of a database?
-no privacy
-Internet problems/Access
-Remote Areas/no Internet access
-poorer people in society may not have the money to get the Internet and also older people.