Relational Queries
Study notes are awaiting editorial approval. You can still practise the reviewed questions below.
Related previous-year questions
Practise this topic- 2026 · Consider a relational database schema with two relations $R(P, Q)$ and $S(X, Y)$. Let $E = \{\langle u \rangle \mid \exists v \exists w \langle u, v
- 2025 · Consider two relations describing $teams$ and $players$ in a sports league: - $teams(tid, tname)$: $tid, tname$ are team-id and team-name, respectivel
- 2025 · Consider the following relational schema: Students ($\underline{\text{rollno: integer}}$, name: string, age: integer, cgpa: real) Courses ($\underlin
- 2025 · Consider the following database tables of a sports league. ``` player(pid,pname,age) coach(cid,cname) team(tid,tname,city,cid) members(pid,tid) ```
- 2024 · Consider the following two relations, R(A,B) and S(A,C): The total number of tuples obtained by evaluating the following expression $\sigma_{B<C}(R \
- 2024 · The relation schema, $\text{Person(pid, city)}$, describes the city of residence for every person uniquely identified by $\text{pid}$. The following r
- 2023 · Consider the following table named `Student` in a relational database. The primary key of this table is `rollNum`. Student | rollNum | name | gender
- 2022 · Consider the following three relations in a relational database. $\text{Employee}(\underline{\text{eId}}, \text{Name}), \text{Brand}(\underline{\text
- 2022 · Consider the relational database with the following four schemas and their respective instances. Student($\underline{\text{sNo}}$, sName, dNo) Dep
- 2021 · A relation $r(A, B)$ in a relational database has 1200 tuples. The attribute $A$ has integer values ranging from 6 to 20, and the attribute $B$ has in
- 2021 · The following relation records the age of 500 employees of a company, where empNo (indicating the employee number) is the key: $$empAge(\underline{emp
- 2021 · The relation scheme given below is used to store information about the employees of a company, where empId is the key and deptId indicates the departm