GATE DA › Database Management and Warehousing
Relational Model & SQL 299 past exam problems with worked solutions.
Practise them on GATE DA →
ER-Model UGC-NET Dec 2013 : An E-R model includes I. An ER diagram portraying entity types. II. Attributes for each entity type. III.…UGC-NET Dec 2013 : Find the false statement:UGC-NET Dec 2014 : What kind of mechanism is to be taken into account for converting a weak entity set into strong entity set in…UGC-NET Jan 2017 : Let M and N be two entities in an E-R diagram with simple single value attributes. R_1 and R_2 are two relationship…UGC-NET Jul 2018 : Relations produced from E-R Model will always be in _____UGC-NET Jun 2015 : Which of the following statements is false about weak entity set?UGC-NET Jun 2015 : Let E_1 and E_2 be two entities in E-R diagram with simple single valued attributes. R_1 and R_2 are two relationships…UGC-NET Sep 2013 : Match the following: (a) Create (i) The ER model; (b) Select (ii) Relationship model; (c) Rectangle (iii) DDL; (d)…UGC-NET Jun 2014 : Manager’s salary details are hidden from the employee. This is called asUGC-NET Jun 2014 : Match the following: cIcI List – I List – II; a. DDL i. LOCK TABLE; b. DML ii. COMMIT; c. TCL iii. Natural Differece;…UGC-NET Jun 2012 : In multiuser database if two users wish to update the same record at the same time, they are prevented from doing so byUGC-NET Jun 2012 : The problem that occurs when one transaction updates a database item and the transaction fails for some reason isUGC-NET Dec 2012 : The User Work Area (UWA) is a set of Program variables declared in the host program to communicate the contents of…UGC-NET Jun 2013 : Match the following: a. Foreign keys i. Domain constraint b. Private key ii. Referential integrity c. Event control…UGC-NET Dec 2013 : GO BOTTOM and SKIP-3 commands are given one after another in a database file of 30 records. It shifts the control toUGC-NET Dec 2013 : Match the following: clcl List – I List – II; a. Secondary Index i. Functional Dependency; b. Non-procedural Query…UGC-NET Dec 2015 : Match the following database terms to their functions: clcl List – I List – II; (a) Normalization (i) Enforces match…UGC-NET Dec 2015 : Which of the following provides the best description of an entity type?UGC-NET Dec 2015 : A data which improves the performance and accessibility of the database are called:UGC-NET Jul 2016 : Which of the following statement(s) is/are FALSE in the context of Relational DBMS? I. Views in a database system are…UGC-NET Jul 2016 : Which of the following statements is true? D_1: The decomposition of the schema R(A, B, C) into R _1 (A,B) and R _2…UGC-NET Jul 2016 : Which of the following statements is correct?UGC-NET Dec 2013 : Based on the cardinality ratio and participation ______ associated with a relationship type, choose either the Foreign…UGC-NET Sep 2013 : Cross_tab displays permit users to view ____ of multidimensional data at a time.UGC-NET Oct 2020 : Consider a relational schema S=(U,V,W,X,Y,Z) on which the following functional dependencies hold: (U → V, VW → X, Y →…UGC-NET Dec 2013 : Data Integrity control usesUGC-NET Jun 2012 : Which level of abstraction describes what data are stored in the database?UGC-NET Sep 2013 : Views are useful for ____ unwanted information, and for collecting together information from more than one relation…UGC-NET Dec 2013 : The student marks should not be greater than 100. This isUGC-NET Jan 2017 : An attribute A of datatype varchar (20) has value 'Ram' and the attribute B of datatype char (20) has value 'Sita' in…UGC-NET Dec 2012 : If a relation with a Schema R is decomposed into two relations R_1 and R_2 such that (R_1 ∪ R_2) = R_1 then which one…GATE CS 2001 · January 2017 Part 2 : Consider a schema R(A,B,C,D) and functional dependencies A → B and C → D. Then the decomposition of R into R1(AB) and…UGC-NET Jul 2016 : In distributed databases, location transparency allows for database users, programmers and administratirs to treat the…UGC-NET Jun 2014 : Specialization Lattice stands forUGC-NET Jun 2015 : Database applications were built directly on top of file systems to overcome the following drawbacks of using file…UGC-NET Jun 2012 : What is Granularity?UGC-NET Jun 2014 : A clustering index is created when _______.UGC-NET Jul 2018 : A many-to-one relationship exists between entity sets r_1 and r_2. How will it be represented using functional…UGC-NET Jun 2013 : Horn clauses are special kinds of propositions which can be described asUGC-NET Jun 2013 : The “PROJECT” operator of a relational algebra creates a new table that has alwaysUGC-NET Sep 2013 : ____ constraints ensure that a value that appears in one relation for a given set of attributes also appears for a…UGC-NET Jul 2018 : Let R_1(a, b, c) and R_2(x, y, z) be two relations in which a is the foreign key of R_1 that refers to the primary key…UGC-NET Oct 2020 : In the context of concurrency control, a given pair of operations in a schedule is called conflicting if (a) At least…UGC-NET Jun 2015 : For a weak entity set to be meaningful, it must be associated with another entity set in combination with some of…UGC-NET Jun 2012 : What deletes the entire file except the file structure?UGC-NET Nov 2017 : Match the following with respect to RDBMS: (a) Entity integrity (i) enforces some specific business rule that do not;…Curated : Which one of the following is used to represent the supporting many-one relationships of a weak entity set in an…GATE CS 2024 · Set-2 : In the context of owner and weak entity sets in the ER (Entity-Relationship) data model, which one of the following…GATE CS 2022 : Consider the following three relations in a relational database. Employee(eId, Name), Brand (bId, bName), Own(eId,bId)…ISRO 2018 : Immunity of the external schemas (or application programs) to changes in the conceptual scheme is referred to as:ISRO 2018 : In E-R model, Y is the dominant entity and X is subordinate entityISRO 2017 : What does a data dictionary will identify?ISRO 2016 : Given the relations employee (name, salary, dept-no), and department (dept-no, dept-name,address), Which of the…ISRO 2016 : Goals for the design of the logical scheme includeISRO 2015 : If D_1,D_2,...D_n are domains in a relational model, then the relation is a table, which is a subset ofISRO 2015 : The maximum length of an attribute of type text isISRO 2015 : Consider the following Relationship Entity Diagram(ERP) Which of the following possible relations will not hold if the…ISRO 2014 : An aggregation association is drawn using which symbol?GATE CS 2014 · Set-2 : The maximum number of super keys for the relation schema R (E, F, G, H) with E as the key is __________. rule2.5cm0.4ptGATE CS 2012 : Consider the following relations A, B and C: A B C; hline Id Name Age; hline 12 Arun 60; 15 Shreya 24; 99 Rohit 11;…GATE CS 2012 : Given the basic ER and relational models, which of the following is INCORRECT?GATE IT 2008 : Consider the following relational schema:Student(school-id,sch-roll-no,sname,saddress)…GATE CS 2008 : Which of the following tuple relational calculus expression(s) is/are equivalent to ∀ t ∈ r(P(t))? I. ¬ ∃ t ∈ r(P(t))…GATE CS 2007 : Consider the relation employee(name, sex, supervisorName) with name as the key. supervisorName gives the name of the…GATE CS 2007 : Information about a collection of students is given by the relation studinfo( underlinestudId, name, sex). The…GATE IT 2006 : Which of the following relational query languages have the same expressive power? I. Relational algebra II. Tuple…GATE IT 2005 : Consider the entities 'hotel room', and 'person' with a many to many relationship 'lodging' as shown below: If we wish…GATE CS 2002 : From the following instance of relation schema R(A,B,C), we can conclude that:GATE CS 2002 : With regard to the expressive power of the formal relational query languages, which of the following statements is true?GATE CS 1999 : The relational algebra expression equivalent to the following tuple calculus expression: {t | t ∈ r ∧ (t[A] = 10 ∧…GATE CS 1998 : Which of the following query transformations (i.e., replacing the l.h.s. expression by the r.h.s expression) is…GATE CS 1998 : Given two union compatible relations R_1(A, B) and R_2 (C, D), what is the result of the operation R_1 Join_ A = C…GATE CS 2001 : Which of the following relational calculus expressions is not safe?GATE CS 2001 : Suppose the adjacency relation of vertices in a graph is represented in a table Adj(X,Y). Which of the following…Relational Algebra UGC-NET Dec 2013 : Consider the following schemas: Branch=(Branch-name, Assets, Branch-city) Customer = (Customer-name, Bank name,…UGC-NET Jul 2016 : Consider the relations R(A, B) and S(B, C) and the following four relational algebra queries over R and S: I. π_A, B…UGC-NET Jun 2019 : With respect to relational algebra, which of the following operations are included from mathematical set theory? (i)…UGC-NET Oct 2020 : Match List I with List II Let R_1={(1,1), (2,2), (3,3)} and R_2={(1,1), (1,2), (1,3), (1,4)} List I List II; (A) R_1 ∪…GATE DA 2024 : Consider a database that includes the following relations: Defender(name, rating, side, goals) Forward(name, rating,…GATE DA 2026 : Consider the given relations X, Y and Z. The relation X has three columns P, Q and R. The relation Y has three columns…Curated : Relations R(A, B) and S(B, C) contain 5 and 4 tuples respectively. B is the primary key of S, and no foreign key is…Tuple Calculus GATE DA 2026 : Let there be two relations X and Y as shown. X has three columns P, Q and R. Y has two columns P and S. X hline P Q R;…Curated : Consider Emp(eid, name, dno) with key eid and Dept(dno, city) with key dno. Which relational algebra expression is…Normal Forms (1NF, 2NF, 3NF, BCNF) UGC-NET Jan 2017 : Which one is correct w.r.t. RDBMS?UGC-NET Jul 2016 : Consider the following database table having A, B, C and D as its four attributes and four possible candidate keys (I,…UGC-NET Jun 2019 : Which of the following key constraints is required for functioning of foreign key in the context relational databases?UGC-NET Jun 2019 : In relational database management, which of the following is/are property/properties of candidate key? P: Uniqueness…UGC-NET Dec 2008 : Suppose R is a relation schema and F is a set of functional dependencies on R. Further, suppose R1 and R2 form a…UGC-NET Dec 2009 : Match the following: (1) Determinants (a) No attribute can be added; (2) Candidate key (b) Uniquely identified a row;…UGC-NET Dec 2012 : Which of the following is TRUE?UGC-NET Dec 2012 : The third normal form is based on the concept of_____UGC-NET Dec 2013 : Armstrong (1974) proposed systematic approach to derive functional dependencies. Match the following w.r.t functional…UGC-NET Dec 2014 : The best normal form of relation scheme R(A, B, C, D) along with the set of functional dependencies F = {AB → C, AB →…UGC-NET Dec 2014 : Identify the minimal key for relational scheme R(A, B, C, D, E) with functional dependencies F = {A → B, B → C, AC → D}UGC-NET Dec 2014 : Let R = ABCDE is a relational scheme with functional dependency set F = {A → B, B → C, AC → D}. The attribute closures…UGC-NET Dec 2014 : Which of the following is false?UGC-NET Dec 2015 : A relation R=A,B,C,D,E,F,G is given with following set of functional dependencies: F=AD→E, BE→F, B→C, AF→G. Which of…UGC-NET Jun 2013 : For a database relation R(a, b, c, d) where the domains of a, b, c, d include only the atomic values. The functional…GATE CS 1999 · June 2014 Part 2 : Let R ={A, B, C, D, E, F} be a relation schema with the following dependencies C → F, E → A, EC → D, A → B. Which of…UGC-NET Jun 2019 : In relational databases, if relation R is in BCNF, then which of the following is true about relation R?UGC-NET Jun 2015 : The relation Vendor Order (V_no, V_ord_no, V_name, Qty_sup, unit_price) has the composite key (V_no, V_ord_no). It is…ISRO 2020 · November 2017 Part 3 : If every non-key attribute functionally dependent on the primary key, then the relation will be inUGC-NET Aug 2016 : Consider the table R with attributes A, B and C. The functional dependencies that hold on R are: A → B, C → AB. Which…UGC-NET Jun 2015 : The relation schemas R_1 and R_2 form a lossless join decomposition of R if and only if (i) R_1 ∩ R_2…UGC-NET Nov 2017 : Consider a relation R (A, B, C, D, E, F, G, H) where each attribute is atomic, and following functional dependencies…UGC-NET Dec 2012 : Referential integrity is directly related toGATE DA 2025 : If a relational decomposition is not dependency-preserving, which one of the following relational operators will be…GATE DA 2025 : Consider a database relation R with attributes ABCDEFG, and having the following functional dependencies: A→ BCEF E→…GATE CS 2025 · Set 2 : Consider the following relational schema along with all the functional dependencies that hold on them. R1(A, B, C, D,…Curated : Consider the following relational schemas with their non-trivial functional dependencies: Schema I: Registration…GATE DA 2024 : Given the relational schema R=(U, V, W, X, Y, Z) and the set of functional dependencies: {U → V, U → W, W X → Y, W X →…GATE DA 2026 : Let R(A, B, C, D, E) be a relational schema with functional dependency set F={A → BC, CD → E, E → A}. Which of the…GATE DA 2026 : Consider an ER model with the entities E1 ( A_11, ~A_12, ~A_13) and E2 ( A_21, ~A_22, ~A_23), where, A_11, A_12, A_13…GATE CS 2026 · Set-2 : In the context of schema normalization in relational DBMS, consider a set F of functional dependencies. The set of all…GATE CS 2026 · Set-1 : Consider a relational database schema with a relation R(A, B, C, D). If {A, B} and {A, C} are the only two candidate…GATE CS 2026 · Set-1 : In the context of relational database normalization, which of the following statements is/are true?GATE CS 2024 · Set-2 : A functional dependency F:X → Y is termed as a useful functional dependency if and only if it satisfies all the…GATE CS 2024 · Set-1 : The symbol → indicates functional dependency in the context of a relational database. Which of the following options…GATE CS 2024 · Set-1 : Which of the following statements about a relation R in first normal form (1NF) is/are TRUE?GATE CS 2021 · Set-2 : A data file consisting of 1,50,000 student-records is stored on a hard disk with block size of 4096 bytes. The data…ISRO 2018 : The set of attributes X will be fully functionally dependent on the set of attributes Y if the following conditions…ISRO 2018 : Considering the following table in a relational database: hline text Last Name text Rank text Room text Shift; hline…GATE CS 2017 · Set-1 : The following functional dependencies hold true for the relational schema RV,W,X,Y,Z: V → W VW → X Y → VX Y → Z Which…GATE CS 2016 · Set-1 : A database of research articles in a journal uses the following schema. (VOLUME, NUMBER, STARTPAGE, ENDPAGE, TITLE,…GATE CS 2016 · Set-1 : Which of the following is NOT a superkey in a relational schema with attributes V,W, X, Y, Z and primary key V Y?ISRO 2014 : Let x, y, z, a, b, c be the attributes of an entity set E. If x, x,y, a,b, a,b,c, x,y,z are superkeys then which of…ISRO 2014 : Every time the attribute A appears, it is matched with the same value of attribute B but not the same value of…ISRO 2014 : Consider the schema R(A,B,C,D) and the functional dependencies A → B and C → D. If the decomposition is made as R_1(A,…GATE CS 2014 · Set-3 : A prime attribute of a relation scheme R is an attribute that appearsISRO 2013 : Consider the following dependencies and the BOOK table in a relational database design. Determine the normal form of…GATE CS 2012 : Suppose R1(A, B) and R2(C, D) are two relation schemas. Let r1 and r2 be the corresponding relation instances. B is a…ISRO 2011 : Which normal form is based on the concept of 'full functional dependency' isGATE CS 2011 : Consider a relational table with a single record for each registered student with the following attributes. 1.…ISRO 2009 : Purpose of 'Foreign Key' in a table is to ensureISRO 2009 : A locked database file can beGATE CS 2009 : Consider the following relational schema: Suppliers(sid:integer, sname:string, city:string, street:string)…GATE IT 2008 : Let R (A, B, C, D, E, P, G) be a relational schema in which the following functional dependencies are known to hold:…GATE IT 2008 : Let R (A, B, C, D) be a relational schema in which the following functional dependencies are known to hold: A → B, B →…GATE CS 2008 : Consider the following relational schemes for a library database: Book (Title, Author, Catalog_ no, Publisher, Year,…ISRO 2007 : Armstrong's inference rule doesnot determineGATE IT 2007 : Consider the following implications relating to functional and multivalued dependencies given below, which may or may…GATE CS 2007 : Which one of the following statements if FALSE?GATE CS 2007 : Which of the following is TRUE about formulae in Conjunctive Normal Form?GATE IT 2006 : Consider a relation R with five attributes V, W, X, Y, and Z. The following functional dependencies hold: VY → W, WX →…GATE CS 2006 : The following functional dependencies are given: AB→ CD,AF→ D,DE→ F,C→ G,F→ E,G→ A Which one of the following options…GATE IT 2005 : In a schema with attributes A, B, C, D and E following set of functional dependencies are given A → B A → C CD → E B →…GATE IT 2005 : A table has fields F_1, F_2, F_3, F_4, F_5 with the following functional dependencies F_1 → F_3, F_2→ F_4, (F_1. F_2)…GATE CS 2005 : Consider a relation scheme R=(A,B,C,D,E,H) on which the following functional dependencies hold: A → B, BC → D, E → C,…GATE CS 2005 : Which one of the following statements about normal forms is FALSE?GATE IT 2004 : A relation Empdtl is defined with attributes empcode (unique), name, street, city, state and pincode. For any pincode,…GATE CS 2004 : The relation scheme Student Performance (name, courseNo, rollNo, grade) has the following functional dependencies:…GATE CS 2003 : Consider the following functional dependencise in a database: hline Date\_of\_Birth → Age Age → Eligibility; hline…GATE CS 2002 : Relation R is decomposed using a set of functional dependencies, F,and relation S is decomposed using another set of…GATE CS 2002 : Relation R with an associated set of functional dependencies, F, is decomposed into BCNF. The redundancy (arising out…GATE CS 2000 : Given the following relation instance. hline X Y Z; hline 1 4 2; 1 5 3; 1 6 3; 3 2 2; hline Which of the following…GATE CS 1999 : Consider the schema R=(S,T, U, V) and the dependencies S → T, T → U, U → V and V → S. Let R = (R1 and R2) be a…GATE CS 1998 : Which normal form is considered adequate for normal relational database design?GATE CS 2001 : R,(A,B,C,D) is a relation. Which of the following does not have a lossless join, dependency preserving BCNF…GATE CS 1990 : Choose the correct alternatives (More than one may be correct). Indicate which of the following statements are true: A…Integrity Constraints GATE DA 2025 : Consider the following two relations, named Customer and Person, in a database: Person ( aadhaar CHAR(12) PRIMARY KEY,…GATE DA 2026 : Consider two relations r and s defined on the relational schemas R(A, B) and S(E, C), respectively. A is the primary…Curated : A table is created as CREATE TABLE T (x INT CHECK (x BETWEEN 1 AND 10), y VARCHAR(5) UNIQUE); The following inserts…SQL Queries UGC-NET Jul 2016 : In RDBMS, the constraint that no key attribute (column) may be NULL is referred to as:UGC-NET Jul 2016 : In a relational database model, NULL values canbe used for all but which one of the following?UGC-NET Aug 2016 : Consider a database table R with attributes A and B. Which of the following SQL queries is illegal?UGC-NET Aug 2016 : Consider the following ORACLE relations:One (x, y) = {<2, 5>, <1, 6>, <1, 6>, <1, 6>, <4, 8>, <4, 8> } Two (x, y) =…UGC-NET Dec 2012 : Given a Relation POSITION (Posting-No, Skill), then the query to retrieve all distinct pairs of posting-nos. requiring…UGC-NET Dec 2013 : Consider the table student (stuid, name, course, marks). Which one of the following two queries is correct to find the…UGC-NET Dec 2014 : Division operation is ideally suited to handle queries of the type:UGC-NET Dec 2014 : Which of the following is true? I. Implementation of self-join is possible in SQL with table alias. II. Outer-join…UGC-NET Dec 2015 : Consider the following database table: Create table test( one integer, two integer, primary key(one), unique(two),…UGC-NET Dec 2015 : Suppose ORACLE relation R(A,B) currently has tuples {(1,2), (1,3), (3,4)} and relation S(B,C) currently has {(2,5),…UGC-NET Jan 2017 : Consider the following relation: Works(emp_name, company_name,salary) Here,emp name is primary key. Consider the…UGC-NET Jul 2016 : Consider the following ORACLE relations: R(A, B, C)=<1, 2, 3>, <1, 2, 0>, <1, 3, 1>, <6, 2, 3>, <1, 4, 2>, <3, 1, 4>…UGC-NET Jun 2013 : The employee information of an organization is stored in a relation: Employee (name, sex, salary, deptname). Consider…UGC-NET Jun 2015 : An Assertion is predicate expressing a condition we wish database to always satisfy. The correct syntax for Assertion…UGC-NET Jun 2015 : Drop Table cannot be used to drop a table referenced by a _______ constraint. (a) Primary key (b) Sub key (c) Super…UGC-NET Jun 2015 : The STUDENT information in a university stored in the relation STUDENT (Name, SEX, Marks, DEPT_Name). COnsider the…UGC-NET Nov 2017 : Given two relations R_1(A,B) and R_2(C,D), the result of following query Select distinct A, B From R1, R2 Is…UGC-NET Oct 2020 : Consider the following table structures related to a university for the below question. EMPLOYEE NAME VARCHAR (30) NOT…UGC-NET Oct 2020 : Consider the following table structures related to a university for the below question. EMPLOYEE NAME VARCHAR (30) NOT…UGC-NET Sep 2013 : The SQL expression Select distinct T.branch_name from branch T, branch S where T.assets>S.assets and S.branch_city =…UGC-NET Nov 2017 : In SQL, ________ is an Aggregate function.GATE DA 2024 : Consider the following two tables named Raider and Team in a relational database maintained by a Kabaddi league. The…GATE DA 2026 : Consider a table Employee(EmpID, TeamID), where the column EmpID (ID of an employee) is the primary key. The column…GATE CS 2025 · Set 1 : Consider two relations describing teams and players in a sports league: teams(tid, tname):tid, tname are team-id and…GATE CS 2025 · Set 1 : Consider the following database tables of a sports league: player(pid, pname, age), team(tid, tname, city, cid),…Curated : In an Entity-Relationship (ER) model, suppose R is a many-to-one relationship from entity set E1 to entity set E2.…GATE CS 2017 · Set-2 : Consider the following tables T1 and T2. T1 T2; hline P Q; hline 2 2; 3 8; 7 3; 5 8; 6 9; 8 5; 9 8; hline hline R S;…GATE DA 2025 : Consider the following three relations: Car (model, year, underlineserial, color) Make (maker, underlinemodel) Own…GATE DA 2025 : On a relation named Loan of a bank: Loan; hline loan number branch name amount; hline L11 Banjara Hills 90000; hline…GATE DA 2025 : Consider the following tables, Loan and Borrower, of a bank. Loan; hline loan\_num branch \_ name amount; hline L11…GATE DA 2026 : Let Account be a relation as shown. Account hline AccNo Balance; hline A1 5000; hline A2 5000; hline A3 10000; hline…GATE DA 2026 : A data cube has three dimensions: time, location and item. The concept hierarchy of each dimension has three levels…GATE CS 2026 · Set-2 : An index in a DBMS is said to be dense if an index entry appears for every search-key value in the indexed file.…GATE CS 2026 · Set-2 : In the context of DBMS, consider the two sets T and S given below. hline quadT quadS; hline I: Logical schema L:…GATE CS 2026 · Set-1 : Consider a relational database schema with two relations R(P, Q) and S(X, Y). Let E={langle urangle | ∃ v ∃ wlangle u,…GATE CS 2026 · Set-1 : Let P, Q, R and S be the attributes of a relation in a relational schema. Let X → Y indicate functional dependency in…GATE CS 2025 · Set-2 : Consider the following relational schema: Students(underlinerollno: integer, name: string, age: integer, cgpa: real)…GATE CS 2025 · Set-1 : Consider a relational schema team(name, city, owner), with functional dependencies { name → city, name → owner }. The…GATE CS 2024 · Set-2 : The relation schema, Person(pid,city), describes the city of residence for every person uniquely identified by pid.…GATE CS 2024 · Set-1 : Consider the following two relations, R(A, B) and S(A, C): R hline A B; hline 10 20; hline 20 30; hline 30 40; hline…GATE CS 2023 : Consider the following table named Student in a relational database. The primary key of this table is rollNum. hline;…GATE CS 2021 · Set-2 : The relation scheme given below is used to store information about the employees of a company, where empId is the key…GATE CS 2021 · Set-1 : Consider the relation R(P,Q,S,T,X,Y,Z,W) with the following functional dependencies. PQ→ X; P→ YX; Q→ Y; Y→ ZW…GATE CS 2021 · Set-1 : The following relation records the age of 500 employees of a company, where empNo ( indicating the employee number) is…GATE CS 2021 · Set-1 : A relation r(A,B) in a relational database has 1200 tuples. The attribute A has integer values ranging from 6 to 20,…GATE CS 2021 · Set-1 : Consider a linear list based directory implementation in a file system. Each directory is a list of nodes, where each…ISRO 2020 : The SQL query SELECT columns FROM TableA RIGHT OUTER JOIN TableB ON A.columnName = B.columnName WHERE A.columnName IS…ISRO 2020 : Properties of 'DELETE' and 'TRUNCATE' commands indicate thatGATE CS 2020 : Consider a relational table R that is in 3NF, but not in BCNF. Which one of the following statements is TRUE?GATE CS 2019 : A relational database contains two tables Student and Performance as shown below: Student Performance; hline Roll\_no.…GATE CS 2019 : Let the set of functional dependencies F={QR→ S,R→ P,S→ Q} hold on a relation schema X = (PQRS). X is not in BCNF.…GATE CS 2000 : 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, ifGATE CS 2018 : Consider the relations r(A, B) and s(B, C), where s.B is a primary key and r.B is a foreign key referencing s.B.…GATE CS 2018 : Consider the following two tables and four queries in SQL. Book (isbn, bname), Stock (isbn, copies) Query 1: SELECT…ISRO 2017 : A B-Tree used as an index for a large database table has four levels including the root node. If a new key is inserted…ISRO 2017 : Which symbol denote derived attributes in ER Model?ISRO 2017 : hline Employee Department OT allowance; hline RAMA Mechanical 5000; hline GOPI Electrical 2000; hline SINDHU Computer…GATE CS 2017 · Set-2 : Consider the following database table named top_scorer. hline player country goals; hline Klose Germany 16; Ronaldo…GATE CS 2017 · Set-2 : An ER model of a database consists of entity types A and B. These are connected by a relationship R which does not…GATE CS 2017 · Set-1 : Consider a database that has the relation schema EMP (EmpId, EmpName, DeptName). An instance of the schema EMP and a…ISRO 2016 : The relation book (title, price) contains the titles and prices of different books. Assuming that no two books have…ISRO 2016 : Let R(a,b,c) and S(d,e,f) be two relations in which d is the foreign key of S that refers to the primary key of R.…ISRO 2016 : Consider the join of a relation R with a relation S. If R has m tuples and S has n tuples then the maximum and minimum…ISRO 2015 : Consider the following schema: Emp (Empcode, Name, Sex, Salary, Deptt) A simple SQL query is executed as follows:…GATE CS 2015 · Set-3 : Consider the following relation Cinema(theater, address, capacity) Which of the following options will be needed at…GATE CS 2015 · Set-3 : Consider the relation X(P,Q,R,S,T,U) with the following set of functional dependencies F= P,R → S,T, P,S,U → Q,R Which…GATE CS 2015 · Set-2 : Consider two relations R1(A,B) with the tuples (1,5), (3,7) and R2(A,C) = (1,7), (4,9). Assume that R(A,B,C) is the…GATE CS 2015 · Set-1 : Consider the following relations: Student Performance; hline Roll\_No Student\_Name; hline 1 Raj; 2 Rohit; 3 Raj;…GATE CS 2015 · Set-1 : SELECT operation in SQL is equivalent toISRO 2014 : Consider a system where each file is associated with a 16 bit number. For each file, each user should have the read…GATE CS 2014 · Set-3 : Consider the following relational schema: Employee (empId, empName, empDept) Customer (custId, custName, salesRepId,…GATE CS 2014 · Set-3 : Consider the relational schema given below, where eId of the relation dependent is a foreign key referring to empId of…GATE CS 2014 · Set-3 : What is the optimized version of the relation algebra expression π _A1(π _A2(σ _F1(σ_F2(r)))), where A1, A2 are sets…GATE CS 2014 · Set-2 : SQL allows duplicate tuples in relations, and correspondingly defines the multiplicity of tuples in the result of…GATE CS 2014 · Set-2 : Consider a join (relation algebra) between relations r(R)and s(S) using the nested loop method. There are 3 buffers…GATE CS 2014 · Set-1 : Given the following schema: employees(emp-id, first-name, last-name, hire-date, dept-id, salary) departments(dept-id,…GATE CS 2014 · Set-1 : Given the following two statements: S1: Every table with two single-valued attributes is in 1NF, 2NF, 3NF and BCNF S2:…GATE CS 2014 · Set-1 : Given the following statements: S1: A foreign key declaration can always be replaced by an equivalent check assertion…ISRO 2013 : Consider the following relational schema: Suppliers (sid:integer, sname:string, saddress:string) Parts (pid:integer,…GATE CS 2013 : Consider the following relational schema. Students(rollno: integer, sname: string) Courses(courseno: integer, cname:…GATE CS 2013 : An index is clustered, ifGATE CS 2012 : Consider the following relations A, B and C: A B C; hline Id Name Age; hline 12 Arun 60; 15 Shreya 24; 99 Rohit 11;…GATE CS 2012 : Which of the following statements are TRUE about an SQL query? P: An SQL query can contain a HAVING clause even if it…ISRO 2011 : In functional dependency Armstrong inference rules refers toGATE CS 2011 : Database table by name Loan_Records is given below. hline Borrower Bank\_Manager Loan\_Amount; hline Ramesh Sunderajan…GATE CS 2011 : Consider a relational table r with sufficient number of records, having attributes A_1, A_2,..., A_n and let 1≤ p≤ n.…GATE CS 2011 : Consider a database table T containing two columns X and Y each of type integer. After the creation of the table, one…GATE CS 2010 : The following functional dependencies hold for relations R(A, B, C) and S(B, D, E) B → A, A → C The relation R…GATE CS 2010 : A relational schema for a train reservation database is given below. Passenger (pid, pname, age) Reservation (pid,…GATE CS 2009 : Consider the following relational schema: Suppliers(sid:integer, sname:string, city:string, street:string)…GATE CS 2009 : Let R and S be relational schemes such that R=a,b,c and S=c. Now consider the following queries on the database: I.π…ISRO 2008 : The join operation can be defined asGATE IT 2008 : Consider the following relational schema:Student(school-id,sch-roll-no,sname,saddress)…GATE CS 2008 : Let R and S be two relations with the following schema R ( underlineP,underlineQ,R1,R2,R3) S (…ISRO 2007 : BCNF is not used for cases where a relation hasISRO 2007 : Which operation is used to extract specified columns from a table?ISRO 2007 : Which of the following is aggregate function in SQL?ISRO 2007 : Which commands are used to control access over objects in relational database?GATE IT 2007 : Consider the following relation schemas: b-Schema = (b-name, b-city, assets) a-Schema = (a-num, b-name, bal) d-Schema…GATE IT 2007 : Consider a selection of the form σ_A≤ 100 (r), where r is a relation with 1000 tuples. Assume that the attribute…GATE CS 2007 : Consider the table employee(empId, name, department, salary) and the two queries Q1,Q2 below. Assuming that department…GATE IT 2006 : Consider a database with three relation instances shown below. The primary keys for the Drivers and Cars relation are…GATE IT 2006 : Consider the relations r1(P, Q, R) and r2(R, S, T) with primary keys P and R respectively. The relation r_1 contains…GATE CS 2006 : Consider the relation enrolled (student, course) in which student, course) is the primary key, and the relation paid…GATE CS 2006 : Consider the relation account (customer, balance) where customer is a primary key and there are no null values. We…GATE IT 2005 : A database table T_1 has 2000 records and occupies 80 disk blocks. Another table T_2 has 400 records and occupies 20…GATE IT 2005 : A database table T_1 has 2000 records and occupies 80 disk blocks. Another table T_2 has 400 records and occupies 20…GATE IT 2005 : In an inventory management system implemented at a trading corporation, there are several tables designed to hold all…GATE IT 2005 : A table 'student' with schema (roll, name, hostel, marks), and another table 'hobby' with schema (roll, hobbyname)…GATE IT 2005 : In a computer system, four files of size 11050 bytes, 4990 bytes, 5170 bytes and 12640 bytes need to be stored. For…GATE CS 2005 : The following table has two attributes A and C where A is the primary key and C is the foreign key referencing A with…GATE CS 2005 : Let r be a relation instance with schema R = (A, B, C, D). We define r_1=Π _A,B,C(R) and r_2=Π _A,D(R). Let s=r_1*r_2…GATE IT 2004 : Consider a table T in a relational database with a key field K. A B-tree of order p is used as an access structure on…GATE IT 2004 : Consider two tables in a relational database with columns and rows as follows: oversetTable: Student hline textbf…GATE IT 2004 : A table T1 in a relational database has the following rows and columns: hline text Roll no. text Marks; hline 1 10;…GATE IT 2004 : A relational database contains two tables student and department in which student table has columns roll_no, name and…GATE IT 2004 : Consider the following entity relationship diagram (ERD), where two entities E1 and E2 have a relation R of…GATE CS 2004 : The employee information in a company is stored in the relation Employee ( underlinename, sex, salary, deptName)…GATE CS 2004 : Consider the relation Student ( underlinename, sex, marks), where the primary key is shown underlined, pertaining to…GATE CS 2004 : Consider the following relation schema pertaining to a students database: Students ( underlinerollno, name, address)…GATE CS 2004 : Let R1( underlineA,B,(C)) and R2( underlineD,E) be two relation schema, where the primary keys are shown underlined,…GATE CS 2003 : Consider the set of relations shown below and the SQL query that follow: Students:(Roll_number,Name,Date_of_birth)…GATE CS 2003 : Consider the following SQL query select distinct a_1, a_2, …, a_n from r_1, r_2, …, r_m where P For an arbitrary…GATE CS 2000 : In SQL, relations can contain null values, and comparisons with null values are treated as unknown. Suppose all…GATE CS 1999 : Which of the following is/are correct?GATE CS 1997 : For a database relation R(a, b, c, d), where the domains a, b, c, d include only atomic values, only the following…GATE CS 2001 : Consider a relation geq which represents "greater than or equal to", that is, (x,y) ∈ geq only if y ≥ x: create table…GATE CS 2001 : Let r and s be two relations over the relation schemes R and S respectively, and let A be an attribute in R. Then the…GATE CS 2025 · Set-2 : In a B^+ -tree where each node can hold at most four key values, a root to leaf path consists of the following nodes:…GATE CS 2023 : An algorithm has to store several keys generated by an adversary in a hash table. The adversary is malicious who tries…ISRO 2016 : A Hash Function f defined as f(key)=keymod7. With linear probing while inserting the keys 37,38,72,48,98,11,56 into a…GATE CS 2016 · Set-2 : B+ Trees are considered BALANCED becauseGATE CS 2015 · Set-2 : Which one of the following hash functions on integers will distribute keys most uniformly over 10 buckets numbered 0…GATE CS 2015 · Set-2 : Consider the following B+ tree index of order 1 (every node holds one or two keys): Root: [9]. Its children, left to…GATE IT 2008 : Consider a hash table of size 11 that uses open addressing with linear probing. Let h(k)=kmod 11 be the hash function…GATE CS 2008 : A B-tree of order 4 is built from scratch by 10 successive insertions. What is the maximum number of node splitting…GATE CS 1992 : Choose the correct alternatives (more than one may be correct) and write the corresponding letters only: A 2-3 tree is…
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com