























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of relational algebra and structured query language (sql). It covers unary and binary operators in relational algebra, sql queries on a single table, sql queries on binary operators, and subqueries. The use of select and project operators in relational algebra, cartesian product, union, intersection, difference, natural join, equijoin, and theta join operators. In sql, the document discusses the select statement, its clauses, and various sql queries based on a single table, such as handling null values, using logical operators, and aggregate functions.
Typology: Slides
1 / 31
This page cannot be seen from the preview
Don't miss anything!
























Data Manipulation: Relational Algebra and SQL
= is greater than or equal to <= is less than or equal to Is greater than < is less than
Example 2 Suppose we want to know all professors who make more than $6000 a month and the professors who work in a certain department (known as code 3) SELECT * FROM PROFESSOR WHERE PROFESSOR.SALARY/12 > 6000 AND PROFESSOR.PR_DPT_DCODE = 3;