100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Databases Lecture Summary $9.64
Add to cart

Class notes

Databases Lecture Summary

 26 views  0 purchase
  • Course
  • Institution

Summary that goes over all of the topics discussed in lectures.

Preview 4 out of 40  pages

  • May 29, 2021
  • 40
  • 2020/2021
  • Class notes
  • Jörg endrullis
  • All classes
avatar-seller
,Lecture I :
introduction



A database CDB) is a collection of data with :




-


a certain logical structure


specific semantics
'


a



specific
-


a users
group of




A database ( DBMS)
management system allows to :




create modify and manipulate database
-



. a



coetrieve) the data using language
'




greenery a
query

support persistent large of data
-




storage of amounts

-


enable durability and
recovery from failure
-



control access to the data
by many users in parallel

without unexpected interactions ( isolation)
'




among users


actions partial ( atomicity)
'



on the data should never be




Motivation for Database Management systems

why not store data in files ?

no
language
-




greenery
Ceimiled directories )
'



weak logical structure to


no efficient access
-




file
searching through large hours
'


a can take


no limited protection
-


or from data loss


no parallel manipulation data
-


access control for of




ANSI SPARC Architecture

Motivation for DBMS :




data independence
'




logical view the data independent physical storage
-


on of

-

user interacts with a simple view on the data


( invisible Ofer )
behind the the
storage structures
'



scenes to are complex

that allow rapid access and manipulation

avoidance duplication
-



of


different views on the same database
-




different users lappli cations
'



for

hiding parts the data for privacy or
security
-




of

This is achieved by the ANSI SPARC Architecture

,ANSI SPARC Architecture : 3 levees


-



different applications might use different
views

data stored physical ( good for
'


once at level


consistency)




view level :




application hide details
-




programs of data types

information
'


hide for privacy or
security
( conceptual schema)
Logical
:
level


describes data stored in database
'


the ,




describes relations data
-




among

Physical level :




how the data is stored
-




disk index record order
'



pages , structures , byte layout ,




This ensures and physical data independence
logical


Data independence

Logical data independence is the ability to modify the
logical schema without


breaking existing applications

applications views
logical database
'

access the , not the




Physical data independence is the ability to modify the physical schema


without
changing the logical schema


workload might cook need
e
change in the for
a :
-




g
- .




different indexing structures
'




different database
engine
'




distributing the database on multiple machines
"




Relational Model


in this course , we work with relational databases


view and level relations
logical represent data as 1 tables


in the pure relational model ,
a table is a



set of tuples :




crows)
'



has no duplicate tuples
-


no order on the tuples

, Relational Model :
schema


Database schema =
structure of the database .
: relations + constraints

)
'



Database instance content C database
'
=
actual State of the at some moment

/




Structured
Query Language
Motivation for database
management systems :




high level declarative
-




query languages
'




greenery tells what you want , independent of storage structure


efficient ( automatic optimisation)
'



data access
query



Declarative
greenery languages
:




describe what information is
sought
'




prescribe desired information
-


not now to retrieve the




imperative vs Declarative Languages
( Kowalski )
Algorithm logic +
=
control




imperative earrgeeages
:
Declarative ecerrgeeages :




control implicit
'




explicit control
-




implicit logic explicit
'




logic
-




(
e.g .

logic programming Prolog)
SQL ( Haskell)
functional programming
A declarative data manipulation ( HTML)
markup languages

language .
the user describes conditions

the requested data is required to ceeefill .




More concise imperative languages
:
than


expensive
-




less program development

easier maintenance
-




Database system will optimise the
query
:




decides possible
-


now to execute the fast
greenery as as




users casually) do need think about efficiency
-


not to




Data Models &
Integrity constraints

Motivation for DBMS :




defined constraints
well data models & data
integrity
- -




relational model
-




meta
language for describing
-




data
-




data relationships
-




-



data constraints

SQL can be used for table and constraint definitions

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller marinamssantos. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $9.64. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

53068 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.64
  • (0)
Add to cart
Added