
SQL Queries Basics

Quiz
•
Other, Other
•
Professional Development
•
Hard
V Analysts
Used 12+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Quiz - Data Analytic Projects

Quiz
•
Professional Development
13 questions
Accessories @ Apple

Quiz
•
Professional Development
20 questions
Teller Quiz

Quiz
•
Professional Development
13 questions
Console quiz

Quiz
•
Professional Development
10 questions
Abnormal Psychology

Quiz
•
Professional Development
10 questions
Company Policies & Labour Law

Quiz
•
Professional Development
20 questions
Dan paquiz

Quiz
•
Professional Development
15 questions
Reading: student information

Quiz
•
Professional Development
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade