Search Header Logo

BAZA

Authored by Біржан Айқын

Computers

University

Used 3+ times

 BAZA
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

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

Already have an account?