Introduction to Databases

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Which of the following best describes a database?

  • A collection of unrelated documents.
  • A disorganized assortment of digital images.
  • A file system for storing software applications.
  • An organized collection of related data stored in a computer. (correct)

What is the primary difference between data and information in the context of databases?

  • There is no difference; the terms are interchangeable.
  • Data is raw facts, while information is processed data in a meaningful form. (correct)
  • Data is processed, while information is raw.
  • Data is used for decision making, while information is not.

Which of the following is NOT a typical use of databases?

  • Storing earnings and tax information for a government.
  • Storing operating system files. (correct)
  • Tracking customer purchases in a grocery store.
  • Managing student records at a school.

In the context of database models, what is a key characteristic of relational databases?

<p>Data is stored in two-dimensional tables with relations connecting different files using common data elements. (B)</p> Signup and view all the answers

Which function is NOT typically performed by a Database Management System (DBMS)?

<p>Designing computer hardware. (B)</p> Signup and view all the answers

Which of the following is an example of a Relational Database Management System?

<p>Microsoft Access (B)</p> Signup and view all the answers

In Microsoft Access, which object is used primarily to store data?

<p>Tables (A)</p> Signup and view all the answers

What is the purpose of Forms in Microsoft Access?

<p>To allow users to enter, view, and modify data in a user-friendly interface. (C)</p> Signup and view all the answers

What is a primary function of Queries in Microsoft Access?

<p>To ask questions about information stored in tables and compile data based on specific conditions. (B)</p> Signup and view all the answers

Which Microsoft Access object is used to extract information and present it in a well-organized, formatted manner, such as invoices or transcripts?

<p>Reports (D)</p> Signup and view all the answers

What are Macros used for in Microsoft Access?

<p>Automating tasks using easy-to-use commands. (C)</p> Signup and view all the answers

When creating a new database in Microsoft Access, which is the typical first step after starting the application?

<p>Clicking on 'Blank desktop database'. (B)</p> Signup and view all the answers

What is the primary function of a table in a database?

<p>To store data in a structured format. (D)</p> Signup and view all the answers

What is the term for the rows in a database table?

<p>Records (D)</p> Signup and view all the answers

What is the term for the columns in a database table?

<p>Fields (B)</p> Signup and view all the answers

Which of the following is NOT a typical step in creating a table?

<p>Designing the physical hardware of the computer. (A)</p> Signup and view all the answers

What is the purpose of 'Field Descriptions' when creating a table?

<p>To provide more descriptive information about a field's purpose, making it easier to understand. (D)</p> Signup and view all the answers

What do 'Data Types' specify in a database table?

<p>The types of values allowed in a field, storage space to use, and whether Access can index or sort data. (B)</p> Signup and view all the answers

What is the primary use of 'Design View' when working with tables?

<p>To set the data types, insert or delete fields, and set the Primary Key. (A)</p> Signup and view all the answers

What is the primary use of 'Datasheet View' when working with tables?

<p>To enter and view the data for the records. (B)</p> Signup and view all the answers

In Microsoft Access, where can you switch between 'Design View' and 'Datasheet View'?

<p>By clicking the 'View' arrow on the 'Home' tab. (A)</p> Signup and view all the answers

Which data type is most suitable for storing names?

<p>Short Text (A)</p> Signup and view all the answers

Which data type is most suitable for storing large amounts of text, such as comments or descriptions?

<p>Long Text (A)</p> Signup and view all the answers

Which data type is most appropriate for storing monetary values?

<p>Currency (D)</p> Signup and view all the answers

Which data type is best for automatically generating a unique numeric identifier for each record?

<p>AutoNumber (C)</p> Signup and view all the answers

What is the purpose of 'Field Properties'?

<p>To control the appearance of data and prevent improper entries. (D)</p> Signup and view all the answers

What does the 'Field Size' property control?

<p>The maximum number of characters allowed in a text field. (B)</p> Signup and view all the answers

What is the purpose of the 'Default Value' property?

<p>To specify a value that is automatically entered into a field when a new record is created. (C)</p> Signup and view all the answers

What is the primary purpose of a 'Primary Key' in a database table?

<p>To uniquely identify each record in the table. (D)</p> Signup and view all the answers

Which of the following best describes the purpose of a 'Form' in a database?

<p>To provide an interface for entering or displaying data in a database. (C)</p> Signup and view all the answers

Which tab do you click on to create a 'Form' in Microsoft Access?

<p>Create (C)</p> Signup and view all the answers

Which of the following views allows you to view, create, and edit records within a 'Form'?

<p>Form View (C)</p> Signup and view all the answers

