Basic SQL

Basic SQL

University

6 Qs

quiz-placeholder

Similar activities

Bài kiểm tra RLNVSP - Học phần Công nghệ thông tin

Bài kiểm tra RLNVSP - Học phần Công nghệ thông tin

University

10 Qs

SQL Queries

SQL Queries

University

10 Qs

9.1 Databases Cambridge IGCSE 0478

9.1 Databases Cambridge IGCSE 0478

10th Grade - University

10 Qs

Postest MODUL 5

Postest MODUL 5

University

10 Qs

NVSP

NVSP

University

10 Qs

RDBMS

RDBMS

University

10 Qs

NVSP - CNTT

NVSP - CNTT

University

10 Qs

SQL

SQL

University

6 Qs

Basic SQL

Basic SQL

Assessment

Quiz

Computers

University

Medium

Created by

Urvashi Thapar

Used 22+ times

FREE Resource

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');