Emanuel Grigoras
Quiz by , created more than 1 year ago

Quiz on PBD teorie, created by Emanuel Grigoras on 11/01/2021.

312
0
0
No tags specified
Emanuel Grigoras
Created by Emanuel Grigoras almost 4 years ago
Close

PBD teorie

Question 1 of 21

1

Comanda DESCRIBE afiseasza toate datele unui tabel.

Select one or more of the following:

  • True

  • False

Explanation

Question 2 of 21

1

Care dintre urmatoarele operatii pot fi executate asupra unei vederi , indiferent de definitia sa?

Select one of the following:

  • INSERT

  • UPDATE

  • DELETE

  • SELECT

Explanation

Question 3 of 21

1

MERGE este o comanda SQL care se executa asupra mai multor tabele.

Select one of the following:

  • True

  • False

Explanation

Question 4 of 21

1

Intr-o interogare SQL in care, in clauza FROM sunt mai multe tabele, pentru realizarea jonctiunii este obligatorie si clauza:

Select one of the following:

  • where

  • from

  • group by

Explanation

Question 5 of 21

1

Operanzii utilizati impreuna cu operatorii pe multimi ( SET) trebuie sa fie compatibili la

Select one of the following:

  • reuniune

  • intersectie

Explanation

Question 6 of 21

1

Urmatoarea interogare intoarce eroare:
UPDATE angajati
SET salariu = ( SELECT salariu
FROM angajati
WHERE id_angajat IN (100,101,102))
WHERE id_angajat = 110;

Select one of the following:

  • True

  • False

Explanation

Question 7 of 21

1

Fie tabelul :
Student (matricol ,nume,prenume,cnp,medie_admitere)

Select one or more of the following:

  • Insert into student values ( 'FIESCC123','Dan','9.30);

  • INSERT INTO student (nume,prenume,medie_admitere) values ('Popa','Dan',9.30);

  • INSERT INTO student values ( 'FIESCC123', 'Popa','Dan','2610711335102',9.30);

  • INSERT INTO student(nume,prenume,medie_admitere) VALUES('Popa','Dan','9.30');

Explanation

Question 8 of 21

1

Care din operatii pe multimi (SET) este echivalent cu urmatoarea interogare:
Select department_id
From employees
Where departments_id NOT IN
(SELECT department_id FROM employees)

Select one of the following:

  • MINUS

  • INTERSECT

  • UNION

Explanation

Question 9 of 21

1

Intr-o instructiune UPDATE se pot folosi exclusiv subinterogari scalare

Select one of the following:

  • True

  • False

Explanation

Question 10 of 21

1

Completati urmatoarea interogare SQL:

SELECT employee_id, last_name,job_id, manager_id, .....
FROM employees
CONNECT BY PRIOR employee_id = manager_id;

Select one of the following:

  • LEVEL

  • UNION

Explanation

Question 11 of 21

1

Intr-o interogare SQL , clauza care ne permite sa specificam acele campuri care vor fi afisate in rezultat este:

Select one of the following:

  • SELECT

  • AS

Explanation

Question 12 of 21

1

SE doreste afisarea numarul de angajati din fiecare departament. Care din urmatoarele interogari este / sunt corecte?

A. Select department_id, count(*)
from employees

B. SELECT department_id, count(employee_id)
FROM employees
Group by department_id;

C. Select department_id, count(*)
From employees
Group by department_id;

D. SELECT department_id,employee_id,count(employee)id)
From employees
Group By department_id;

Select one or more of the following:

  • B

  • C

  • A

  • D

Explanation

Question 13 of 21

1

In schema unui utilizator pot exista mai multe obiecte de acelasi tip cu acelasi nume

Select one of the following:

  • True

  • False

Explanation

Question 14 of 21

1

Care din urmatoarele instructiuni SQL au efect asupra metadatelor dintr-o baza de date?

Select one of the following:

  • ALTER(tabele),DROP,CREATE

  • UPDATE(inregistrari)

  • DELETE(inregistrari)

  • INSERT(inregistrari)

Explanation

Question 15 of 21

1

Ce clauza trebuie utilizata intr-o instructiune SELECT pentru a limita afisarea inregistrarilor la acei angajati care au salarii mai mari de 5000?

Select one of the following:

  • Having SALARY>5000

  • WHERE SALARY>5000

  • ORDER BY SALARY >5000

  • GROUP BY SALARY > 5000

Explanation

Question 16 of 21

1

Operatorul ............. face reuniunea a 2 tabele si elimina eventualele duplicate.

Select one of the following:

  • UNION

  • INTERSECT

Explanation

Question 17 of 21

1

Pentru a afisa data intr-o interogare SQL se foloseste functia
select ...... from dual

Select one of the following:

  • sysdate

  • from_dual

Explanation

Question 18 of 21

1

O Instructiune de manipulare a datelor (UPDATE,INSERT,DELETE) inregistrari:

Select one or more of the following:

  • valideaza o tranzactie intr-un table

  • modifica structura unui table fara a afecta datelor continute de acestia

  • modifica structura datelor dintr-un table

  • modifica datele unui table fara a afecta structura acesteia.

Explanation

Question 19 of 21

1

Tabelul pe care trebuie sa il folositi intr-o interogare SQL pentru a afisa data curenta este :

Select one of the following:

  • Tabelul_dual

  • sys_date

Explanation

Question 20 of 21

1

Fie urmatoarea declaratie SQL:

CREATE VIEW vederea_mea AS
SELECT employee_id, first_name, last_name, salary
FROM employees;

Ce se stocheaza in baza de date in urma executiei acesteia?

Select one or more of the following:

  • atat metadatele cat si datele rezultate din ececutia declaratiei SELECT

  • datele rezultate din rezolvarea declaratiei SELECT

  • metadatele corespunzatoare vederii

Explanation

Question 21 of 21

1

Urmatoare interogare intoarce eroare?

UPDATE angajati
SET salariu = ( SELECT salariu
FROM angajati
WHERE id_angajat =102)
WHERE ID_angajat = 110

Select one or more of the following:

  • True

  • False

Explanation