
Test grila - SELECT
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Chis Lucian
Used 6+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Fie tabela Angajati cu structura: (ID int(3), nume varchar(30), data_nas date, data_ang date, salariu float).
Să se afișeze angajații cu un salariu peste medie.
Select nume from angajati where salariu>avg(salariu);
select nume from angajati where salariu>( select avg(salariu) from angajati);
select nume from angajati where salariu<( select avg(salariu) from angajati);
select nume from angajati where salariu>sum(salariu)/count(*);
2.
MULTIPLE SELECT QUESTION
5 mins • 1 pt
Fie tabela Angajati cu structura: (ID int(3), nume varchar(30), data_nas date, data_ang date, salariu float).
Să se afișeze numele celui mai tânăr angajat.
select nume from angajati where data_nas=(select max(data_nas) from angajati);
select nume from angajati where data_nas=(select min(data_nas) from angajati);
select nume from angajati where year(data_nas)<(select min(year(data_nas) from angajati));
select nume from angajati where year(data_nas)<(select max(year(data_nas) from angajati));
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Fie tabela Angajati cu structura: (ID int(3), nume varchar(30), data_nas date, data_ang date, salariu float).
Să se afișeze salariile mărite cu 1/4% pentru angajații care își serbează ziua de naștere în luna curentă
select nume, salariu*1/4 from angajati where mounth(data_nas)=mounth(curdate());
select nume, salariu+salariu*0.25 from angajati where mounth(data_nas)=cmounth(curdate());
select nume, salariu+salariu*5/20 from angajati where mounth(data_nas)=mounth(curdate());
select nume, salariu*1/4 from angajati where mounth(data_nas)=cmounth(curdate());
4.
MULTIPLE SELECT QUESTION
3 mins • 1 pt
Fie tabela Angajati cu structura: (ID int(3), nume varchar(30), data_nas date, data_ang date, salariu float).
Să se afișeze angajații în ordinea crescătoare a salariilor, iar cei cu același salariu –în ordine alfabetică.
select nume from angajati order by salariu and nume;
select nume from angajati order by salariu, nume;
select nume from angajati where salariu>=(select min(salariu) from angajati order by nume);
select nume from angajati where salariu<=(select min(salariu) from angajati order by nume);
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Fie tabela Angajati cu structura: (ID int(3), nume varchar(30), data_nas date, data_ang date, salariu float).
Să se afișeze numele și salariile angajaților care s-au angajat în aceeași lună cu luna de naștere.
select nume, salariu from angajati where mounth(data_nas) =mounth(data_ang);
select nume, salariu from angajati where cmounth(data_nas) =cmounth(data_ang);
select nume, salariu from angajati where cmonth(data_ang)=(select cmounth(data_nas) from angajati)
select nume, salariu from angajati where cmonth(data_ang)=(select distinct cmounth(data_nas) from angajati)
6.
MULTIPLE SELECT QUESTION
3 mins • 1 pt
Fie tabela Angajati cu structura: (ID int(3), nume varchar(30), data_nas date, data_ang date, salariu float).
Care este suma salariilor angajaților care au un salariu peste medie?
select sum(salariu) from angajati where salariu>avg(salariu);
select sum(avg(salariu)) from angajati;
select sum(salariu) from angajati salariu>(select avg(salariu) from angajati);
select sum(salariu) from angajati where salariu>(select avg(salariu) from angajati);
7.
MULTIPLE SELECT QUESTION
3 mins • 1 pt
Fie tabela Angajati cu structura: (ID int(3), nume varchar(30), data_nas date, data_ang date, salariu float).
Sa se afiseze toate informatiile despre angajatii care incep cu litera P.
select * from angajati where left(nume,1)='P';
select * from angajati where nume[0]='P';
select nume, salariu, data_nas, data_ang from angajati where left(nume,1)='P';
select nume and salariu and data_nas and data_ang from angajati where left(nume,1)='P';
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
10 questions
REVIEW AD KLS 9
Quiz
•
9th Grade - University
13 questions
Stepwise Refinement
Quiz
•
11th - 12th Grade
10 questions
Human Computer Interface
Quiz
•
8th - 12th Grade
10 questions
3ero Informática PBD
Quiz
•
12th Grade
10 questions
DigiTech Unit 1 Data 1
Quiz
•
7th - 12th Grade
10 questions
OS Essentials Chp11: Windows Configuration Quiz on 11.5 to 11.7
Quiz
•
11th - 12th Grade
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
15 questions
TSI Math Practice Questions
Quiz
•
8th - 12th Grade
24 questions
Identify Properties of Polygons and Quadrilaterals
Quiz
•
9th - 12th Grade