Which view is the most visually-oriented and allows you to set the size of controls, or perform many other tasks that affect the visual appearance and usability of a 'Form'?

<p>Layout View (C)</p> Signup and view all the answers

Which view gives you a more detailed view of the structure of a 'Form', where you can see the header, detail, and footer sections?

<p>Design View (A)</p> Signup and view all the answers

Flashcards

What is a Database?

An organized collection of related data stored in a computer for easy access and retrieval.

What is Data?

Raw, unorganized facts that need processing.

What is Information?

Processed data in a meaningful and useful form for decision-making.

What are Relational Databases?

A database model where data is organized into two-dimensional tables with relations.

Signup and view all the flashcards

What are Hierarchical Databases?

A database model organizing data in a parent-child relationship structure.

Signup and view all the flashcards

What are Network Databases?

A type of database that allows a record to have multiple parent records.

Signup and view all the flashcards

What is a Database Management System (DBMS)?

A software application used to create, manage, query and modify databases.

Signup and view all the flashcards

What are Tables in Access?

A basic Access object used to store data in rows and columns.

Signup and view all the flashcards

What are Forms in Access?

A basic Access object allowing users to enter, view, and modify data.

Signup and view all the flashcards

What are Queries in Access?

A basic Access object that asks questions about the information stored in tables.

Signup and view all the flashcards

What are Reports in Access?

A basic Access object to extract and present data in a formatted way.

Signup and view all the flashcards

What are Macros in Access?

Easy-to-use commands to automate tasks in Access.

Signup and view all the flashcards

Creating a Table

The first step, requires entering the fields and data types.

Signup and view all the flashcards

What is a Field Name?

Identifier for a field.

Signup and view all the flashcards

What are Field Descriptions?

More descriptive than a field name, explain field purpose.

Signup and view all the flashcards

What are the Data Types?

They specify the types of values allowed in a field

Signup and view all the flashcards

What is Design View?

Sets data types & Primary Key.

Signup and view all the flashcards

What is Datasheet View?

Enter and view record data.

Signup and view all the flashcards

What is 'Number' Data Type?

Numerical data data type

Signup and view all the flashcards

What is 'Date/Time' Data Type?

Used for dates and times.

Signup and view all the flashcards

What is 'Currency' Data Type?

Monetary values data type.

Signup and view all the flashcards

What is 'AutoNumber' Data Type?

Automatically generates a unique number for each record.

Signup and view all the flashcards

What is 'Yes/No' Data Type?

Only has 2 options, typically Yes or No

Signup and view all the flashcards

What is 'Attachment' Data Type?

Stores files.

Signup and view all the flashcards

What does Field Size specify?

Maximum characters allowed in field.

Signup and view all the flashcards

What is Default Value?

Value inserted automatically when creating a new record.

Signup and view all the flashcards

What is an Input Mask?

Pattern enforced when entering data.

Signup and view all the flashcards

What is a Validation Rule?

Rules for what data is valid in a field.

Signup and view all the flashcards

What is Validation Text?

The error message when a Validation Rule is voilated

Signup and view all the flashcards

What does 'Required' mean in field properties?

Field is mandatory.

Signup and view all the flashcards

What does 'Indexed' mean?

Speeds up searches.

Signup and view all the flashcards

What are the uses of a Primary Key?

Link tables; speed queries; prevent duplicates.

Signup and view all the flashcards

What is a Form?

A database object for entering and displaying data.

Signup and view all the flashcards

What is Form view?

Look, create and edit record

Signup and view all the flashcards

What is Layout View?

Set size of control for appearance

Signup and view all the flashcards

Study Notes

Introduction to Databases

  • Databases are organized collections of related data stored in a computer
  • They allow easier storage, access, and retrieval of data
  • Databases provide a mechanism for creating, querying, modifying, and deleting data
  • Data is a collection of raw facts
  • Information is processed data or data represented in a meaningful form
  • Organizations require information for decision-making

Examples of Databases

  • Databases are prevalent, with examples including:
    • Schools keeping data on students
    • Governments tracking earnings and taxes
    • Credit information storage
    • Grocery stores use for tracking purchases
    • Banks use it to keep track of account data
    • Cookies used on website collect user information
  • Databases drive the information age by facilitating quality decision-making

Types of Database Models

  • Relational databases
    • Collection of relations or two-dimensional tables
    • Connects data in different files (tables) using common data elements or a key field
  • Hierarchical databases
    • Can be visualized as a parent-child relationship
    • Child may have one parent, but a parent can have multiple children
    • Can also be imagined as an inverted tree, where the single table is the root and other tables act as branches
    • Data access requires passing through the root table
  • Network databases
    • Developed to address problems within the hierarchical model
    • Allows a child to have multiple parents, similar to the parent-child model
    • Data can be accessed from any table, unlike in hierarchical models where access begins from the root table
    • Replaced by relational database model

