Relational Algebra Operations

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

Relate the following relational algebra concepts to their definitions:

Result of this operation contains all tuples that are in R, but not in S (R - S = {t | t ∈ R and t ∉ S}). = Set Difference Specify how to obtain the result using a set of operators and operands into relations. = Relational Algebra Result of this operation contains tuples that are in R or in S, but not both, duplicates are removed (R ∪ S = {t | t ∈ R or t ∈ S}) = Union Operation The result of R x S is a relation of degree (k1 + k2) and consists of all (n1 * n2)-tuples where each tuple is a concatenation of one tuple of R with one tuple of S. = Cartesian (Cross) Product operation This produces a vertical slice of a relation (Π_{A1,...,An}(R) = {t[A1,..., An] | t ∈ R}) = Projection operation Produces a horizontal subset of the operand relation (σ_{F}(R) = {t | t ∈ R and F(t) is true}) = Selection operation

Relate the following database and network concepts to their definitions:

Ensures that tuples from one or both relations that do not satisfy the join condition still appear in the final result with other relation's attribute values set to NULL = Outer-Join Equi-join of two relations R and S over an attribute (or attributes) common to both R and S and projecting out one copy of those attributes. = Natural join An interconnected collection of autonomous computers that are capable of exchanging information among themselves. = Computer Network Specify the properties that the result should hold. = Relational Calculus SQL is an example of this relational calculus (at least in its simple form). = Tuple relational calculus Query of the form {x1, x2, ..., xn | F(x1, x2, ..., xn)} where F is a well-formed formula in which x1, x2, ..., xn are the free variables. QBE is an example. = Domain relational calculus

Relate the following networking concepts to their descriptions:

One or more (direct or indirect) links between each pair of nodes and communication always between two nodes are characteristics of: = Point-to-point (unicast) scheme communication. Long delays due to distance traveled, heterogeneity of transmission media and speeds of 150Mbps to 10Gbps (OC192 on the backbone) are characteristics of: = Wide area network (WAN) Hosts (nodes, end systems), Switches and Communication link, are: = Network Components. Messages are transmitted over a shared channel and received by all the nodes where each node checks the address and if it not the intended recipient, ignores this a characteristic of: = Broadcast scheme communication. Star, Ring and Mesh are part of: = Types of networks topologies Speeds 10-1000 Mbps, short delays and low noise and limited in geographic scope (usually < 2km) are characteristics of: = Local area network (LAN)

Relate the following data communication concepts to their definitions:

<p>In this data communication form, messages are divided into fixed size packets, each of which is routed from the source to the destination. = Packet switched This software that ensures error-free, reliable and efficient communication between hosts. = Communication protocol Twisted pair, coaxial and microwave are examples of: = Communication alternatives Application, transport, Network layers and interaction between individual networks are part of: = TCP/IP Protocol. The amount of information that can be transmitted over the channel in a given time unit: = Capacity - bandwidth In this data communication form, a dedicated channel is established between the sender and receiver for the duration of the session. = Circuit switching</p> Signup and view all the answers

Relate the following Distributed Database System (DDBS) concepts to their definitions:

<p>The quantity of information about how users access data defines: = The level of knowledge in DDBS. Data sharing and data-plus program sharing determines: = Level of Sharing Level of sharing, pattern behavior and level of knowledge are: = Three orthogonal dimensions of organization in DDBS The placement of the distributed DBMS software; and placement of the applications that run on the database determinates: = The placement of applications Making decisions about the placement of data and programs across the sites of a computer network as well as possibly designing the network itself is the: = Main problem of DDBS design Static and dynamic alternatives are two types of: = Pattern behavior</p> Signup and view all the answers

Relate the following Distributed Database System (DDBS) design concepts to their definitions:

<p>This goes from one extreme, that is, not to fragment at all, to the other extreme, to fragment to the level individual tuples (horizontal) or attributes (vertical). = The degree of fragmentation. This design method starts from the general and moves to the specific, working down to more specific details of system interaction. = Top-down design These are two approaches for developing any DDBS which appear radically different but share the common goal of uniting a system by describing all the interaction between the processes. = Top-down and Bottom-up design This design is presented when the databases already exist at several sites. = Bottom-up design Potential problems like high volume of remote data access or unnecessary replication are reasons to: = Fragment a DDB Requirement analysis, View design and Conceptual design are: = The first part of a framework for top-down design process.</p> Signup and view all the answers

Relate the following database fragmentation and allocation concepts to their definitions:

