Dias Khalelov
Quiz von , erstellt am more than 1 year ago

Quiz am DatabaseDesignFinal, erstellt von Dias Khalelov am 29/12/2016.

801
2
0
Keine Merkmale angegeben
Dias Khalelov
Erstellt von Dias Khalelov vor mehr als 7 Jahre
Schließen

DatabaseDesignFinal

Frage 1 von 67

1

The __operator returns all tuples in one relation that are not found in the other relation.

Wähle eine der folgenden:

  • Select

  • None

  • intersect

  • difference

Erklärung

Frage 2 von 67

1

The__ operator combines all tuples from two relations excluding duplicates.

Wähle eine der folgenden:

  • Intersect

  • difference

  • union

  • divide

Erklärung

Frage 3 von 67

1

The HAVING clause does which of the following?

Wähle eine der folgenden:

  • Acts like a WHERE clause but HAVING is used for columns rather than groups.

  • Acts like a WHERE clause but HAVING is used for rows rather than columns.

  • Acts like a WHERE clause but HAVING is used for groups rather than rows.

  • Acts EXACTLY like a WHERE clause.

Erklärung

Frage 4 von 67

1

The NULL SQL keyword is used to…

Wähle eine der folgenden:

  • Represent 0 value

  • Represent a missing or unknown value. NULL in SQL represents nothing.

  • Represent positive infinity

  • Represent negative infinity

Erklärung

Frage 5 von 67

1

The SQL BETWEEN operator..

Wähle eine der folgenden:

  • None of the given

  • Specifies which tables we are selecting from

  • Specifies that a column is a primary key

  • Specifies a range to test

Erklärung

Frage 6 von 67

1

The AVG SQL function return the…

Wähle eine der folgenden:

  • Maximum value from a column

  • Average number of rows in all tables

  • Average value in a column

  • The sum of values in a column

Erklärung

Frage 7 von 67

1

The command to remove row from CUSTOMER table is:

Wähle eine der folgenden:

  • REMOVE FROM customer

  • DROP FROM customer

  • UPDATE FROM customer

  • DELETE FROM customer WHERE…

Erklärung

Frage 8 von 67

1

What type of join is needed when you wish to include rows that do not have matching values?

Wähle eine der folgenden:

  • OUTER and INNER JOIN

  • INNER JOIN

  • OUTER JOIN

  • None of the given

Erklärung

Frage 9 von 67

1

What does the following SQL statement do: SELECT Customer, COUNT(Order) FROM Sales GROUP BY Customer HAVING COUNT (Order)>5

Wähle eine der folgenden:

  • Selects the total number of orders from the Sales table, if this number is greater than 5

  • Selects all customers with number of orders from table Sales that have made more than 5 orders

  • None of the give

  • Selects all customers from the Sales table

Erklärung

Frage 10 von 67

1

What operator tests column for the absence of data ?

Wähle eine der folgenden:

  • NOT operator

  • IS NULL operator

  • EXIST operator

  • None of the given

Erklärung

Frage 11 von 67

1

What does the SQL FROM clause do?

Wähle eine der folgenden:

  • Specifies a search condition

  • None of the given

  • Specifies the columns we are retrieving

  • Specifies the table to retrieve rows from

Erklärung

Frage 12 von 67

1

What does follow after the SQL SELECT clause?

Wähle eine der folgenden:

  • None of the given

  • List of columns that will selected or the * symbol

  • Selection condition

  • The name of the table we are selecting from

Erklärung

Frage 13 von 67

1

What is the keyword you would use before adding conditions to your query?

Wähle eine der folgenden:

  • EQUALS

  • WHAT

  • CONDITIONS

  • WHERE

Erklärung

Frage 14 von 67

1

What is meant by the following relational statement STUDENT X COURSE ?

Wähle eine der folgenden:

  • Compute the full outer join between the STUDENT and COURSE relations

  • Compute the left outer join between the STUDENT and COURSE relations

  • Compute the right outer join between the STUDENT and COURSE relations

  • Compute the cartesian between the STUDENT and COURSE relations

