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);
Which query will return the number of ALL records from the Customers table?
Anonymous Quiz
13%
SELECT COUNT("Hello") FROM Customers;
7%
SELECT NUM() FROM Customers;
16%
SELECT COUNT FROM Customers;
41%
SELECT COUNT(Customer) FROM Customers;
23%
None of the queries
Is it possible to sort records by the column alias?
Anonymous Quiz
58%
Yes, it is possible
16%
No, it is not possible
26%
It is possible but only when alias is used in tandem with aggregation functions
π1
What is the important condition when we use the INSERT INTO SELECT operator?
Anonymous Quiz
48%
The data types in both tables must match.
27%
The number of records in both tables should be the same.
14%
These tables should have relations.
11%
None of the above.
π3
SQL Task
Table name: Customers;
Field name: City;
Select all the cities which names start with S, but not end with n.
You can execute query here
Hint: If you gonna use w3schools default database, the correct request should return 11 records.
Feel free to write your answer as a comment to this task.
#task
Table name: Customers;
Field name: City;
Select all the cities which names start with S, but not end with n.
You can execute query here
Hint: If you gonna use w3schools default database, the correct request should return 11 records.
Feel free to write your answer as a comment to this task.
#task
β€1π1
Is it correct to say that NULL value is the same as zero or space?
Anonymous Quiz
16%
NULL value is a synonym to 0, but space is a different thing.
6%
Yes, all the mentioned values can be used interchangeably.
10%
It is ok, to consider NULL as a synonym to space, but 0 is a digit.
68%
No, NULL value is not equal to 0 or space.
β€1
The Database Dump is most often used to:
Anonymous Quiz
50%
Make a database backup.
25%
Encrypt a database in order to hide the information.
10%
Update a database.
15%
Delete a database.
How information should be represented in the relational database?
Anonymous Quiz
36%
All information must be explicitly represented in a single way: by values in tables.
9%
Doesn't matter all the databases have the same logic of data representation.
6%
Relational database is just a set of unconnected data.
49%
Relational database implies that all information is represented in one two-dimensional table.
π1