<p>Fully replicated; each fragment at each site and partially replicated; each fragment at some of the sites are part of: = Replicated and non-replicated alternatives Assuming that the database is fragmented properly, one must decide on the allocation of the fragments to various sites on the network between allocation alternatives of: = A replicated alternative Relation instances are essentially tables, so the issue is one of finding alternative ways of dividing a table into smaller ones. Two alternatives are: = Dividing it horizontally or dividing it vertically Completeness, Reconstruction and Disjointness are three rules during fragmentation, which, together ensure that the database does not undergo semantic change during fragmentation and are called: = Test correctness A horizontal fragment Ri of relation R consists of all the tuples of R which satisfy a minterm predicate mi. = Primary Horizontal Fragmentation The logical organization of the database, the location of the applications, the access characteristics of the application to the database, and the properties of the computer system at each site are part of: = Information requirements to DDBS</p> Signup and view all the answers

Relate the following database fragmentation concepts to their definitions:

<p>Splitting relations by attributes represents this approach: = Vertical Fragmentation The frequency with which a user application qi accesses data. = Access frequencies The number of tuples of the relation that would be accessed by a user query which is specified according to a given minterm predicate mi. = Minterm selectivities It is performed using predicates that are defined on the original relation. = Primary Horizontal Fragmentation (PHF) It is the partitioning of a relation that results from predicates being defined on another relation. = Derived Horizontal Fragmentation (DHF) A set of simple predicates Pr is said to be complete if and only if the accesses to the tuples of the minterm fragments defined on Pr requires that two tuples of the same minterm fragment have the same probability of being accessed by any application. = Completeness of Simple Predicates</p> Signup and view all the answers

Flashcards

Set Difference

Contains tuples in R but not in S. (R - S = {t | t ∈ R and t ∉ S})

Relational Algebra

Specifies how to get a result using relations or operators.

Union Operation

Contains tuples in R or S, without duplicates. (R ∪ S - {t | t ∈ R or t ∈ S})

Cartesian (Cross) Product

Relation of degree (k1+k2), all (n1*n2)-tuples, one tuple of R with one of S.

Signup and view all the flashcards

Projection Operation

Produces a vertical slice of a relation (Ï€A1,...,An(R)).

Signup and view all the flashcards

Selection Operation

Subset of operand relation (σF(R)={t | t ∈ R and F(A) is true}).

Signup and view all the flashcards

Outer-Join

Tuples not satisfying the join condition appear with NULL values.

Signup and view all the flashcards

Natural Join

Equi-join projecting one copy of attributes common to R and S.

Signup and view all the flashcards

Computer Network

Autonomous computers exchanging information.

Signup and view all the flashcards

Relational Calculus

Specifies result properties.

Signup and view all the flashcards

Tuple Relational Calculus

SQL example of relational calculus.

Signup and view all the flashcards

P2P scheme communication.

1+ links between each node, communication between two nodes.

Signup and view all the flashcards

Wide area network (WAN)

Long delays, heterogeneity, speeds (150Mbps to 10Gbps).

Signup and view all the flashcards

Network Components

Nodes, switches, and communication link.

Signup and view all the flashcards

Broadcast Communication

Messages shared with all nodes, each node checks address.

Signup and view all the flashcards

Local area network (LAN)

10-1000 Mbps, short delays, low noise, <2km.

Signup and view all the flashcards

Packet switched

Messages in fixed packets routed to destination.

Signup and view all the flashcards

Communication Protocol

Software for error-free, reliable communication.

Signup and view all the flashcards

TCP/IP Protocol

Application, transport, Network and Individual networks

Signup and view all the flashcards

Capacity - bandwidth

Amount of info transmitted over a channel.

Signup and view all the flashcards

Study Notes

Set Difference

  • Contains all tuples in R, but not in S, expressed as R - S = {tlti Rand ti S}

Relational Algebra

  • Specifies how to derive results using operators and operands on relations

Union Operation

  • Contains tuples in R or S, without duplicates, expressed as (RÈ S-{t| t Ror t S})

Cartesian (Cross) Product Operation

  • R x S results in a relation of degree (k1 + k2)
  • Consists of (n1 * n2)-tuples
  • Each tuple is a concatenation of one tuple from R with one from S