Erklärung

Frage 15 von 67

1

What does follow after the SQL WHERE clause?

Wähle eine der folgenden:

  • List of columns to be selected

  • None of the given

  • Name of the table we are selecting from

  • Selection condition

Erklärung

Frage 16 von 67

1

What is meant by the term union compatibility?

Wähle eine der folgenden:

  • None

  • When two or more tables share the same (or compatible) domains

  • When two or more tables share the same number of columns and when they share the same domains

  • When two or more tables share the same number of columns

Erklärung

Frage 17 von 67

1

What keyword can you use to search for a string in a column?

Wähle eine der folgenden:

  • FIND STRING

  • LIKE

  • CONTAINS STRING

  • HAS STRING

Erklärung

Frage 18 von 67

1

What is the meaning of LIKE ‘%0%0%’

Wähle eine der folgenden:

  • Feature begins with the two 0’s

  • Feature ends with two 0’s

  • Feature has more than two 0’s

  • Feature has two 0’s in it, at any position

Erklärung

Frage 19 von 67

1

What is the purpose of the SQL AS clause?

Wähle eine der folgenden:

  • The AS clause is used with the aggregate functions only

  • None of the given

  • The AS clause defines a search condition

  • The AS SQL clause is used to change the name of a column in the result set or to assign a name to a derived column

Erklärung

Frage 20 von 67

1

Which product is returned in a join query have no join condition:

Wähle eine der folgenden:

  • None

  • Equijoins

  • Both

  • Cartesian

Erklärung

Frage 21 von 67

1

Which SQL statement will selects all rows from a table called “Customers” and orders the result by “customer name” ?

Wähle eine der folgenden:

  • SELECT * FROM Customers ORDERED customer_name

  • SELECT * FROM Customers ORDERED BY’ customer_name

  • SELECT * FROM Customers ORDER customer_name

  • SELECT * FROM Customers ORDER ON customer_name

Erklärung

Frage 22 von 67

1

Which SQL statement is used to extract data from a database?

Wähle eine der folgenden:

  • EXTRACT

  • OPEN

  • SELECT

  • GET

Erklärung

Frage 23 von 67

1

Which of the following is a legal expression in SQL?

Wähle eine der folgenden:

  • SELECT NULL FROM Employee;

  • SELECT name FROM Employee WHEN salary = NULL;

  • None of the given

  • SELECT name FROM Employee;

Erklärung

Frage 24 von 67

1

Which SQL keyword is used to retrieve a maximum value?

Wähle eine der folgenden:

  • TOP

  • MOST

  • UPPER

  • MAX

Erklärung

Frage 25 von 67

1

Which SQL statement is used to return only different (unique) values?

Wähle eine der folgenden:

  • SELECT *

  • SELECT DISTINCT

  • SELECT DIFFERENT

  • SELECT UNIQUE

Erklärung

Frage 26 von 67

1

Which one of the following sorts rows in SQL?

Wähle eine der folgenden:

  • ORDER BY

  • GROUP BY

  • ALIGN BY

  • SORT BY

Erklärung

Frage 27 von 67

1

Which of the following are the five built-in functions provided by SQL?

Wähle eine der folgenden:

  • SUM,AVG,MULT,DIV,MIN

  • SUM,AVG,MIN,MAX,MULT

  • SUM,AVG,MIN,MAX,NAME

  • COUNT,SUM,AVG,MAX,MIN

Erklärung

Frage 28 von 67

1

Which of the following is the correct order of keywords for SQL SELECT statements?

Wähle eine der folgenden:

  • FROM,WHERE,SELECT

  • SELECT,WHERE,FROM

  • WHERE,FROM,SELECT

  • SELECT,FROM,WHERE

Erklärung

Frage 29 von 67

1

Which SQL keyword is used to sort the result set?

