GATE CS Databases questions
Practise Databases questions for GATE CS. Explore official PYQs and original subject-wise quizzes, check answers and view available solutions. Free, no sign-in.
Separate schema constraints from assumptions in the question. For SQL, trace joins and grouping; for normalisation, work from the stated functional dependencies.
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 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.isbn; Query 2: SELECT B.isbn, S.copies FROM Book B LEFT OUTER JOIN Stock S ON B.isbn=S.isbn; Query 3: SELECT B.isbn, S,copies FROM Book B RIGHT OUTER JOIN Stock S ON B.isbn=S.isbn Query …
Consider a database that has the relation schema CR(StudentName, CourseName). An instance of the schema CR is as given below. …
In a database system, unique timestamps are assigned to each transaction using Lamport's logical clock. Let and be the timestamps of transactions and respectively. Besides, holds a lock on the resource and has requested a conflicting lock on the same resource The following …
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. Consider the following queries on the database expressed in tuple relational calculus. { | u EMP(t[EmpName] = u[EmpName] v …
Consider a database that has the relation schema EMP (EmpId, EmpName, and DeptName). An instance of the schema EMP and a SQL query on it are given below: …
The following functional dependencies hold true for the relational schema : Which of the following is irreducible equivalent for this set of functional dependencies?
Two transactions and are given as where denotes a operation by transaction on a variable and denotes a operation by transaction on a variable . The total number of conflict serializable …
In a Tree , if the search-key value is bytes long , the block size is bytes and the pointer size is , then the maximum order of the Tree is ____
Consider the following database table named . …
Consider the following tables and …
An ER model of a database consists of entity types and . These are connected by a relationship which does not have its own attribute. Under which one of the following conditions, can the relational table for R be merged with that of A?
Consider the following two phase locking protocol. Suppose a transaction accesses (for read or write operations), a certain set of objects . This is done in the following manner: . acquires exclusive locks to in increasing order of their addresses. . The required …
Which one of the following is NOT a part of the ACID properties of database transactions?
Which of the following is NOT a superkey in a relational schema with attributes and primary key ?
Consider the following database table named water_schemes: …
Consider the following database schedule with two transactions and . Where denotes a read operation by transaction on a variable , denotes a write …
B+ Trees are considered BALANCED because.
Suppose a database schedule involves transactions . Construct the precedence graph of with vertices representing the transactions and edges representing the conflicts. If is serializable, which one of the following orderings of the vertices of the precedence graph is guaranteed to yield a serial schedule?
Consider an Entity-Relationship model in which entity sets and are connected by an relationship . and are connected by a ( on the side of and on the side of ) relationship . has two-singled attributes and …
Consider the following relation: …
