Online Test 2 - Database Management System
Description: GATE Online Test 2 - Database Management System (DBMS) | |
Number of Questions: 25 | |
Created by: Aliensbrain Bot | |
Tags: DBMS GATE CS |
To be considered minimally relational, the DBMS must support of the following key relational functions.
The successful execution of a database despite the possibility of system failure is called
Find the odd man out.
Database that are designed and managed specifically to meet information needs are called
A file system is said to exhibit data dependence, because
Which of the following statements/ statement are true? (i) In SQL you can create virtual tables. (ii) SQL is only data manipulation language. (iii) WHERE clause applies to output of a GROUP BY command. (iv) HAVING clause applies to column and expressions for individual rows.
Choose the odd man out.
The data retrieval time factor is most critical for
Match the following.
1. | SELECT | (a) | Vertical subset of a tuple |
2. | PROJECT | (b) | Horizontal subset of a tuple |
(c) | Common tuples |
Which of the following statements are equivalent?
(I) LIKE '_ _ _ %' | (II) LIKE '% _ _ _' |
(III) LIKE '%_ _%' | (IV) LIKE '%_ _ _ %' |
(V) '%%%_%' |
Suppose we are having relation schema as student (name, student-id, degree-level) with primary key as student-id. (i) INSERT INTO student VALUES. (“Himani”, 1928, “B.E.”) (ii) DELETE FROM student (iii) INSERT INTO student VALUES (“Hemant”, 1220, “B. Tech”) (iv) ALTER TABLE student ADD ( subject varchar(20)) (v) ALTER TABLE student DROP subject. What will be the results of the above sequence?
Which of the following statements is/are correct?
(i) SQL allows use of DISTINCT with count (*).
(ii) If is not legal to use DISTANCE with MAX and MIN.
(iii) If is ‘WHERE’ clause and a ‘HAVING’ clause appear in the same clause is applied first.
(iv) By default, the ‘ORDER BY’ clause list items in a descending order.
LIKE “abcd%” ESCAPE ‘’- The statement matches
Which of the following is not supported by the hierarchical database model?
Which of the following is (are) true with respect to SQL?
(I) SQL is case insensitive
(II) Patterns used for comparison of string are case sensitive
(III) FROM and fROM are equivalent and mean the same keyword
(IV) String 'Mr' is not equal to string 'MR'
Consider the relation schema as follows. Employee (employee-name, sheet, city) Works (employee-name, company-name, salary) Company (Company-name, city) Manages (Employee-name, manager-name)
Write a SQL query that gives the names of the employee who works in the same city and having salary greater than equal to 17000 and less than equal to 35500.
Find all employees in the database who do not work for State Bank of India.
6 Files F1, F2, F3, F4, F5 and F6 have 100, 200, 30, 80, 120, 150 records respectively. In what order should they be stored so as to optimize activity? Assume each file is accessed with the same frequency.
Match the following.
(i) | SMALLINT | (I) | Calendar date |
(ii) | SYSDATE + 60 | (II) | Integer values up to 16 digits |
(iii) | NUMERIC(3,1) | (III) | Date 60 days from today's date |
(iv) | DATE | (IV) | 0.32 |
(V) | 44.5 |
Consider the given schemes (20 - 2) Branch scheme = (Branch name, assets, branch city) Customer scheme = (Customer name, street, Customer city) Deposit scheme = (Branch name, account name, customer name, balance) Borrow scheme = (Branch name, loan number, customer name, amount) Client scheme = (Customer name, banker name) Using the relational algebra the query that finds customers who have a balance of over 1000 is
If the solution of the previous question was the log at the time of crash, then what will be the output of A, B and C after recovery?
Consider the following transaction T0 and T1<To start><To , A, 1050, 970><To, B, 2030, 2070><To commit><T1 start><T1, C, 720,640><T1 commit> If the system crashes just after log record for the step write C of transaction T1 has been written to stable storage, the log at the time of crash will be
Which of the following queries finds the clients of banker Agassi and the city they live in?
What will be the average access time?
Which of the following is used to add new attribute (column) in the existing relation schema?