Wähle eine der folgenden:

  • ⦁ ORDER BY

  • ⦁ SORT

  • ⦁ FILTER

  • ⦁ SORT BY

Erklärung

Frage 30 von 67

1

Which of the following is NOT a relational algebra operators used in basic queries?

Wähle eine der folgenden:

  • ⦁ Select

  • ⦁ Locate

  • ⦁ Project

  • ⦁ Join

Erklärung

Frage 31 von 67

1

Which of the following is not a SQL database manipulation statement?

Wähle eine der folgenden:

  • ⦁ SELECT

  • ⦁ CREATE TABLE

  • ⦁ DELETE

  • ⦁ UPDATE

Erklärung

Frage 32 von 67

1

Which of the following SQL statements deletes all rows in table called SalesData?

Wähle eine der folgenden:

  • ⦁ DELETE FROM SalesData

  • ⦁ DELETE * FROM SalesData

  • ⦁ DELETE ALL SalesData

  • ⦁ DELETE SalesData

Erklärung

Frage 33 von 67

1

Which of the following is an SQL aggregate function?

Wähle eine der folgenden:

  • ⦁ ALTER

  • ⦁ MIN

  • ⦁ BETWEEN

  • ⦁ CREATE

Erklärung

Frage 34 von 67

1

Which of the following is not DML statement?

Wähle eine der folgenden:

  • ⦁ UPDATE

  • ⦁ INSERT

  • ⦁ ALTER TABLE

  • ⦁ DELETE

Erklärung

Frage 35 von 67

1

With SQL, how do you select all the columns from a table named “Persons”?

Wähle eine der folgenden:

  • ⦁ SELECT *.Persons;

  • ⦁ SELECT [all] FROM Persons;

  • ⦁ SELECT * FROM Persons;

  • ⦁ SELECT Persons;

Erklärung

Frage 36 von 67

1

With SQL, how can you return all the records from a table named “Persons” sorted descending by “FirstName”?

Wähle eine der folgenden:

  • ⦁ SELECT * FROM Persons SORT BY ‘FirstName’ DESC;

  • ⦁ SELECT * FROM Persons ORDER BY FirstName DESC;

  • ⦁ SELECT * FROM Persons SORT ‘FirstName’ DESC;

  • ⦁ SELECT * FROM Persons ORDER FirstName DESC;

Erklärung

Frage 37 von 67

1

With SQL, how can you return the number of records in the “Persons” table?

Wähle eine der folgenden:

  • ⦁ SELECT COLUMNS(*) FROM Persons

  • ⦁ SELECT COUNT() FROM Persons

  • ⦁ SELECT COLUMNS() FROM Persons

  • ⦁ SELECT COUNT(*) FROM Persons

Erklärung

Frage 38 von 67

1

With SQL, how do you select all the records from a table named “Persons” where the value of the column “FirstName” is “Peter”?

Wähle eine der folgenden:

  • ⦁ SELECT * FROM Persons WHERE FirstName = ‘Peter’

  • ⦁ SELECT [all] FROM Persons WHERE FirstName = ‘Peter’

  • ⦁ SELECT [all] FROM Persons WHERE FirstName LIKE ‘Peter’

  • ⦁ SELECT * FROM Persons WHERE FirstName <> ‘Peter

Erklärung

Frage 39 von 67

1

With SQL, how do you select all the records from a table named “Persons” where the “FirstName” is ”Peter” and the “LastName” is “Jackson”?

Wähle eine der folgenden:

  • ⦁ SELECT * FROM Persons WHERE LastName = ‘Jackson’;

  • ⦁ SELECT FirstName = ’Peter’, LastName = ‘Jackson’ FROM Persons;

  • ⦁ SELECT * FROM Persons WHERE FirstName <> ‘Peter’ AND LastName<>’Jackson’;

  • ⦁ SELECT * FROM Persons WHERE FirstName = ‘Peter’ AND LastName =’Jackson’;

