Skip to content

GATE CS Relational Model: Relational Algebra questions

Practise Relational Model: Relational Algebra questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2024DatabasesRelational Model: Relational AlgebraNAT · 1 mark
Consider the following two relations, R(A,B)R(A, B) and S(A,C)S(A, C): …
Official PYQ2024DatabasesRelational Model: Relational AlgebraMCQ · 2 marks
​​​​​The relation schema, Person (pid, city), describes the city of residence for every person uniquely identified by pid. The following relational algebra operators are available: selection, projection, cross product, and rename. To find the list of cities where at least 33 persons reside, using the above operators, the minimum number of cross product …
Official PYQ2023DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Which one of the options given below refers to the degree (or arity) of a relation in relational database systems?
Official PYQ2022DatabasesRelational Model: Relational AlgebraMSQ · 1 mark
Consider the following three relations in a relational database. Employee(eId‾,Name),  Brand(bId‾,bName),  Own(eId‾,bId‾)\text{Employee} (\underline{\text{eId}},\text{Name}), \; \text{Brand}(\underline{\text{bId}},\text{bName}), \; \text{Own}(\underline{\text{eId}},\underline{\text{bId}}) Which of the following relational algebra expressions return the set of elds\textit{elds} who own all the brands?
Official PYQ2021DatabasesRelational Model: Relational AlgebraMCQ · 2 marks
The following relation records the age of 500500 employees of a company, where empNoempNo (indicating the employee number) is the key: empAge(empNo‾,age)empAge(\underline{empNo},age) Consider the following relational algebra expression: ΠempNo(empAge⋈(age>age1)ρempNo1,age1(empAge))\Pi_{empNo}(empAge \Join_{(age>age1)} \rho_{empNo1,age1}(empAge)) What does the above expression generate?
Official PYQ2019DatabasesRelational Model: Relational AlgebraNAT · 2 marks
Consider the following relations P(X,Y,Z),Q(X,Y,T)P(X,Y,Z), Q(X,Y,T) and R(Y,V)R(Y,V). …
Official PYQ2018DatabasesRelational Model: Relational AlgebraMCQ · 2 marks
Consider the relations r(A,B)r(A, B) and s(B,C)s(B, C), where s.Bs.B is a primary key and r.Br.B is a foreign key referencing s.Bs.B. Consider the query Q:r⋈(σB<5(s))Q: r \bowtie (\sigma_{B<5} (s)) Let LOJ denote the natural left outer-join operation. Assume that rr and ss contain no null values. Which of the following is NOT equivalent to QQ?
Official PYQ2017DatabasesRelational Model: Relational AlgebraNAT · 1 mark
Consider a database that has the relation schema CR(StudentName, CourseName). An instance of the schema CR is as given below. …
Official PYQ2014DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
What is the optimized version of the relation algebra expression πA1(πA2(σF1(σF2(r))))\pi_{A1}(\pi_{A2}(\sigma_{F1}(\sigma_{F2}(r)))), where A1,A2A1, A2 are sets of attributes in rr with A1⊂A2A1 \subset A2 and F1,F2F1,F2 are Boolean expressions based on the attributes in rr?
Official PYQ2012DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Consider the following relations A,BA, B and C:C: …
Official PYQ2012DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Suppose R1(A‾,B)R_{1} (\underline{A}, B) and R2(C‾,D)R_{2} (\underline{C}, D) are two relation schemas. Let r1r_{1} and r2r_{2} be the corresponding relation instances. BB is a foreign key that refers to CC in R2R_{2}. If data in r1r_{1} and r2r_{2} satisfy referential integrity constraints, which of the following is ALWAYS TRUE?
Official PYQ2008DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Let R and S be two relations with the following schema R(P,Q‾,R1,R2,R3)R(\underline{P,Q}, R1, R2, R3) S(P,Q‾,S1,S2)S(\underline{P,Q}, S1, S2) where {P,Q}\left\{P, Q\right\} is the key for both schemas. Which of the following queries are equivalent? ΠP(R⋈S)\Pi_P \left(R \bowtie S\right) ΠP(R)⋈ΠP(S)\Pi_P \left(R\right) \bowtie \Pi_P\left(S\right) …
Official PYQ2007DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Information about a collection of students is given by the relation studInfo(studId‾, name, sex)\text{studInfo(}\underline{\text{studId}},\text{ name, sex)}. The relation enroll(studId, courseId)\text{enroll(}{\text{studId}},{\text{ courseId}}) gives which student has enrolled for (or taken) what course(s). Assume that every course is taken by at least one male and at least one female student. What …
Official PYQ2005DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Let r be a relation instance with schema R = (A, B, C, D). We define r1=πA,B,C(R)r_1 = \pi_{A, B, C} (R) and r2=πA,D(r)r_2=\pi_{A, D} (r). Let s=r1 ∗ r2s =r_1 \: * \: r_2 where ∗* denotes natural join. Given that the decomposition of rr into r1r_1 and r2r_2 is lossy, which one of the following is TRUE?
Official PYQ2004DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Consider the following relation schema pertaining to a students database: Students (rollno, name, address) Enroll (rollno, courseno, coursename) where the primary keys are shown underlined. The number of tuples in the student and Enroll tables are 120120 and 88 respectively. What are the maximum and minimum number of tuples that can be present in …
Official PYQ2003DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Consider the following SQL query Select distinct a1,a2,…,ana_1, a_2, …, a_n from r1,r2,…,rmr_1, r_2, …, r_m where P For an arbitrary predicate P, this query is equivalent to which of the following relational algebra expressions?
Official PYQ2001DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Let r and s be two relations over the relation schemes R and S respectively, and let A be an attribute in R. The relational algebra expression σA=a(r⋈s)\sigma_{A=a}(r \bowtie s) is always equal to
Official PYQ2001DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Suppose the adjacency relation of vertices in a graph is represented in a table Adj (X,Y).(X,Y). Which of the following queries cannot be expressed by a relational algebra expression of constant length?
Official PYQ2000DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Given the relations employee (name, salary, dept-no), and department (dept-no, dept-name,address), Which of the following queries cannot be expressed using the basic relational algebra operations (σ,π,×,⋈,∪,∩,−)\left(\sigma, \pi,\times ,\Join, \cup, \cap,-\right)?
Official PYQ1999DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Consider the join of a relation RR with a relation SS. If RR has mm tuples and SS has nn tuples then the maximum and minimum sizes of the join respectively are