Search Header Logo

Basic SQL

Authored by Urvashi Thapar

Computers

University

Used 22+ times

Basic SQL
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What does the SELECT Statement do?

Data is read from the SQL database by this statement and displayed to the database user.

The stored data in the SQL database is changed or modified by this SQL statement.

By deleting the stored data, this SQL statement deletes the database.

A new table in SQL is created using this SQL statement.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the functionality of SQL COUNT?

It returns the no of record of column

It returns the no of record of database

It returns the no of record of table

It returns the no of record of row

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

In SQL SELECT COUNT, one needs to specify the –

Row Name

Column Name

Table name

None of the above

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What does SQL stand for?

Sample Query Language

Sequential Query Language

Sample Query Language

Structured Query Language

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

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

Select * from Persons where FirstName = "Peter"

Select [all] from Persons where FirstName = "Peter"

Select * from Persons where FirstName <> "Peter"

Select [all] from Persons where FirstName Like "Peter"

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which of the following statements would you use to add a new instructor to the Instructor table.

SELECT Instructor(ins_id, lastname, firstname, city, country)

FROM VALUES(4, 'Doe', 'John', 'Sydney', 'AU');

INSERT INTO Instructor(ins_id, lastname, firstname, city, country)

VALUES(4, 'Doe', 'John', 'Sydney', 'AU');

INSERT

VALUES(4, 'Doe', 'John', 'Sydney', 'AU') INTO Instructor(ins_id, lastname, firstname, city, country);

UPDATE Instructor(ins_id, lastname, firstname, city, country)

WITH VALUES(4, 'Doe', 'John', 'Sydney', 'AU');

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?

Discover more resources for Computers