
SQL Queries Basics
Authored by V Analysts
Other, Other
Professional Development
Used 12+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
I have a table named Jobs which contains the data of different jobs on a JobPortal. How do I find the number of rows in the table?
Select count(*) from jobs;
make count(*) from jobs;
insert count(*) from jobs;
delete count(*) from jobs;
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
If we wanted to know the names of all distinct companies in the Job table alphabetically - which of the following queries will do the Job?
Select distinct company from jobs order by company
select distinct company from jobs order by 1
select distinct company from jobs order by company desc
order by company select distinct company from jobs
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The function to get the total of a column in MySQL is?
SUM
ADD
Total
None of the above
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In our Jobs table, what will be the query if I want to get the total ctc given in all the jobs and put it in a variable named total_ctc in the final results?
Select total(ctc) from jobs;
select sum(ctc) as total_ctc from jobs
select total(ctc) as total_ctc from jobs
Both b & c
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Let’s say in the previous example, I want to know the highest and lowest value of ctc in the table. What will the query look like?
Select low(ctc) as lowest_salary,high(ctc) as highest salary from jobs
Select min(ctc) as lowest_salary,max(ctc) as highest salary from jobs
Select lowest(ctc) as lowest_salary,highest(ctc) as highest salary from jobs
None of the above
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Suppose in the table Assignment as we had used in the videos of this module, I want to know the total salary of Pooja Mishra and Sneha. Which of these queries will work fine?
select sum(salary) from assignment where name='Pooja Mishra' and name = 'Sneha'
select sum(salary) from assignment where name='Pooja Mishra' or name = 'Sneha'
select sum(salary) from assignment where name in 'Pooja Mishra' ,'Sneha')
select tot(salary) from assignment where name in 'Pooja Mishra' ,'Sneha')
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The options IN, OR, NOT, AND, BETWEEN are applied to
Group by clause
Where clause
Get
Nest
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
20 questions
Intro 7 Writing Exam
Quiz
•
Professional Development
14 questions
All of piggy roblox by MiniToon
Quiz
•
1st Grade - Professio...
15 questions
Innovation and Creativity
Quiz
•
Professional Development
10 questions
IOS vocabulary
Quiz
•
Professional Development
17 questions
Banking
Quiz
•
Professional Development
18 questions
ICDL Quiz 2
Quiz
•
Professional Development
11 questions
The Loud House
Quiz
•
Professional Development
15 questions
Spider man quiz
Quiz
•
3rd Grade - Professio...
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