0

databases Online Quiz - 113

Description: databases Online Quiz - 113
Number of Questions: 20
Created by:
Tags: databases
Attempted 0/20 Correct 0 Score 0

Which of the following is not a group function?

  1. avg()

  2. sqrt()

  3. max()

  4. sum()


Correct Option: B

You query the database with this command SELECT name FROM employee WHERE name LIKE ‘_a%’; Which names are displayed?

  1. Names starting with “a”

  2. Names with "a" as second character

  3. Last character as "a"

  4. Names with atleast two "a" at the start.


Correct Option: B

AI Explanation

To answer this question, let's analyze the given SQL command:

SELECT name FROM employee WHERE name LIKE '_a%';

The LIKE keyword is used for pattern matching in SQL queries. In this case, it is used with the pattern '_a%'.

Let's break down the pattern:

  • _ (underscore): This represents a single character.
  • a: This represents the character 'a'.
  • % (percent sign): This represents any sequence of characters (including zero characters).

So, the pattern '_a%' means that we are looking for names with:

  • Any single character as the first character.
  • The second character as 'a'.
  • Any sequence of characters (including zero characters) after the second character.

Now, let's go through each option to determine which names would be displayed:

Option A) Names starting with "a" - This option is incorrect. The pattern '_a%' does not specify that the names should start with "a". It only specifies that the second character should be "a".

Option B) Names with "a" as the second character - This option is correct. The pattern '_a%' matches names where the second character is "a". Therefore, this option correctly identifies the names that would be displayed.

Option C) Last character as "a" - This option is incorrect. The pattern '_a%' does not specify anything about the last character. It only specifies the second character as "a".

Option D) Names with at least two "a" at the start - This option is incorrect. The pattern '_a%' does not specify that there should be at least two "a" at the start. It only specifies the second character as "a".

Therefore, the correct answer is B) Names with "a" as the second character. This option correctly identifies the names that would be displayed based on the given SQL command.

Which SQL keyword is used to specify conditional search?

  1. SELECT

  2. WHERE

  3. SEARCH

  4. FIND


Correct Option: B

The HAVING clause can be used only with

  1. DELETE clause

  2. INSERT clause

  3. SELECT clause

  4. JOIN clause


Correct Option: C
  1. Strong Query Language

  2. Standard Query Language

  3. Strict Query Language

  4. Structured Query Language


Correct Option: D

What does follow after the SQL WHERE clause?

  1. The name of the table we are selecting from

  2. list of columns to be selected

  3. Definition of the condition to be met for the rows to be returned

  4. None of above


Correct Option: C

What is a primary key?

  1. The primary key column is a column or combination of columns whose values can be non-unique

  2. The primary key is a column or combination of columns whose values uniquely identify each row in the table

  3. The primary key is a column that can have NULL values

  4. all of above


Correct Option: B

What is an index?

  1. An index is the same as alias

  2. An index is a database table attribute, which speeds-up data search within a table

  3. An index is a special way to join 2 or more tables

  4. None of above


Correct Option: B

What is a view?

  1. A view is a special stored procedure executed when certain event occurs

  2. A view is a database diagram

  3. A view is a virtual table which results of executing a pre-compiled query. A view is not part of the physical database schema, while the regular tables are

  4. All of above


Correct Option: C

In sql server 2008, whats the new concepts?

  1. XML data types

  2. Table value parameters

  3. Transactions

  4. none of these


Correct Option: B

What do you mean by OLTP

  1. online transfer processing

  2. online transfer process

  3. online transaction processing

  4. online train processing


Correct Option: C

what is/are etltools in given list

  1. informatica, businessobjects,cognos

  2. datastage,hyperion,oracle builder

  3. informatica,datastage,abinitio

  4. abinitio,oraclebuilder,microstrategy


Correct Option: C

SCD refers to ?

  1. slow change dimension

  2. slowly change direction

  3. Slowly changing dimension

  4. slow chance direction


Correct Option: C

SCD refers to ?

  1. slow change dimension

  2. slowly change direction

  3. Slowly changing dimension

  4. slow chance direction


Correct Option: C

SCD refers to ?

  1. slow change dimension

  2. slowly change direction

  3. Slowly changing dimension

  4. slow chance direction


Correct Option: C

SSIS?

  1. SQL Server Integrated Server

  2. SQL Server Integration Services

  3. SQL Server Information Server

  4. SQL Server Information Service


Correct Option: B

DMS is a ------- database model

  1. Relational

  2. Network

  3. Hierarchical

  4. None of the above


Correct Option: B
  1. Data Item

  2. Database Key

  3. Record Occurence

  4. Record Structure


Correct Option: A

A data item describes a particular attribute of a record.

  1. True

  2. False


Correct Option: A
  1. None

  2. Record

  3. Record Structure

  4. Record Occurence


Correct Option: B,D
- Hide questions