BAZA

BAZA

University

15 Qs

quiz-placeholder

Similar activities

DBMS Ex 1

DBMS Ex 1

University

15 Qs

LTP-CP2

LTP-CP2

University

20 Qs

SQL with Python Quiz

SQL with Python Quiz

12th Grade - University

15 Qs

Basic Database Knowledge

Basic Database Knowledge

University

15 Qs

Parcial N° 2 - DBA

Parcial N° 2 - DBA

University

15 Qs

PostTest

PostTest

University

10 Qs

Module 5 & Module 6

Module 5 & Module 6

University - Professional Development

10 Qs

System Analysis and Design - Phase IV. Part 1

System Analysis and Design - Phase IV. Part 1

University

10 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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?