Database Management System (DBMS)

  • Set of programs to manage databases
  • A DBMS must perform the following functions:
    • Create, modify, and delete data structures, such as tables
    • Add, modify, and delete data
    • Selectively retrieve data
    • Generate reports based on the data
  • Examples of Relational Database Management Systems include:
    • Microsoft Access
    • Oracle
    • SQL Server
    • MYSQL

Microsoft Access Database Objects

  • Tables
    • Used to store data
  • Forms
    • Permit users to enter, view, and modify data stored in tables
  • Queries
    • Pose questions about information stored in tables
    • Search and compile data from one or more tables
    • Define specific conditions for finding data
  • Reports
    • Allow you to print data based on queries/tables
    • Used to extract information and present it in an organized, formatted manner (e.g., invoices, transcripts)
  • Macros
    • Easy-to-use commands to automate tasks in Access
    • Example: Jumping to a new record every time database opens

Tables

  • Two-dimensional structures storing data
  • Contain information about one subject
    • Examples: Customers, students, books
  • Made up of records (rows)
    • Each record represents a single item
    • Student, customer
  • Each record is subdivided into fields (columns)
    • Fields define attributes for each record
    • Employee salary, student grade

Creating Tables

  • Usually the first objects created in a database
  • Table is a collection of data about a specific topic
    • Employee information, products, customers
  • The first step is entering field names and data types
    • Add field names, their data types, descriptions, properties
    • Field name is the identifier for a field (e.g. Surname)
    • Field descriptions are more descriptive than field names, they clarify what each field is for
    • Example: “Current physical address"
  • Data Types specify
    • Types of values to allow in the field
    • Storage space to use
    • Whether Access can index or sort data in the field

Understanding Views

  • Design View
    • Used to set data types
    • Insert or delete fields
    • Set the Primary Key
  • Datasheet View
    • Used to enter and view the data for the records

Data Types

  • Short Text
    • Alphanumeric data (names, titles, etc.)
    • Up to 255 characters
  • Long Text
    • Large amounts of alphanumeric data: sentences and paragraphs
    • Maximum is 64,000 characters
  • Number
    • Numeric data
  • Date/Time
    • Dates and times
  • Currency
    • Monetary values
  • AutoNumber
    • Unique value generated by Access for each new record
  • Yes/No
    • Yes or no values
    • Fields contain only one of two values
  • OLE Object
    • Pictures, graphs, or other ActiveX objects from another Windows-based application
  • Hyperlink
    • A link address to a document or file on the Internet
  • Attachment
    • You can attach files
    • Such as pictures, documents, spreadsheets, or charts
    • Limited by the storage limit of the size of a database file
  • Calculated
    • Create an expression that uses data from one or more fields
    • Designate different result data types from the expression
  • Lookup Wizard
    • Displays a list of values from a table or query, or a set of specified values
    • Creates a lookup field
    • Data type is either text or number, depending on choices made in the wizard

Field Properties

  • Control appearance of data
    • Specifying the format of date
  • Prevent improper entries
    • Specify default values
    • Sort of values to enter
  • Control size of field

Field Properties (Continued)

  • Field Size
    • Maximum number of characters allowed
  • Format
    • Layout to use when displaying data (e.g., Date)
  • Default Value
    • Value inserted automatically when new record is created
  • Input Mask
    • Pattern to use when entering data (e.g. //____)
  • Validation Rule
    • Rules for field data (e.g. “
  • Validation Text
    • Rule error message (e.g. "CA can't be greater than 50")
  • Required
    • Field cannot be blank
  • Index (Required)
    • Set field as indexed, use to order records
    • Speeds up searches
  • Caption
    • Specifies a label other than the field name to be used in forms and reports

Forms

  • Database object to enter or display data
    • Data entry, editing, display for review
  • Clear viewing because you can look at one record at a time
  • Navigation buttons at the bottom-left are used to move between records and create new ones
  • To Create a Form
    • Open the table or query on which you based the form
    • Click “Create” tab
    • Click “Form” in the “Forms” group

Views

  • Form View
    • Allows to view, create, and edit records
  • Layout View
    • Similar to Design View
    • More visually-oriented so that each control displays real data
    • Useful for setting the size of controls, or performing many other tasks that affect the visual appearance and usability of the form
  • Design View
    • Provides a more detailed view of the form's structure
    • View the header, detail, and footer sections
    • Unable to see the underlying data while making design changes

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Use Quizgecko on...
Browser
Browser