Search Header Logo

Final SQL2

Authored by Cavid Memmedov

Specialty

1st Grade

Used 5+ times

Final SQL2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

"Employees" adlı cədvəldən "last_name" sütununda "g" hərifinin olduğu(hərifin böyük-kiçik olmasından aslı olmayaraq ) bütün qeydləri seçən SQL ifadəsi hansıdır?

select * from employees where lower(last_name) like '%g%';

select * from employees where lower(last_name) like 'g%';

select * from employees where lower(last_name) like '%G%';

select * from employees where lower(last_name) = '%g%';

select * from employees where upper(last_name) like '%G';

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Sorğu edilən sütunun NULL qiymətləri varsa, hansı funksiya fərqli sayda sətirdə işləyəcək?

SUM

MIN

MAX

COUNT

AVG

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

"Employees" cədvəlini yalnız oxuma rejiminə salan sorğunu tapın.

alter table Employees read write

alter table Employees read only

modify table Employees read only

drop table Employees read only

alter table Employees read

4.

MULTIPLE SELECT QUESTION

5 mins • 1 pt

"Employees" cədvəlindəki "job_id"-si 'SA_REP' olmayan bütün sətirləri "Employees_copy" cədvəlinə daxil edən variantları tapın tapın.(İki variant seçin)

insert into Employees_copy as select * from Employees where job_id<>'SA_REP';

insert into Employees_copy select * from Employees where job_id<>'SA_REP';

insert into Employees_copy as select * from Employees where job_id !=' SA_REP';

insert into Employees_copy select * from Employees where job_id ^='SA_REP';

insert into Employees_copy select * from Employees where job_id='SA_REP';

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

"Employees" cədvəlindəki "first_name" -i 'Nancy' olan şəxsin məlumatını silən sorğunu tapın

delete Employees where first_name='Nancy'

drop Employees where first_name='Nancy'

truncate Employees where first_name='Nancy'

drop table Employees where first_name='Nancy'

delete Employees where first_name=Nancy

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Hansı SQL ifadəsində "salary" sütununa əsasən hər bir şəxsin maaşını 10% artımı "Salary Increase" kimi göstərilib.

select salary,salary*1.1 "Salary Increase" from Employees;

select salary,salary*10% "Salary Increase" from Employees;

select salary,salary*0.1 "Salary Increase" from Employees;

select salary,salary*1.1% "Salary Increase" from Employees;

select salary,salary*0.01 "Salary Increase" from Employees;

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Birinci və ikinci ifadələri müqayisə edir. Əgər onların qiyməti bərabər olarsa, funksiya NULL qiymətini qaytaracaq. Əgər onların qiyməti bərabər olmazsa, o zaman funksiya birinci ifadənin qiymətini qaytaran funksiyanı tapın.

NULLİF

NVL

NVL2

İF

İF ELSE

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?