Erklärung

Frage 40 von 67

1

How to select all data from student table starting the name from letter ’r’ ?

Wähle eine der folgenden:

  • ⦁ SELECT * FROM student WHERE name LIKE ‘%’

  • ⦁ SELECT * FROM student WHERE name LIKE ‘%r’

  • ⦁ SELECT * FROM student WHERE name LIKE ‘r%’

  • ⦁ SELECT * FROM student WHERE name LIKE ‘%r%’

Erklärung

Frage 41 von 67

1

SQL query and data modification commands make up a(n)___

Wähle eine der folgenden:

  • ⦁ DCL

  • ⦁ DDL

  • ⦁ DML

  • ⦁ TCL

Erklärung

Frage 42 von 67

1

DML is used to

Wähle eine der folgenden:

  • ⦁ Add and delete tables

  • ⦁ Add/modify/delete data in the database

  • ⦁ Specify the structure of a database

  • ⦁ Manipulate the structure of database applications

Erklärung

Frage 43 von 67

1

If you want to apply second condition to your statement where both statements must be true, what keyword would you use between the conditions?

Wähle eine der folgenden:

  • ⦁ AND

  • ⦁ TRUE

  • ⦁ WHERE

  • ⦁ BOTH

Erklärung

Frage 44 von 67

1

Find all the cities with temperature, condition and humidity whose humidity is in the range of 63 to 79

Wähle eine der folgenden:

  • ⦁ SELECT *FROM weather WHERE humidity NOT BETWEEN 63 AND 79

  • ⦁ SELECT *FROM weather WHERE humidity BETWEEN 63 AND 79

  • ⦁ SELECT *FROM weather WHERE humidity = 63 to 79

  • ⦁ SELECT *FROM weather WHERE humidity 63 AND 79

Erklärung

Frage 45 von 67

1

Like operator uses __ and ___.

Wähle eine der folgenden:

  • ⦁ Asterisk(*); percent sign(%)

  • ⦁ Question mark(?); asterisk(*)

  • ⦁ Percent sign(%); underscore(_)

  • ⦁ Underscore(_); question mark(?)

Erklärung

Frage 46 von 67

1

You can add a row using SQL in a database with which of the following?

Wähle eine der folgenden:

  • ⦁ ADD

  • ⦁ MAKE

  • ⦁ INSERT

  • ⦁ CREATE

Erklärung

Frage 47 von 67

1

A subquery in an SQL SELECT statement is enclosed in:

Wähle eine der folgenden:

  • ⦁ Braces - {…}

  • ⦁ CAPITAL LETTERS

  • ⦁ Parenthesis - (…)

  • ⦁ Brackets – […]

Erklärung

Frage 48 von 67

1

Which of the SQL statements is correct?

Wähle eine der folgenden:

  • SELECT Username, Password WHERE Username = 'user1'

  • SELECT Username AND Password FROM Users

  • None of the given

  • SELECT Username, Password FROM Users

Erklärung

Frage 49 von 67

1

Which of the following is a DML statement?

Wähle eine der folgenden:

  • DROP TABLE

  • ALTER TABLE

  • CREATE TABLE

  • SELECT

Erklärung

Frage 50 von 67

1

With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" starts with an "a"?

Wähle eine der folgenden:

  • SELECT * FROM Persons WHERE FirstName='a';

  • SELECT * FROM Persons WHERE FirstName LIKE '%a';

  • SELECT * FROM Persons WHERE FirstName='%a%';

  • SELECT * FROM Persons WHERE FirstName LIKE 'a%';

Erklärung

Frage 51 von 67

1

What SQL structure is used to limit column values of a table?

Wähle eine der folgenden:

  • None of the given

  • The VALUE constraint

  • The CHECK constraint

  • The LIMIT constraint

Erklärung

Frage 52 von 67

1

Which of the following is used to denote the projection operation in relational algebra?

