0% found this document useful (0 votes)
242 views1 page

Activity 1

The document describes four relational algebra operations on two relations: SUBJECT1 and SUBJECT2. Operation 1 projects the STU_CODE attribute from SUBJECT1. Operation 2 performs a union of SUBJECT1 and SUBJECT2. Operation 3 performs a semi-join of the STUDENTS and SECTIONS relations, keeping only the common tuples. Operation 4 shows the STUDENTS and SECTIONS relations.

Uploaded by

RCOA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
242 views1 page

Activity 1

The document describes four relational algebra operations on two relations: SUBJECT1 and SUBJECT2. Operation 1 projects the STU_CODE attribute from SUBJECT1. Operation 2 performs a union of SUBJECT1 and SUBJECT2. Operation 3 performs a semi-join of the STUDENTS and SECTIONS relations, keeping only the common tuples. Operation 4 shows the STUDENTS and SECTIONS relations.

Uploaded by

RCOA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Wilbur B.

Pimentel BT401P

Determine the result of the relational algebra operation.

1. Π STU_CODE (SUBJECT1) 4. STUDENTS ꟷ SECTIONS


STU_CODE PROF_CODE
STU_CODE
541352 2
200378

139578 412345 3

512274 512274 4

541352 312456 4

412345

394715

2. SUBJECT1 ᴜ SUBJECT2

STU_CODE PROF_CODE

394751 1
139578 2
200378 3
541352 2
412345 3
512274 4
312456 4

3. STUDENTS Ⴖ SECTIONS

STU_CODE PROF_CODE

394751 1

139578 2

200378 3

This study source was downloaded by 100000860334776 from CourseHero.com on 03-30-2023 07:51:07 GMT -05:00

https://www.coursehero.com/file/138830185/Activity1docx/

Powered by TCPDF (www.tcpdf.org)

You might also like