Search Header Logo

SQL (76-103)

Authored by Gulnaz Sabdenova

Other

University

Used 4+ times

SQL (76-103)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

28 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Retrieve all data from the table office {id, locations, name}

Select *from office;

Select from office;

Select name from office;

Select *form office;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

sName,sAddress(Student) is equal to?

SELECT Sname FROM Students

SELECT Sname, SAddress FORM Students

SELECT Sname and SAddress FROM Students

SELECT Sname, SAddress FROM Student

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Define an union

combines the result set of two or more select statements

returns all rows from the left table (1. ) and from the right table (2)

returns all rows from the right table (2), with the matching rows in the right table (1. )

returns all rows from the left table (1. ), with the matching rows in the right table (2)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Find the SQL statement that is equal to: SELECT NAME FROM CUSTOMER WHERE STATE = 'VA';

SELECT NAME IN CUSTOMER WHERE STATE IN 'VA';

SELECT NAME IN CUSTOMER WHERE STATE = 'VA';

SELECT NAME FROM CUSTOMER WHERE STATE IN 'VA';

SELECT NAME IN CUSTOMER WHERE STATE = 'V';

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you change "Hansen" into "Nilsen" in the "LastName" column in the Students table?

Update persons set lastname = 'hansen' into lastname = 'nilsen'

Update students set lastname = 'hansen' into lastname = 'nilsen'

Update persons set lastname = 'hansen' where lastname = 'nilsen'

Update students set lastname = 'nilsen' where lastname = 'hansen'

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

how to Add a new column into existing table?

ALTER TABLE Student MODIFY COLUMN sDegree CHAR(64) NOT NULL

ALTER TABLE Student ADD COLUMN sDegree VARCHAR(64) NOT NULL

ALTER TABLE S ADD COLUMN s VACHAR(64) NOT NULL

ALTER TABLE Student DROP COLUMN sDegree VARCHAR(64) NOT NULL

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

how to change the row(s) in a table

insert

update

change

delete

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?