0

SQL

Description: Tests to Clear the Basic Database Concepts using the Structured Query Language, Prepare SQL Oracle to get job, to appear in placement, to appear in competitive exams, get notes and test papers for all concepts like query, Table, Structured Query Language
Number of Questions: 25
Created by:
Tags: SQL Oracle Structured Query Language Query Joins Tables SQL Interview Preparation SQL Interview SQL Questions SQL Interview Questions Databases
Attempted 0/25 Correct 0 Score 0

OR operator returns TRUE when

  1. both the specified conditions are true

  2. any one of the specified conditions is true

  3. none of the specified conditions is true

  4. both (1) and (2)


Correct Option: D

All changes made by a transaction are undone by

  1. COMMIT

  2. DROP

  3. ROLLBACK

  4. SAVEPOINT


Correct Option: C

The constraints are

  1. rules to prevent invalid data entry

  2. rules to write programs in SQL

  3. rules to create user-defined data type in SQL

  4. none of these


Correct Option: A

A primary key made of more than one column (multi column) is called

  1. foreign key

  2. duplicate key

  3. alternate key

  4. composite key


Correct Option: D

A VIEW

  1. contains no data until a call for it is made

  2. is an object that is mapped to a SELECT sentence

  3. both (1) and (2)

  4. none of these


Correct Option: C

The constraint used to avoid keying in repeated values into a column must be declared_____________.

  1. UNIQUE

  2. DISTINCT

  3. CHECK

  4. None of these


Correct Option: A

A PRIMARY KEY must

  1. contain NULL VALUES

  2. contain repetitive values

  3. contain NULL as well as repetitive values

  4. none of these


Correct Option: D

Which of these is not the ADO Data Type?

  1. adBigInt

  2. adUID

  3. adCurrency

  4. adWChar


Correct Option: B

Which command is used to make back up copies of database tables?

  1. CREATE INTO

  2. SELECT INTO

  3. CREATE FROM

  4. NONE OF THESE


Correct Option: B

How to create a backup copy of table emp called emp_backup in another database called DBEmp_backup.mdb?

  1. CREATE TABLE DBEmp_backup.emp_backup FROM emp

  2. SELECT emp.* INTO emp_backup IN DBEmp_backup.mdb FROM emp

  3. CREATE TABLE emp_backup IN DBEmp_backup.mdb FROM emp

  4. None of these


Correct Option: B

The 'IN SQL' keyword

  1. is used with the DISTINCT SQL keyword only

  2. is used with the INSERT SQL keyword only

  3. determines if a value matches any of the values in a list or a sub-query

  4. defines the tables we are selecting or deleting data from


Correct Option: C

ADO stands for

  1. Active Database Objects

  2. Active Directory Object

  3. Advanced Data Object

  4. ActiveX Data Objects


Correct Option: D

The UPDATE SQL clause can

  1. update only one row at a time

  2. update more than one row at a time

  3. delete more than one row at a time

  4. delete only one row at a time


Correct Option: B

Which method will you use to most effectively achieve the objective?

  1. Disable the triggers while performing the import process.

  2. Drop the triggers before the import process, and then recreate them.

  3. Use appropriate arguments while performing the import process to disable the firing of triggers.

  4. Do nothing because the triggers will not be fired when you perform an import by using the bcp utility.


Correct Option: D

SQL is

  1. Structured Query Language

  2. Sequential Query Language

  3. Standard Query Language

  4. Simple Query Language


Correct Option: A

Which of the following is a DDL command?

  1. INSERT

  2. CREATE

  3. UPDATE

  4. COMMIT


Correct Option: B

INDEXES are created to

  1. locate records quickly

  2. locate a table quickly

  3. to create a back up table

  4. none of these


Correct Option: A

An empty column declared _________ stores.

  1. ZERO

  2. BLANK

  3. NULL

  4. NONE OF THESE


Correct Option: C

Which SQL command inserts new data into a database?

  1. NEW

  2. INSERT

  3. ADD

  4. NONE OF THESE


Correct Option: B

Which SQL command updates data in a database?

  1. MODIFY

  2. CHANGE

  3. UPDATE

  4. EDIT


Correct Option: C

Which SQL command deletes table from a database?

  1. DROP

  2. ERASE

  3. DELETE

  4. REMOVE


Correct Option: A

Which SQL command retrieves data from a database?

  1. GET

  2. EXTRACT

  3. SELECT

  4. VIEW


Correct Option: C

What is DDL?

  1. Data Dictionary Language

  2. Data Definition language

  3. Data Declaration Language

  4. None of these


Correct Option: B

COMMIT is a

  1. DDL command

  2. DML command

  3. DCL command

  4. None of these


Correct Option: D

AND operator returns TRUE when

  1. both the specified conditions are true

  2. any one of the specified conditions is true

  3. none of the specified conditions is true

  4. both (1) and (2)


Correct Option: A
- Hide questions