Relational algebra is a set of operations used to specify queries in relational databases. There are unary operations like selection and projection that operate on a single relation, and binary operations like join, union, and difference that combine two relations. Aggregate functions can also be applied to compute values like count, sum, average, minimum and maximum over groups of tuples. A sequence of relational algebra operations forms an expression that represents the query.