100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

MIS 431 - EXAM #3 QUESTIONS WITH CORRECT ANSWERS

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
09-03-2025
Written in
2024/2025

MIS 431 - EXAM #3 *INDEXES* - Answer- -------------------------------------------------------- Index - Answer- -*copy of selected columns of data* from a table that can be searched very *efficiently* -makes queries run *faster* -primary keys are always indexed Introduction to Indexes - Answer- -most queries require locating a certain row (or set of rows) that satisfy some condition specified in a WHERE clause -*scanning every row* in a table looking for the desired rows can be unacceptably *slow* -using *indexes* greatly *speeds up* the search process -defining appropriate indexes is an important aspect of implementing large databases Indexes Example - Answer- -phone book - large table with ~1,000,000 rows -data is not physically stored in any particular order -without indexes, if you want to find the phone number for a particular person the DBMS would need to search through *all* 1 million rows of data --> NOTE: it would have to keep searching after it finds a match because there could be additional matches Pointers - Answer- -When data is stored on drive (or Random Access Memory - RAM) -Data is stored all over -Operating System allocates space with a function call -Provides location/address --> Physical address --> Virtual address (VSAM) --> Relative address What are Table Indexes? - Answer- -In a relational database, the physical storage location for a particular row doesn't matter --> *unless you're the DBMS and are trying to find it* -An index structure provides rapid access to attribute values and their corresponding table rows -Indexes contain information about the physical storage location of data Benefit of Table Indexes - Answer- -Note that entity data generally must be read in one full row at a time, even if just one attribute is needed --> BUT, if an attribute value can be found in an index, then the DBMS can *avoid having to read full rows* How Indexes are Represented - Answer- -Indexes contain an "ordered list* of entires --> typically *takes the form of a "Balanced-tree" (B-tree)* rather than a simple linear list -A tree structure is an efficient *structure for holding an ordered list* -Can be quickly traversed to find a particular value of the attribute(s) indexed upon How Indexes are Represented (cont) - Answer- -The tree is traversed from its *root node

Show more Read less
Institution
MIS 431 - #3
Course
MIS 431 - #3









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
MIS 431 - #3
Course
MIS 431 - #3

Document information

Uploaded on
March 9, 2025
Number of pages
6
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Content preview

MIS 431 - EXAM #3
*INDEXES* - Answer- --------------------------------------------------------

Index - Answer- -*copy of selected columns of data* from a table that can be searched very
*efficiently*
-makes queries run *faster*
-primary keys are always indexed

Introduction to Indexes - Answer- -most queries require locating a certain row (or set of rows) that
satisfy some condition specified in a WHERE clause
-*scanning every row* in a table looking for the desired rows can be unacceptably *slow*
-using *indexes* greatly *speeds up* the search process
-defining appropriate indexes is an important aspect of implementing large databases

Indexes Example - Answer- -phone book - large table with ~1,000,000 rows
-data is not physically stored in any particular order
-without indexes, if you want to find the phone number for a particular person the DBMS would
need to search through *all* 1 million rows of data
--> NOTE: it would have to keep searching after it finds a match because there could be additional
matches

Pointers - Answer- -When data is stored on drive (or Random Access Memory - RAM)
-Data is stored all over

-Operating System allocates space with a function call
-Provides location/address
--> Physical address
--> Virtual address (VSAM)
--> Relative address

What are Table Indexes? - Answer- -In a relational database, the physical storage location for a
particular row doesn't matter
--> *unless you're the DBMS and are trying to find it*
-An index structure provides rapid access to attribute values and their corresponding table rows
-Indexes contain information about the physical storage location of data

Benefit of Table Indexes - Answer- -Note that entity data generally must be read in one full row at
a time, even if just one attribute is needed
--> BUT, if an attribute value can be found in an index, then the DBMS can *avoid having to read
full rows*

How Indexes are Represented - Answer- -Indexes contain an "ordered list* of entires
--> typically *takes the form of a "Balanced-tree" (B-tree)* rather than a simple linear list

-A tree structure is an efficient *structure for holding an ordered list*
-Can be quickly traversed to find a particular value of the attribute(s) indexed upon

, How Indexes are Represented (cont) - Answer- -The tree is traversed from its *root node* to the
desired *leaf node*
--> For each node, find the highest key value less than or equal to the search value and follow the
pointer to the next node

-Each leaf node contains *two pieces* of information
--> an attribute value
--> information concerning the physical storage location of the entity (or entities) having that
precise attribute value
--> Ex: In Oracle, a Row_ID value provides the required physical storage location information

Problems with Indexes - Answer- -*Each index must be updated when rows are inserted, deleted
or modified*
-Changing one row of data in a table with many indexes can result in considerable time and
resources to update all of the indexes

**don't index things that change frequently (ex: quantity)

*TRANSACTION MANAGEMENT AND CONCURRENCY CONTROL* - Answer-
--------------------------------------------------------

Steps to Improve Index Performance - Answer- 1. Index primary keys
2. Index common join columns (usually primary keys)
3. Index columns that are searched regularly
4. Use a performance analyzer (tells you what to index)

What is a Transaction - Answer- -logical unit of work
-must be either *entirely completed or aborted*
--> can't be anything in between
-no intermediate states are acceptable

*multiple SQL statements
*relational database = always accurate, constant state

Example Transaction - Answer- -Register credit sale of 100 units of part X to customer Y for $500
-Consistent state only if both transactions are fully completed
-DBMS doesn't guarantee transaction represents real-world event

Transaction Properties - Answer- *ACID*
A = Atomic
C = Consistency
I = Isolation
D = Durability

Atomic - Answer- *ACID*
-All transaction operations must be *completed*
-Incomplete transactions aborted
-Whole can't be divisible

Consistency - Answer- *ACID*

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Freshy Oxford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
51
Member since
1 year
Number of followers
4
Documents
6784
Last sold
3 days ago

3.6

10 reviews

5
3
4
4
3
1
2
0
1
2

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions