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 three data items and and the following execution schedule of transactions and In the diagram, and denote the actions reading and writing the data item respectively. …
Consider the set of relations shown below and the SQL query that follows. Students: (Roll_number, Name, Date_of_birth) Courses: (Course_number, Course_name, Instructor) Grades: (Roll_number, Course_number, Grade) Select distinct Name from Students, Courses, Grades where Students.Roll_number=Grades.Roll_number and Courses.Instructor = 'Korth' and …
Consider the following functional dependencies in a database. …
Consider the following tree (i.e., B-tree with a minimum degree of two) in which each data item is a letter. The usual alphabetical ordering of letters is used in constructing the tree. What is the result of inserting in the above tree?
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?
Which of the following scenarios may lead to an irrecoverable error in a database system?
From the following instance of a relation schema , we can conclude that:
Relation is decomposed using a set of functional dependencies, , and relation is decomposed using another set of functional dependencies, . One decomposition is definitely , the other is definitely , but it is not known which is which. To make a guaranteed identification, which one of the following tests should be …
A - tree index is to be built on the Name attribute of the relation STUDENT. Assume that all the student names are of length bytes, disk blocks are of size bytes, and index pointers are of size bytes. Given the scenario, what would be the best choice of the degree (i.e. number of pointers per node) of the - tree?
With regards to the expressive power of the formal relational query languages, which of the following statements is true?
Relation with an associated set of functional dependencies, , is decomposed into . The redundancy (arising out of functional dependencies) in the resulting set of relations is
Consider a relation geq which represents "greater than or equal to", that is, geq only if . create table geq ( ib integer not null, ub integer not null, primary key ib, foreign key (ub) references geq on delete cascade ); Which of the following is possible if tuple (x,y) is deleted?
Which of the following relational calculus expression is not safe?
is a relation. Which of the following does not have a lossless join, dependency preserving decomposition?
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?
In SQL, relations can contain null values, and comparisons with null values are treated as unknown. Suppose all comparisons with a null value are treated as false. Which of the following pairs is not equivalent?
Given relations r(w, x) and s(y, z) the result of select distinct w, x from r, s is guaranteed to be same as r, provided.
Given the following relation instance. Which of the following functional dependencies are …
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 ?
