SQL* Challenges
307 subscribers
5 photos
1 file
10 links
Download Telegram
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
INSERT is a representative of:
Anonymous Quiz
67%
DML
3%
DCL
29%
DDL
1%
DLL
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
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
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
๐Ÿ‘3
๐Ÿ‘1
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
๐Ÿ‘3
'View' in SQL is a synonim to:
Anonymous Quiz
79%
Virtual Table
6%
Foreign Key
10%
Table Field
5%
Constraint
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