BAZA

BAZA

University

15 Qs

quiz-placeholder

Similar activities

SQL query quiz

SQL query quiz

University

20 Qs

SQL

SQL

University

18 Qs

SQL basico

SQL basico

University

11 Qs

RDBMS-SQL

RDBMS-SQL

University

10 Qs

Rdbms -2-bulit in functions

Rdbms -2-bulit in functions

University

15 Qs

Database Introduction 3

Database Introduction 3

University

15 Qs

JSP

JSP

University

10 Qs

MB-6

MB-6

University

20 Qs

 BAZA

BAZA

Assessment

Quiz

Computers

University

Medium

Created by

Біржан Айқын

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


The _____ combines all tuples from two relations excluding duplicates.

DIFFERENCE

Divide

UNION

INTERSECT

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct option to convert phone_number attribute from varchar to integer data type

phone_number::varchar (3)

phone_number: int

phone_number::varchar(*)

phone_number to int

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


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

SELECT MAX(*) FROM Persons
SELECT AVG(*) FROM Persons
SELECT SUM(*) FROM Persons
SELECT COUNT(*) FROM Persons

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

FROM, SELECT, WHERE
SELECT, FROM, WHERE
SELECT, WHERE, FROM
WHERE, SELECT, FROM

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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"?

SELECT * FROM Persons WHERE FirstName LIKE 'a%'
SELECT * FROM Persons WHERE FirstName = 'a'
SELECT * FROM Persons WHERE FirstName LIKE 'a%;
SELECT * FROM Persons WHERE FirstName LIKE 'a_'

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Find all the tuples having temperature greater than 'Paris'.

SELECT * FROM weather WHERE temperature > (SELECT temperature FROM weather WHERE city 'Paris')

SELECT * FROM weather WHERE temperature > 'Paris' temperature

SELECT FROM weather WHERE temperature > (SELECT FROM weather WHERE city = 'Paris')

SELECT * FROM weather WHERE temperature > (SELECT city FROM weather WHERE city = 'Paris')

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Values of one type can be converted to another type using which of the following?

CAST

CONVERT

DROP TYPE

ALTER TYPE

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?