Search Header Logo

Structured Query Language-First

Authored by Aswathy Krishnakumar

Computers

12th Grade

Used 50+ times

Structured Query Language-First
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following attribute can be considered as a choice for primary key?

Name

Street

Rollno

Subject

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following attribute cannot be considered as a choice for primary key?

id

licenceno

deptid

street

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An attribute in a relation is a foreign key if it is the ............... key in any other relation.

candidate

primary

super

sub

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following statement. What type of statement is this?

create table employee(id int, name varchar(30));

DML

DDL

DCL

TCL

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The data types char(n) and varchar(n) are used to create ............., and ............. types of string/text fields in a database.

fixed, equal

equal, variable

fixed, variable

variable, equal

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the given query which keyword has to be inserted?

insert into employee ............(1002,'Kausar',20000);

table

values

relation

field

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider following SQL statement. What type of statement is this?

insert into instructor values(10211,'Shreya','Biology',66000);

DDL

DCL

DML

TCL

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?