Semijoin and composition - sql, PL-SQL Programming

Semijoin and Composition - SQL

For semijoin, the dyadic relational operator MATCHING, defined thus:

r1 MATCHING r2, where r1 and r2 are relations such that r1 JOIN r2 is defined, is equivalent to

(r1 JOIN r2) {r1-attrs}

where r1-attrs is a commalist containing all and only the attribute names of r1.

and the example

COURSE MATCHING EXAM_MARK

is given as a relational expression for the predicate, "There exist a student StudentId and a mark Mark such that StudentId sat the exam and scored Mark marks for course CourseId and CourseId is entitled Title" (which could be abbreviated to "At least one student sat the exam for Course CourseId, entitled Title"). The resulting relation consists of just those tuples in COURSE that have at least one matching tuple in EXAM_MARK.

Posted Date: 1/18/2013 6:02:00 AM | Location : United States







Related Discussions:- Semijoin and composition - sql, Assignment Help, Ask Question on Semijoin and composition - sql, Get Answer, Expert's Help, Semijoin and composition - sql Discussions

Write discussion on Semijoin and composition - sql
Your posts are moderated
Related Questions
%NOTFOUND The %NOTFOUND is the logical opposite of the %FOUND. The %NOTFOUND yields TRUE when an INSERT, UPDATE, or DELETE statement affected no rows, or the SELECT INTO state

Using Subqueries A subquery is a query (typically enclosed by parentheses) that appears within another SQL data manipulation statement. If evaluated, the subquery gives a va

Organi c Evolution Evolution is a slow continuous, irreversible and natural process of change to give rise to advance and diverse forms of life i.e. formation of new specie

Cursor Variables As Parameters You can declare the cursor variables as the formal parameters of the functions and procedures. In the illustration below, you define the REF CUR

At times, Brewbean's has changed the id number for existing products. In the past, they have had to add a new product row with the new id to the BB_PRODUCT table, modify all the co

Create a Oracle procedure to produce vertical output format when selecting rows from a database table.

Table Represents an Extension - SQL It describes how each tuple in a relation represents a true instantiation of some predicate and each true instantiation is represented by s

First Step at defining type SID in SQL CREATE TYPE SID AS ( C VARCHAR(5) ) ; Explanation: TYPE SID announces that a type named SID is being defined to the syst

How Transactions Guard Your Database The transaction is a sequence of SQL data manipulation statements which does a logical unit of work. The Oracle treats the sequence of SQL

JOIN and AND in SQL In this Section is all about one operator, JOIN. SQL's closest counterpart, NATURAL JOIN, has already been covered. Here we look at several other "join" op