Search Header Logo

database Quiz 3 Revision

Authored by hasan kadhem

Computers

University

Used 5+ times

database Quiz 3 Revision
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which of these show all the data from employees table?

select * from employees;

SELECT * FROM employees;

both are correct

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

if you want to make the id column a primary key what do you add in the blank

create table students

(id number(8) _______,

name varchar2(20),

address varchar2(20));

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if i wanted to add a column to have a unique constraint which of these do i choose ?

create table students

(id number(10) primary key,

name varchar2(20),

phone number(9) _______);

Not repeated

constraint phone_unique unique

constraint (phone unique) unique

constraint phone_unique unique (phone)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which of these is a named primary key constraint

student_id number(8) constraint student_pk primary key

student_id number(8) primary key

neither of them

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which of these data types is better suited for Bahraini dinars

number(10,3)

varchar2(10)

number(10)

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

what do you type to calculate the average value of the salary column

select ___________ from employees;

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

how do you ensure that no null values are entered into the address column?

create table students

(student_id number(10),

name varchar2(20),

address varchar2(40) ______ );

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?