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
Consider the following two relations, and : …
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 persons reside, using the above operators, the minimum number of cross product …
Which one of the options given below refers to the degree (or arity) of a relation in relational database systems?
Consider the following three relations in a relational database. Which of the following relational algebra expressions return the set of who own all the brands?
The following relation records the age of employees of a company, where (indicating the employee number) is the key: Consider the following relational algebra expression: What does the above expression generate?
Consider the following relations and . …
Consider the relations and , where is a primary key and is a foreign key referencing . Consider the query Let LOJ denote the natural left outer-join operation. Assume that and contain no null values. Which of the following is NOT equivalent to ?
Consider a database that has the relation schema CR(StudentName, CourseName). An instance of the schema CR is as given below. …
What is the optimized version of the relation algebra expression , where are sets of attributes in with and are Boolean expressions based on the attributes in ?
Consider the following relations and …
Suppose and are two relation schemas. Let and be the corresponding relation instances. is a foreign key that refers to in . If data in and satisfy referential integrity constraints, which of the following is ALWAYS TRUE?
Let R and S be two relations with the following schema where is the key for both schemas. Which of the following queries are equivalent? …
Information about a collection of students is given by the relation . The relation 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 …
Let r be a relation instance with schema R = (A, B, C, D). We define and . Let where denotes natural join. Given that the decomposition of into and is lossy, which one of the following is TRUE?
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 and respectively. What are the maximum and minimum number of tuples that can be present in …
Consider the following SQL query Select distinct from where P For an arbitrary predicate P, this query is equivalent to which of the following relational algebra expressions?
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 is always equal to
Suppose the adjacency relation of vertices in a graph is represented in a table Adj Which of the following queries cannot be expressed by a relational algebra expression of constant length?
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 ?
Consider the join of a relation with a relation . If has tuples and has tuples then the maximum and minimum sizes of the join respectively are
