Previous year questions
Databases
123 questions from GATE CS 2011 to 2026, newest first.
Topics
All Databases questions
GATE CS 2026 Set 1, Q.30
Let and be the attributes of a relation in a relational schema. Let indicate functional dependency in the context of a relational database, w...
Functional Dependencies and Normalization
GATE CS 2026 Set 1, Q.31
In the context of relational database normalization, which of the following statements is/are true?
Functional Dependencies and Normalization
GATE CS 2026 Set 1, Q.43
Consider a relational database schema with two relations and . Let…
Relational Algebra and Tuple Relational Calculus
GATE CS 2026 Set 1, Q.65
Consider a relational database schema with a relation . If and are the only two candidate keys of the relation , then the number of super...
Functional Dependencies and Normalization
GATE CS 2026 Set 2, Q.15
In the context of DBMS, consider the two sets T and S given below. T S I: Logical schema L: Views II: Physical schema M: File organization and indexes III: External schema N: Re...
ER Model and Relational Schema Design
GATE CS 2026 Set 2, Q.20
Consider concurrent execution of two transactions and in a DBMS, both of which access a data object . For these two transactions to not conflict on , which one...
Transactions, Serializability and Concurrency Control
GATE CS 2026 Set 2, Q.42
In the context of schema normalization in relational DBMS, consider a set F of functional dependencies. The set of all functional dependencies implied by F is called the closure...
Functional Dependencies and Normalization
GATE CS 2026 Set 2, Q.46
An index in a DBMS is said to be dense if an index entry appears for every search-key value in the indexed file. Otherwise it is called a sparse index. Consider the following tw...
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2025 Set 1, Q.15
A schedule of three database transactions , , and is shown. and denote read and write of data item by transaction , . The...
Transactions, Serializability and Concurrency Control
GATE CS 2025 Set 1, Q.21
Consider the following tree with 5 nodes, in which a node can store at most 3 key values. The value is now inserted in the tree. Which of the following options(...
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2025 Set 1, Q.39
Consider two relations describing and in a sports league: : are...
Relational Algebra and Tuple Relational Calculus
GATE CS 2025 Set 1, Q.47
Consider a relational schema , with functional dependencies…
Functional Dependencies and Normalization
GATE CS 2025 Set 1, Q.55
Consider the following database tables of a sports league.
player(pid,pname,age)coach(cid,cname)team(tid,tname,city,cid)members(pid,tid)An instance of the table and...SQL Queries and Integrity Constraints
GATE CS 2025 Set 2, Q.27
An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account attempted simultaneous transfers of Rs. 10000 each from account...
Transactions, Serializability and Concurrency Control
GATE CS 2025 Set 2, Q.46
Consider the following relational schema along with all the functional dependencies that hold on them.…
Functional Dependencies and Normalization
GATE CS 2025 Set 2, Q.53
Consider the database transactions T1 and T2, and data items X and Y. Which of the schedule(s) is/are conflict serializable? Transaction T1 Transaction T2 R1(X) W2(X) W1(Y) W2(Y...
Transactions, Serializability and Concurrency Control
GATE CS 2025 Set 2, Q.54
Consider the following relational schema:
Students (rollno: integer, name: string, age: integer, cgpa: real)Courses (courseno: integer, cname: string, credits: integer)…SQL Queries and Integrity Constraints
GATE CS 2025 Set 2, Q.57
In a -tree where each node can hold at most four key values, a root to leaf path consists of the following nodes…
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2024 Set 1, Q.20
Let S be the specification: "Instructors teach courses. Students register for courses. Courses are allocated classrooms. Instructors guide students." Which one of the following...
ER Model and Relational Schema Design
GATE CS 2024 Set 1, Q.21
In a B+ tree, the requirement of at least half-full (50%) node occupancy is relaxed for which one of the following cases?
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2024 Set 1, Q.22
Which of the following statements about a relation R in first normal form (1NF) is/are TRUE ?
Functional Dependencies and Normalization
GATE CS 2024 Set 1, Q.35
Consider the following two relations, and : R.A R.B 10 20 20 30 30 40 30 50 50 95 S.A S.C 10 90 30 45 40 80 The total number of tuples obtained by evaluating th...
Relational Algebra and Tuple Relational Calculus
GATE CS 2024 Set 1, Q.44
The symbol indicates functional dependency in the context of a relational database. Which of the following options is/are TRUE?
Functional Dependencies and Normalization
GATE CS 2024 Set 1, Q.46
Consider the following read-write schedule over three transactions , and , where the subscripts in the schedule indicate transaction IDs…
Transactions, Serializability and Concurrency Control
GATE CS 2024 Set 2, Q.19
Once the DBMS informs the user that a transaction has been successfully completed, its effect should persist even if the system crashes before all its changes are reflected on d...
Transactions, Serializability and Concurrency Control
GATE CS 2024 Set 2, Q.20
In the context of owner and weak entity sets in the ER (Entity-Relationship) data model, which one of the following statements is TRUE?
ER Model and Relational Schema Design
GATE CS 2024 Set 2, Q.26
Which of the following file organizations is/are I/O efficient for the scan operation in DBMS?
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2024 Set 2, Q.27
Which of the following statements about the Two Phase Locking (2PL) protocol is/are TRUE?
Transactions, Serializability and Concurrency Control
GATE CS 2024 Set 2, Q.45
The relation schema,
Person(pid,city), describes the city of residence for every person uniquely identified bypid. The following relational algebra operators are available:...Relational Algebra and Tuple Relational Calculus
GATE CS 2024 Set 2, Q.56
A functional dependency is termed as a useful functional dependency if and only if it satisfies all the following three conditions: - is not the empty s...
Functional Dependencies and Normalization · Combinatorics, Counting, Recurrence Relations and Generating Functions
GATE CS 2023, Q.16
Which one of the options given below refers to the degree (or arity) of a relation in relational database systems?
ER Model and Relational Schema Design
GATE CS 2023, Q.61
Consider the following table named Student in a relational database. The primary key of this table is rollNum. rollNum name gender marks 1 Naman M 62 2 Aliya F 70 3 Aliya F 80 4...
SQL Queries and Integrity Constraints
GATE CS 2023, Q.62
Consider a database of fixed-length records, stored as an ordered file. The database has 25,000 records, with each record being 100 bytes, of which the primary key occupies 15 b...
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2022, Q.14
In a relational data model, which one of the following statements is TRUE?
Functional Dependencies and Normalization
GATE CS 2022, Q.25
Consider the following three relations in a relational database.…
Relational Algebra and Tuple Relational Calculus
GATE CS 2022, Q.31
Consider a relation with the following three functional dependencies. The number of superkeys in the relation R i...
Functional Dependencies and Normalization
GATE CS 2022, Q.39
Let and denote read and write operations on a data element by a transaction , respectively. Consider the schedule with four transactions.…
Transactions, Serializability and Concurrency Control
GATE CS 2022, Q.56
Consider the relational database with the following four schemas and their respective instances. Student(sNo, sName, dNo), Dept(dNo, dName), Course(cNo, cName, dNo), Register(sN...
SQL Queries and Integrity Constraints
GATE CS 2021 Set 1, Q.23 (CS Q.13)
Suppose a database system crashes again while recovering from a previous crash. Assume checkpointing is not done by the database either during the transactions or during recover...
Transactions, Serializability and Concurrency Control
GATE CS 2021 Set 1, Q.33 (CS Q.23)
A relation in a relational database has 1200 tuples. The attribute has integer values ranging from 6 to 20, and the attribute has integer values ranging from 1...
Relational Algebra and Tuple Relational Calculus
GATE CS 2021 Set 1, Q.37 (CS Q.27)
The following relation records the age of 500 employees of a company, where empNo (indicating the employee number) is the key: Consid...
Relational Algebra and Tuple Relational Calculus
GATE CS 2021 Set 1, Q.42 (CS Q.32)
Let and denote read and write operations respectively on a data item by a transaction . Consider the following two schedules.…
Transactions, Serializability and Concurrency Control
GATE CS 2021 Set 1, Q.43 (CS Q.33)
Consider the relation with the following functional dependencies.…
Functional Dependencies and Normalization
GATE CS 2021 Set 1, Q.57 (CS Q.47)
Consider a dynamic hashing approach for 4-bit integer keys: 1. There is a main hash table of size 4. 2. The 2 least significant bits of a key is used to index into the main hash...
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2021 Set 2, Q.16 (CS Q.6)
Consider the following statements and about the relational data model: : A relation scheme can have at most one foreign key. : A foreign key in a relation...
ER Model and Relational Schema Design
GATE CS 2021 Set 2, Q.31 (CS Q.21)
A data file consisting of 1,50,000 student-records is stored on a hard disk with block size of 4096 bytes. The data file is sorted on the primary key
RollNo. The size of a rec...File Organization, B-Trees and B+ Trees Indexing
GATE CS 2021 Set 2, Q.41 (CS Q.31)
The relation scheme given below is used to store information about the employees of a company, where
empIdis the key anddeptIdindicates the department to which the employ...SQL Queries and Integrity Constraints
GATE CS 2021 Set 2, Q.42 (CS Q.32)
Let be the following schedule of operations of three transactions , and in a relational database system…
Transactions, Serializability and Concurrency Control
GATE CS 2021 Set 2, Q.50 (CS Q.40)
Suppose the following functional dependencies hold on a relation with attributes , and : Which of the following functional dependenc...
Functional Dependencies and Normalization
GATE CS 2020, Q.23 (CS Q.13)
Consider a relational database containing the following schemas. sno pno cost S1 P1 150 S1 P2 50 S1 P3 100 S2 P4 200 S2 P5 250 S3 P1 250 S3 P2 150 S3 P5 300 S3 P4 250 sno sname...
SQL Queries and Integrity Constraints
GATE CS 2020, Q.24 (CS Q.14)
Which one of the following is used to represent the supporting many-one relationships of a weak entity set in an entity-relationship diagram?
ER Model and Relational Schema Design
GATE CS 2020, Q.46 (CS Q.36)
Consider a relational table that is in 3NF, but not in BCNF. Which one of the following statements is TRUE?
Functional Dependencies and Normalization
GATE CS 2020, Q.47 (CS Q.37)
Consider a schedule of transactions and given below.…
Transactions, Serializability and Concurrency Control
GATE CS 2020, Q.64 (CS Q.54)
Consider a database implemented using B+ tree for file indexing and installed on a disk drive with block size of 4 KB. The size of search key is 12 bytes and the size of tree/di...
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2019, Q.21 (CS Q.11)
Consider the following two statements about database transaction schedules: I. Strict two-phase locking protocol generates conflict serializable schedules that are also recovera...
Transactions, Serializability and Concurrency Control
GATE CS 2019, Q.24 (CS Q.14)
Which one of the following statements is NOT correct about the B+ tree data structure used for creating an index of a relational database table?
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2019, Q.42 (CS Q.32)
Let the set of functional dependencies hold on a relation schema . is not in BCNF. Suppose is decomposed into two schema...
Functional Dependencies and Normalization
GATE CS 2019, Q.61 (CS Q.51)
A relational database contains two tables
StudentandPerformanceas shown below: Student | Roll_no. | Student_name | | :--- | :--- | | 1 | Amit | | 2 | Priya | | 3 | Vi...SQL Queries and Integrity Constraints
GATE CS 2019, Q.65 (CS Q.55)
Consider the following relations , and : P | X | Y | Z | | :--- | :--- | :--- | | X1 | Y1 | Z1 | | X1 | Y1 | Z2 | | X2 | Y2 | Z2 | | X2 | Y...
Relational Algebra and Tuple Relational Calculus
GATE CS 2018, Q.21 (CS Q.11)
In an Entity-Relationship (ER) model, suppose is a many-to-one relationship from entity set E1 to entity set E2. Assume that E1 and E2 participate totally in and that th...
ER Model and Relational Schema Design
GATE CS 2018, Q.22 (CS Q.12)
Consider the following two tables and four queries in SQL. Book (isbn, bname), Stock (isbn, copies) Query 1: SELECT B.isbn, S.copies FROM Book B INNER JOIN Stock S ON B.isbn = S...
Relational Algebra and Tuple Relational Calculus
GATE CS 2018, Q.51 (CS Q.41)
Consider the relations and , where is a primary key and is a foreign key referencing . Consider the query ...
Relational Algebra and Tuple Relational Calculus
GATE CS 2018, Q.52 (CS Q.42)
Consider the following four relational schemas. For each schema, all non-trivial functional dependencies are listed. The underlined attributes are the respective primary keys. S...
Functional Dependencies and Normalization
GATE CS 2017 Set 1, Q.16 (CS Q.16)
The following functional dependencies hold true for the relational schema : Which of the following is irreduc...
Functional Dependencies and Normalization
GATE CS 2017 Set 1, Q.23 (CS Q.23)
Consider a database that has the relation schema . An instance of the schema EMP and a SQL query on it are given below...
SQL Queries and Integrity Constraints
GATE CS 2017 Set 1, Q.41 (CS Q.41)
Consider a database that has the relation schemas EMP(EmpId, EmpName, DeptId), and DEPT(DeptName, DeptId). Note that the DeptId can be permitted to be NULL in the relation EMP....
Relational Algebra and Tuple Relational Calculus
GATE CS 2017 Set 1, Q.42 (CS Q.42)
In a database system, unique timestamps are assigned to each transaction using Lamport's logical clock. Let and be the timestamps of transactio...
Transactions, Serializability and Concurrency Control
GATE CS 2017 Set 1, Q.46 (CS Q.46)
Consider a database that has the relation schema . An instance of the schema CR is as given below. StudentName CourseName SA CA...
Relational Algebra and Tuple Relational Calculus
GATE CS 2017 Set 2, Q.17 (CS Q.17)
An ER model of a database consists of entity types A and B. These are connected by a relationship R which does not have its own attribute. Under which one of the following condi...
ER Model and Relational Schema Design
GATE CS 2017 Set 2, Q.19 (CS Q.19)
Consider the following tables T1 and T2. Table T1 | P | Q | | :-: | :-: | | 2 | 2 | | 3 | 8 | | 7 | 3 | | 5 | 8 | | 6 | 9 | | 8 | 5 | | 9 | 8 | Table T2 | R | S | | :-:...
ER Model and Relational Schema Design · SQL Queries and Integrity Constraints
GATE CS 2017 Set 2, Q.44 (CS Q.44)
Two transactions and are given as where denotes a...
Transactions, Serializability and Concurrency Control
GATE CS 2017 Set 2, Q.46 (CS Q.46)
Consider the following database table named
top_scorer. | player | country | goals | | :--- | :--- | :---: | | Klose | Germany | 16 | | Ronaldo | Brazil | 15 | | G Müller | Ge...SQL Queries and Integrity Constraints
GATE CS 2017 Set 2, Q.49 (CS Q.49)
In a B+ tree, if the search-key value is 8 bytes long, the block size is 512 bytes and the block pointer size is 2 bytes, then the maximum order of the B+ tree is
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2016 Set 1, Q.31 (CS Q.21)
Which of the following is NOT a superkey in a relational schema with attributes and primary key ?
ER Model and Relational Schema Design
GATE CS 2016 Set 1, Q.32 (CS Q.22)
Which one of the following is NOT a part of the ACID properties of database transactions?
Transactions, Serializability and Concurrency Control
GATE CS 2016 Set 1, Q.33 (CS Q.23)
A database of research articles in a journal uses the following schema.…
Functional Dependencies and Normalization
GATE CS 2016 Set 1, Q.61 (CS Q.51)
Consider the following two phase locking protocol. Suppose a transaction accesses (for read or write operations), a certain set of objects . This is don...
Transactions, Serializability and Concurrency Control
GATE CS 2016 Set 2, Q.31 (CS Q.21)
B+ Trees are considered BALANCED because
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2016 Set 2, Q.32 (CS Q.22)
Suppose a database schedule involves transactions . Construct the precedence graph of with vertices representing the transactions and edges representing...
Transactions, Serializability and Concurrency Control
GATE CS 2016 Set 2, Q.61 (CS Q.51)
Consider the following database schedule with two transactions, and . where denotes a read o...
Transactions, Serializability and Concurrency Control
GATE CS 2016 Set 2, Q.62 (CS Q.52)
Consider the following database table named
water_schemes: scheme_no | district_name | capacity 1 | Ajmer | 20 1 | Bikaner | 10 2 | Bikaner | 10 3 | Bikaner | 20 1 | Churu | 1...SQL Queries and Integrity Constraints
GATE CS 2015 Set 1, Q.17 (CS Q.7)
SELECT operation in SQL is equivalent to:
SQL Queries and Integrity Constraints
GATE CS 2015 Set 1, Q.34 (CS Q.24)
A file is organized so that the ordering of data records is the same as or close to the ordering of data entries in some index. Then that index is called:
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2015 Set 1, Q.37 (CS Q.27)
Consider the following relations: Student | Roll No | Student Name | | :---: | :---: | | 1 | Raj | | 2 | Rohit | | 3 | Raj | Performance | Roll No | Course | Marks | | :...
SQL Queries and Integrity Constraints
GATE CS 2015 Set 1, Q.51 (CS Q.41)
Consider an Entity-Relationship (ER) model in which entity sets and are connected by an relationship . and are connected by a ( on...
ER Model and Relational Schema Design
GATE CS 2015 Set 2, Q.11 (CS Q.1)
Consider the following transaction involving two bank accounts and .…
Transactions, Serializability and Concurrency Control
GATE CS 2015 Set 2, Q.16 (CS Q.6)
With reference to the B+ tree index of order 1 shown below, the minimum number of nodes (including the Root node) that must be fetched in order to satisfy the following query: "...
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2015 Set 2, Q.42 (CS Q.32)
Consider two relations with the tuples and with . Assume that is the full natural outer join of and…
Relational Algebra and Tuple Relational Calculus
GATE CS 2015 Set 2, Q.56 (CS Q.46)
Consider a simple checkpointing protocol and the following set of operations in the log:
(start, T4); (write, T4, y, 2, 3); (start, T1); (commit, T4); (write, T1, z, 5, 7);…Transactions, Serializability and Concurrency Control
GATE CS 2015 Set 3, Q.13 (CS Q.3)
Consider the following relation Which of the following options will be needed at the end of the SQL query ...
SQL Queries and Integrity Constraints · Relational Algebra and Tuple Relational Calculus
GATE CS 2015 Set 3, Q.30 (CS Q.20)
Consider the relation with the following set of functional dependencies Which of the followi...
Functional Dependencies and Normalization
GATE CS 2015 Set 3, Q.39 (CS Q.29)
Consider the following partial Schedule involving two transactions and . Only the read and the write operations have been shown. The read operation on data item ...
Transactions, Serializability and Concurrency Control
GATE CS 2015 Set 3, Q.56 (CS Q.46)
Consider a B+ tree in which the search key is 12 bytes long, block size is 1024 bytes, record pointer is 10 bytes long and block pointer is 8 bytes long. The maximum number of k...
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2014 Set 1, Q.31 (CS Q.21)
Consider the relation scheme and the set of functional dependencies…
Functional Dependencies and Normalization
GATE CS 2014 Set 1, Q.32 (CS Q.22)
Given the following statements: S1: A foreign key declaration can always be replaced by an equivalent check assertion in SQL. S2: Given the table R(a,b,c) where a and b together...
SQL Queries and Integrity Constraints
GATE CS 2014 Set 1, Q.39 (CS Q.29)
Consider the following four schedules due to three transactions (indicated by the subscript) using read and write on a data item x, denoted by r(x) and w(x) respectively. Which...
Transactions, Serializability and Concurrency Control
GATE CS 2014 Set 1, Q.40 (CS Q.30)
Given the following two statements: S1: Every table with two single-valued attributes is in 1NF, 2NF, 3NF and BCNF. S2: ABC, DE, EC is a minimal cover for the set...
Functional Dependencies and Normalization
GATE CS 2014 Set 1, Q.64 (CS Q.54)
Given the following schema: employees(emp-id, first-name, last-name, hire-date, dept-id, salary) departments(dept-id, dept-name, manager-id, location-id) You want to...
SQL Queries and Integrity Constraints
GATE CS 2014 Set 2, Q.31 (CS Q.21)
The maximum number of superkeys for the relation schema with as the key is _____.
Functional Dependencies and Normalization
GATE CS 2014 Set 2, Q.32 (CS Q.22)
Given an instance of the STUDENTS relation as shown below: | StudentID | StudentName | StudentEmail | StudentAge | CPI | | :--- | :--- | :--- | :--- | :--- | | 2345 | Shankar |...
ER Model and Relational Schema Design
GATE CS 2014 Set 2, Q.39 (CS Q.29)
Consider the following schedule S of transactions T1, T2, T3, T4: | T1 | T2 | T3 | T4 | | :--- | :--- | :--- | :--- | | | Reads(X) | | | | | | Writes(X) / Commit | | | Write...
Transactions, Serializability and Concurrency Control
GATE CS 2014 Set 2, Q.40 (CS Q.30)
Consider a join (relational algebra) between relations and using the nested loop method. There are 3 buffers each of size equal to disk block size, out of which on...
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2014 Set 2, Q.64 (CS Q.54)
SQL allows duplicate tuples in relations, and correspondingly defines the multiplicity of tuples in the result of joins. Which one of the following queries always gives the same...
SQL Queries and Integrity Constraints
GATE CS 2014 Set 3, Q.31 (CS Q.21)
What is the optimized version of the relation algebra expression , where are sets of attributes in with…
Relational Algebra and Tuple Relational Calculus
GATE CS 2014 Set 3, Q.32 (CS Q.22)
A prime attribute of a relation scheme is an attribute that appears
Functional Dependencies and Normalization
GATE CS 2014 Set 3, Q.39 (CS Q.29)
Consider the transactions T1, T2, and T3 and the schedules S1 and S2 given below. T1: r1(X); r1(Z); w1(X); w1(Z) T2: r2(Y); r2(Z); w2(Z) T3: r3(Y); r3(X); w3(Y) S1: r1(X); r3(Y)...
Transactions, Serializability and Concurrency Control
GATE CS 2014 Set 3, Q.40 (CS Q.30)
Consider the relational schema given below, where eId of the relation dependent is a foreign key referring to empId of the relation employee. Assume that every employee has at l...
Relational Algebra and Tuple Relational Calculus
GATE CS 2014 Set 3, Q.64 (CS Q.54)
Consider the following relational schema: employee(empId, empName, empDept) customer(custId, custName, salesRepId, rating) salesRepId is a foreign key referring to e...
SQL Queries and Integrity Constraints
GATE CS 2013, Q.15 (CS Q.15)
An index is clustered, if
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2013, Q.35 (CS Q.35)
Consider the following relational schema. …
Relational Algebra and Tuple Relational Calculus
GATE CS 2013, Q.54 (CS Q.54)
How many candidate keys does the relation R have?
Functional Dependencies and Normalization
GATE CS 2013, Q.55 (CS Q.55)
The relation R is
Functional Dependencies and Normalization
GATE CS 2012, Q.2 (CS Q.2)
Which of the following is TRUE?
Functional Dependencies and Normalization
GATE CS 2012, Q.14 (CS Q.14)
Given the basic ER and relational models, which of the following is INCORRECT?
Relational Algebra and Tuple Relational Calculus · ER Model and Relational Schema Design
GATE CS 2012, Q.15 (CS Q.15)
Which of the following statements are TRUE about an SQL query? : An SQL query can contain a HAVING clause even if it does not have a GROUP BY clause : An SQL query can con...
SQL Queries and Integrity Constraints
GATE CS 2012, Q.27 (CS Q.27)
Consider the following transactions with data items and initialized to zero: : read (); read (); if then ; write (). : read ();...
Transactions, Serializability and Concurrency Control
GATE CS 2012, Q.43 (CS Q.43)
Suppose and are two relation schemas. Let and be the corresponding relation instances. is a foreign key that refers to in . If d...
Relational Algebra and Tuple Relational Calculus · Relational Algebra and Tuple Relational Calculus
GATE CS 2012, Q.50 (CS Q.50)
How many tuples does the result of the following relational algebra expression contain? Assume that the schema of is the same as that of .…
Relational Algebra and Tuple Relational Calculus
GATE CS 2012, Q.51 (CS Q.51)
How many tuples does the result of the following SQL query contain? SELECT A.Id FROM A WHERE A.Age > ALL (SELECT B.Age FROM B WHERE B.Name = 'Arun')
SQL Queries and Integrity Constraints
GATE CS 2011, Q.12 (CS Q.12)
Consider a relational table with a single record for each registered student with the following attributes. 1. Registration_Num: Unique registration number of each registered st...
ER Model and Relational Schema Design
GATE CS 2011, Q.32 (CS Q.32)
Consider a database table containing two columns and each of type integer. After the creation of the table, one record is inserted in the table. Let…
SQL Queries and Integrity Constraints
GATE CS 2011, Q.39 (CS Q.39)
Consider a relational table with sufficient number of records, having attributes and let . Two queries Q1 and Q2 are given below. Q1…
File Organization, B-Trees and B+ Trees Indexing
GATE CS 2011, Q.46 (CS Q.46)
Database table by name
Loan_Recordsis given below. Borrower Bank_Manager Loan_Amount Ramesh Sunderajan 10000.00 Suresh Ramgopal 5000.00 Mahesh Sunderajan 7000.00 What is the...SQL Queries and Integrity Constraints