Let's say if there is a task to order records by one field or another depeinding on specified conditions, is it possible to implement the kind of logic within the query?
Anonymous Quiz
90%
Yes, it's possible.
10%
No, it's not possible.
๐ฅฐ1
Which keyword can be used for shortening the JOIN syntactic construction?
Anonymous Quiz
8%
APPLY
7%
ADJUST
4%
ASSUME
49%
USING
3%
DOING
29%
MATCH
What is the name of the function that will increase the number of the primary key by one, each time when a new record will be inserted?
Anonymous Quiz
15%
Auto Update
66%
Auto Increment
2%
Auto Change
4%
Auto Check
13%
Auto Insert
In the database context what the BLOB abbreviation stands for?
Anonymous Quiz
7%
Bisectoral Linear Object
12%
Business Logic Object
51%
Binary Large Object
30%
Binary List of Objects
Which of the following queries can be used to select all the records in the Employees table that have a LastName field value alphabetically between (and including) Davolio and Watson?
Anonymous Quiz
77%
SELECT * FROM Employees WHERE LastName BETWEEN 'Davolio' AND 'Watson'
21%
SELECT * FROM Employees WHERE LastName > 'Davolio' AND LastName < 'Watson'
2%
SELECT LastName > 'Davolio' AND LastName < 'Watson' FROM Employees
๐3
Which one is the correct example of using the CONCAT function?
Anonymous Quiz
10%
SELECT CONCAT IN (Name, Surname) FROM Clients;
14%
SELECT CONCAT = (Name, " ", Surname) AS "Full Name" FROM Clients;
63%
SELECT CONCAT(Name, " ", Surname) AS "Full Name" FROM Clients;
13%
SELECT Name, Surname FROM Clients WHERE CONCAT = (SELECT Name, Surname FROM Clients);
๐1
For what purposes NATURAL JOIN can be used?
Anonymous Quiz
23%
To get all the unique columns from joined tables.
19%
To select only those columns that have the same names from tables to be joined.
16%
There is no such thing as NATURAL JOIN.
43%
NATURAL JOIN is 100% the same as INNER JOIN.
๐4
Task#3
Write a query that will display the FirstName of the employee who processed the most orders between 1996-09-02 and 1996-12-31.
Used tables: Orders, Employees.
You can use w3schools db for writing a query.
As soon as you're done with the task, feel free to share the name of the employee in the comment section to this task (but don't share the code itself, in order not to make a spoiler for others๐)
#task
Write a query that will display the FirstName of the employee who processed the most orders between 1996-09-02 and 1996-12-31.
Used tables: Orders, Employees.
You can use w3schools db for writing a query.
As soon as you're done with the task, feel free to share the name of the employee in the comment section to this task (but don't share the code itself, in order not to make a spoiler for others๐)
#task
Solution to Task#3
SELECT Employees.FirstName
FROM [Orders]
JOIN Employees USING(EmployeeID)
WHERE OrderDate BETWEEN "1996-09-02" AND "1996-12-31"
GROUP BY EmployeeID ORDER BY COUNT(*) DESC LIMIT 1
#task
SELECT Employees.FirstName
FROM [Orders]
JOIN Employees USING(EmployeeID)
WHERE OrderDate BETWEEN "1996-09-02" AND "1996-12-31"
GROUP BY EmployeeID ORDER BY COUNT(*) DESC LIMIT 1
#task
๐3
What is the difference between UNION and INTERSECT?
Anonymous Quiz
77%
UNION combines results from both queries, INTERSECT gets results that only exist in both queries.
10%
INTERSECT combines results from both queries, UNION gets results that only exist in both queries.
8%
UNION and INTERSECT are basically the synonyms and can be used interchangeably
5%
INTERSECT can be considered as UNION but with extended functionality and set of options.
๐2โค1
Given the following table (see the image above).
Which one of the following queries will select top 8 high-paying employees?
Which one of the following queries will select top 8 high-paying employees?
Anonymous Quiz
18%
SELECT COUNT(8), salary FROM employees WHERE salary=MAX(salary);
24%
SELECT * FROM employees WHERE salary=(SELECT MAX(salary) FROM employees) LIMIT 8;
49%
SELECT * FROM employees ORDER BY salary DESC LIMIT 8;
9%
SELECT first_name, last_name, position, MAX(salary) FROM employees GROUP BY employee_id LIMIT 8;
Hello guys!๐๐
If you like the idea of this short video, please like and subscribeโญ๏ธ
If you know learners for whom such content will be most useful, feel free to share๐ช๐ช
Your feedback is motivating me to keep doing things like this, and to support people who want to become a part of the IT sphere!๐
Thanks you, and may the Force be with all of us!๐
#shorts
If you like the idea of this short video, please like and subscribeโญ๏ธ
If you know learners for whom such content will be most useful, feel free to share๐ช๐ช
Your feedback is motivating me to keep doing things like this, and to support people who want to become a part of the IT sphere!๐
Thanks you, and may the Force be with all of us!๐
#shorts
YouTube
SQL 4 Beginners: โHow To Select Values With More Than One Word?๐ณ #shorts #sqlforbeginners #sql
#shorts #sql #sqlqueries #sqlforbeginners #sqltutorial #sqltutorialforbeginners #learnsql #sqlinterview #sqlinterviewquestionsandanswers #sql #qualityassuran...
๐3
'View' in SQL is a synonim to:
Anonymous Quiz
79%
Virtual Table
6%
Foreign Key
10%
Table Field
5%
Constraint
What is INDEX in database?
Anonymous Quiz
21%
Index is basically the same as Primary Key.
56%
Index is a DB structure that is used to improve the performance of queries.
8%
Index is always a combination of Primary and Foreing keys.
15%
Index just means the first record in the table with the lowest ID.
Hello guys!๐
Try this Job Interview Simulation Task.
Once the task was displayed, stop the video, right a query, and then see the answer๐๐ช
And yes, if you like it, you know what to do๐คช
Try this Job Interview Simulation Task.
Once the task was displayed, stop the video, right a query, and then see the answer๐๐ช
And yes, if you like it, you know what to do๐คช
YouTube
SQL Task Tutorial for Beginners /#1 - Selection outside the given set
Join our Telegram channel to have more quizzes and tasks with answers: t.me/SQL_Challenges
You may use the following platform to practice SQL queries:
www.w3schools.com/sql/
#shorts #sql #sqlqueries #sqlforbeginners #sqltutorial #sqltutorialforbeginnersโฆ
You may use the following platform to practice SQL queries:
www.w3schools.com/sql/
#shorts #sql #sqlqueries #sqlforbeginners #sqltutorial #sqltutorialforbeginnersโฆ
โค2๐1
If you need to delete the entire content from the table but keep the table structure, which command will you use?
Anonymous Quiz
21%
DROP
5%
RESET
68%
TRUNCATE
6%
REMOVE
๐1
What is your speciality or desired position?
Anonymous Poll
16%
Software Tester
30%
Developer
4%
DevOps
27%
Business Analyst
6%
System Administrator
3%
Manager
13%
Other
New video for learners is now available guys, if you like it, feel free to like, subscribe and share๐๐
https://www.youtube.com/watch?v=wS2ULNE3wx8
https://www.youtube.com/watch?v=wS2ULNE3wx8
YouTube
SQL Task Tutorial for Beginners /#2 - Two ways how to select the last record only
Join our Telegram channel to have more quizzes and tasks with answers: t.me/SQL_Challenges
You may use the following platform to practice SQL queries:
www.w3schools.com/sql/
#shorts #sql #sqlqueries #sqlforbeginners #sqltutorial #sqltutorialforbeginnersโฆ
You may use the following platform to practice SQL queries:
www.w3schools.com/sql/
#shorts #sql #sqlqueries #sqlforbeginners #sqltutorial #sqltutorialforbeginnersโฆ
๐1
Which query will return the current version of the MySQL database?
Anonymous Quiz
35%
SELECT VERSION();
10%
DISPLAY VERSION;
12%
SELECT GETVERSION();
10%
SELECT VERSION FROM <Table_Name>;
15%
SELECT GETCURRENTVERSION();
16%
SHOW VERSION();
1%
SELECT (VERSION);