Wähle eine der folgenden:

  • Pi (Greek)

  • Lambda (Greek)

  • Omega (Greek)

  • Sigma (Greek)

Erklärung

Frage 53 von 67

1

To define what columns should be displayed in an SQL SELECT statement:

Wähle eine der folgenden:

  • use USING to name the source table(s) and list the columns to be shown after WHERE.

  • use USING to name the source table(s) and list the columns to be shown after SELECT.

  • use FROM to name the source table(s) and list the columns to be shown after SELECT.

  • use SELECT to name the source table(s) and list the columns to be shown after USING.

Erklärung

Frage 54 von 67

1

In the query "SELECT address FROM users", what is the column being selected?

Wähle eine der folgenden:

  • FROM

  • SELECT

  • address

  • users

Erklärung

Frage 55 von 67

1

Which of the following is used to denote the selection operation in relational algebra?

Wähle eine der folgenden:

  • Sigma (Greek)

  • Pi (Greek)

  • Lambda (Greek)

  • Omega (Greek)

Erklärung

Frage 56 von 67

1

Which of the following SQL statements will select all records with all their columns from a table called Sales.

Wähle eine der folgenden:

  • DELETE FROM Sales

  • None of the given

  • SELECT * FROM Sales

  • SELECT * FROM SALES WHERE OrderID < 1

Erklärung

Frage 57 von 67

1

To eliminate duplicate values in a column ______ is used

Wähle eine der folgenden:

  • DISTINCT

  • NODUPLICATE

  • None of these

  • ELIMINATE

Erklärung

Frage 58 von 67

1

Which SQL functions is used to count the number of rows?

Wähle eine der folgenden:

  • COUNTOF()

  • SUM()

  • COUNT()

  • NUMBER()

Erklärung

Frage 59 von 67

1

_____ specifies a search condition for a group or an aggregate function

Wähle eine der folgenden:

  • ⦁ FROM Clause

  • ⦁ GROUP BY Clause

  • ⦁ HAVING Clause

  • ⦁ WHERE Clause

Erklärung

Frage 60 von 67

1

What will be the result of the following SQL statement: SELECT * FROM Table1 HAVING Column1 > 10

Wähle eine der folgenden:

  • a. None of the given

  • b. The SQL statement will generate an error

  • c. The result will be empty data set

  • d. The result will be all rows from Table1 which have Column1 values greater than 10

Erklärung

Frage 61 von 67

1

The result of an SQL SELECT statement is a(n) _____

Wähle eine der folgenden:

  • table

  • form

  • report

  • file

Erklärung

Frage 62 von 67

1

What keyword would you use to group your results by a column’s values?

Wähle eine der folgenden:

  • ORDER BY

  • BY

  • JOIN

  • GROUP BY

Erklärung

Frage 63 von 67

1

With SQL, how do you select a column named “FistName” from a table named “Persons”?

Wähle eine der folgenden:

  • SELECT FirstName FROM Persons;

  • SELECT Persons.FirstName

  • None of the given

  • EXTRACT FirstName FROM Persons

Erklärung

Frage 64 von 67

1

SQL can be used:

Wähle eine der folgenden:

  • modify database data only

  • All of the given can be done by SQL

  • query database data only

  • create database structure only

Erklärung

Frage 65 von 67

1

Which SQL keyword is used to specify conditional search?

Wähle eine der folgenden:

  • FIND

  • SELECT

  • WHERE

  • SEARCH

Erklärung

Frage 66 von 67

1

Which of the following is an SQL aggregate function

Wähle eine der folgenden:

  • SELECT

  • JOIN

  • DISTINCT

  • AVG

Erklärung

Frage 67 von 67

1

In an SQL SELECT statement querying a single table, the asterisk(*) means that:

Wähle eine der folgenden:

  • None of the given

  • all records meeting the full criteria are to be returned

  • all columns of the table are to be returned.

  • all records with even partial criteria met are to be returned

Erklärung