Quick Revision

GK One-Line Question & Answer

15541+ short questions with short answers, covering every category and sub-category on the site — no long articles to scroll through. Good for a fast recap before an exam, or a few minutes of daily practice.

DBMS → Concurrency Control 3

To remove a relation from an SQL database, we use the              command.
drop table
click to copy
Aggregate functions are functions that take a                        as input and return a single value.
collection of values
click to copy
Which of the following creates a virtual relation for storing the query?
view
click to copy

DBMS → Deadlock 3

Updates that violate                      are disallowed.
integrity constraints
click to copy
A Boolean data type that can take values true, false, and                 
unknown
click to copy
Materialised views make sure that
view definition is kept up-to-date
click to copy

DBMS → Database Security 3

The              clause allows us to select only those rows in the result relation of the           clause that satisfy a specified predicate.
where, from
click to copy
The          connective tests for set membership, where the set is a collection of values produced by a select clause. The           connective tests for the absence of set membership.
in, not in
click to copy
Updating the value of the view
will affect the relation from which it is defined
click to copy

DBMS → PL/SQL 3

The                  clause is used to list the attributes desired in the result of a query.
select
click to copy
The phrase “greater than at least one” is represented in SQL by            
> some
click to copy
Which of the following is used at the end of the view to reject the tuples which do not satisfy the condition in where clause?
with check
click to copy

DBMS → Introduction to DBMS 2

Which of the following statements contains an error?
select empid where empid = 1009 and lastname = ‘geller’;
click to copy
SQL applies predicates in the                 clause after groups have been formed, so aggregate functions may be used.
with
click to copy

DBMS → Database Architecture 2

In SQL the spaces at the end of the string are removed by                function.
trim
click to copy
The                  keyword is used to access attributes of preceding tables or subqueries in the from clause.
lateral
click to copy

DBMS → Data Models 2

The union operation is represented by
u
click to copy
Which of the following creates a temporary relation for the query on which it is defined?
with
click to copy

DBMS → ER Model 2

The intersection operator is used to get the            tuples.
common
click to copy
Subqueries cannot:
join tables
click to copy

DBMS → Relational Model 2

If we want to retain all duplicates, we must write                  in place of union.
union all
click to copy
The EXISTS keyword will be true if:
any row in the subquery meets the condition only
click to copy

DBMS → Normalization 2

The number of attributes in relation is called as its
degree
click to copy
How can you find rows that do not match some specified condition?
double use of not exists
click to copy

DBMS → Functional Dependency 2

           clause is an additional filter that is applied to the result.
having
click to copy
Which one of the following deletes all the entries but keeps the structure of the relation.
delete from instructor;
click to copy

DBMS → SQL Basics 2

                   joins are SQL server default
inner
click to copy
The problem of ordering the update in multiple updates is avoided using
case
click to copy

DBMS → DDL Commands 2

The                            is essentially used to search for patterns in target string.
like predicate
click to copy
The        condition allows a general predicate over the relations being joined.
on
click to copy

DBMS → DML Commands 2

A            indicates an absent value that may exist but be unknown or that may not exist at all.
null value
click to copy
How many tables may be included with a join?
all of the mentioned
click to copy

DBMS → Joins 2

If the attribute phone number is included in the relation all the values need not be entered into the phone number column. This type of entry is given as
null
click to copy
Which are the join types in join condition:
all of the mentioned
click to copy

DBMS → Views 2

The predicate in a where clause can involve Boolean operations such as and. The result of true and unknown is               false and unknown is            while unknown and unknown is            
unknown, false, unknown
click to copy
How many join types in join condition:
5
click to copy

DBMS → Indexes 2

Using the              clause retains only one copy of such identical tuples.
distinct
click to copy
The operation which is not considered a basic operation of relational algebra is
join
click to copy

DBMS → Transactions 2

The result of           unknown is unknown.
not
click to copy
In SQL the statement select * from R, S is equivalent to
select * from r cross join s
click to copy