Projection Operation

  • Produces a vertical slice of a relation, notated as (PA1,.,An(R)=(#[A1,..., An] | AR})

Selection Operation

  • Produces a horizontal subset of the operand relation, notated as (sF(R)={tR ard F(A) is true})

Outer-Join

  • Guarantees tuples from one or both relations appear in the final result even if the join condition isn't met
  • Attributes set to NULL for non-matching attributes

Natural Join

  • Equi-join of relations R and S over common attribute(s)
  • Projects out one copy of the common attributes

Computer Network

  • An interconnected collection of autonomous computers which exchange information

Relational Calculus

  • Specifies properties for the result of a query

Tuple Relational Calculus

  • SQL is an example( at least in the simple form)

Domain Relational Calculus

  • Query takes the form x1, x2,..., xnIF(x1, x2,..., xn)
  • F is a well-formed formula and x1, x2,..., xn are free variables
  • QBE is an example.

Point-to-Point (Unicast) Scheme Communication

  • Involves one or more direct or indirect links between each pair of nodes
  • Communication only occurs between two nodes

Wide Area Network (WAN)

  • Experiences long delays due to distance
  • Has heterogeneity of transmission media with speeds of 150Mbps to 10Gbps (OC192 on the backbone)

Network Components

  • Hosts (nodes, end systems), switches and communication links

Broadcast Scheme Communication

  • Messages transmitted over a shared channel and received by all nodes
  • Each node checks the address and ignores messages not intended for it

Types of Network Topologies

  • Star, ring, and mesh

Local Area Network (LAN)

  • Speeds of 10-1000 Mbps
  • Short delays, low noise, and limited geographic scope, generally < 2km

Packet Switched Communication

  • Messages are divided into fixed-size packets
  • Each packet is routed from source to destination

Communication Protocol

  • Software to ensures error-free, reliable, and efficient communication between hosts

Communication Alternatives

  • Twisted pair, coaxial, and microwave

TCP/IP Protocol

  • Includes application, transport, network, and individual networks

Capacity - Bandwidth

  • Refers to the amount of information transmitted over a channel in a given time unit

Circuit Switching

  • Dedicated channel established between sender and receiver for the duration of the session

The Level of Knowledge in DDBS

  • The quantity of information about how users access data

Level of Sharing

  • Data sharing and data-plus program sharing

Three Orthogonal Dimensions of Organization in DDBS

  • Level of sharing, pattern behavior, and level of knowledge

The Placement of Applications

  • The placement of distributed DBMS software and applications on the database

Main Problem of DDBS Design

  • Making decisions about the placement of data and programs across a computer network
  • Possibly designing the network

Patern Behavior

  • Static and dynamic alternatives

The Degree of Fragmentation

  • Ranges from no fragmentation, to fragmentation to the level of individual tuples (horizontal) or attributes (vertical)

Top-Down Design

  • Starts from the general and moves to the specific

Top-Down and Bottom-Up Design

  • Two approaches for developing any DDBS sharing the goal of uniting the system by describing interaction between processes.

Bottom-Up Design

  • Design presented when databases already exist at several sites

Fragmenting a DDB

  • Either the relation isn't replicated and is stored at only one site
  • Or it is replicated at all or some sites, former results in unnecessarily high volume of remote data accesses
  • The latter (unnecessary replication) are reasons to do this

The First Part of a Framework for Top-Down Design Process

  • Requirement analysis, View design and Conceptual design

Replicated and Non-Replicated Alternatives

  • Fully replicated: each fragment at each site
  • Partially replicated: each fragment at some of the sites

A Replicated Alternative

  • Assuming a properly fragmented database, one must decide on the allocation of fragments to various network sites using these

Dividing It Horizontally or Dividing It Vertically

  • Relation instances are essentially tables
  • So the issue is finding alternative ways of dividing a table into smaller ones

Test Correctness

  • Completeness, Reconstruction, and Disjointness are three Fragmentation Rules
  • Ensure database doesn't undergo semantic change

Primary Horizontal Fragmentation

  • Horizontal fragment Ri of relation R consists of tuples satisfying minterm predicate mi

Information Requirements to DDBS

  • Logical organization of database, location of applications, access characteristics and properties of computer system at each site

Vertical Fragmentation

  • Splitting is completed through this

Access Frequencies

  • The frequency at which a user application qi accesses data

Minterm Selectivities

  • The number of tuples of the relation accessed by a user query using a given minterm predicate mi

Primary Horizontal Fragmentation (PHF)

  • Is performed using predicates defined on the original relation

Derived Horizontal Fragmentation (DHF)

  • The partitioning of a relation results from predicates defined on another relation

Completeness of Simple Predicates

  • A set of simple predicates Pr is complete if accesses to tuples of minterm fragments defined on Pr requires tuples of the same minterm fragment
  • They have the same probability of being accessed by an application

Studying That Suits You

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

Quiz Team

Related Documents

More Like This

Relational Algebra Flashcards Chapter 3
15 questions
Relational Algebra Flashcards
10 questions
Relational Algebra Flashcards
14 questions
Relational Algebra Operations
15 questions
Use Quizgecko on...
Browser
Browser