SQL* Challenges
307 subscribers
5 photos
1 file
10 links
Download Telegram
'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
SQL_big_cheatsheet.pdf
1.5 MB
Big SQL cheat sheet with queries examples.
👍5
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
❤1👍1
You may see the Products table on the picture.

Write a query to find the second highest price value in the table.

You can execute query here

Please feel free to provide your solution in the comments to this post.

SOLUTION
SELECT MAX(Price) FROM Products WHERE Price < (SELECT MAX(Price) FROM Products);

#task
😁1
Which type of relation is reflected on the picture?
Anonymous Quiz
26%
One-to-one
41%
One-to-many
25%
Many-to-many
9%
All-to-all
A view is nothing but a ________ table or a stored query
Anonymous Quiz
15%
Dynamic
3%
Real
10%
Custom
65%
Virtual
4%
Basic
3%
Common