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
Let and be the attributes of a relation in a relational schema. Let indicate functional dependency in the context of a relational database, where . Which of the following options is/are always true?
In the context of relational database normalization, which of the following statements is/are true?
Consider a relational database schema with two relations and . Let be a tuple relational calculus expression. Which one of the following relational algebraic expressions is equivalent to ?
Consider a relational database schema with a relation . If and are the only two candidate keys of the relation , then the number of superkeys of relation is . (answer in integer)
In the context of DBMS, consider the two sets and given below. …
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 of the following statements must be true?
In the context of schema normalization in relational DBMS, consider a set of functional dependencies. The set of all functional dependencies implied by is called the closure of . To compute the closure of , Armstrong's Axioms can be applied. Consider , and as sets of attributes over a relational …
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 two statements. : A hash index must be a dense index : A tree index can be a sparse index Which one of the following options is correct?
A schedule of three database transactions , and is shown. and denote read and write of data item by transaction . The transaction aborts at the end. Which other transaction(s) will be required to be rolled back? …
Consider the following tree with nodes, in which a node can store at most key values The value is now inserted in the tree. Which of the following options(s) is/are CORRECT?
Consider two relations describing teams and players in a sports league: teams(tid, tname): tid, tname are team-id and team-name, respectively players(pid,pname,tid): pid, pname, and tid denote player-id, playername and the team-id of the player, respectively Which ONE of the following tuple relational calculus queries returns the name of the players who play …
Consider a relational schema team , with functional dependencies . The relation team is decomposed into two relations, and . Which of the following statement(s) is/are TRUE?
Consider the following database tables of a sports league. player (pid, pname, age) team(tid, tname, city, cid) coach (cid, cname) members (pid,tid) An instance of the table and an SQL query are given. …
Consider the database transactions T1 and T2 , and data items X and Y . Which of the schedule(s) is/are conflict serializable? …
Consider the following relational schema: Students ( name: string, age: integer, cgpa: real) Courses ( cname: string, credits: integer) Enrolled ( grade: string) Which of the following options is/are …
In a - tree where each node can hold at most four key values, a root to leaf path consists of the following nodes: The -marked keys signify that these are data entries in a leaf. Assume that a pointer between keys and …
An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account attempted simultaneous transfers of Rs. each from account to account . Both transactions read the same value, Rs., as the initial balance in and were allowed to go through. was credited Rs. …
Consider the following relational schema along with all the functional dependencies that hold on them. Which of the following statement(s) is/are TRUE?
Let be the specification: "Instructors teach courses. Students register for courses. Courses are allocated classrooms. Instructors guide students." Which one of the following diagrams CORRECTLY represents ?
In a tree, the requirement of at least half-full node occupancy is relaxed for which one of the following cases?
