SQL Learning π»
ΠΡΠΊΡΡΡΡ Π² Telegram
Learn SQL from Scratch! See also @C_codings, @Cpp_codings , @moreinfoaboutme
ΠΠΎΠ»ΡΡΠ΅Π‘ΡΡΠ°Π½Π° Π½Π΅ ΡΠΊΠ°Π·Π°Π½Π°Π’Π΅Ρ
Π½ΠΎΠ»ΠΎΠ³ΠΈΠΈ ΠΈ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ20 206
4 799
ΠΠΎΠ΄ΠΏΠΈΡΡΠΈΠΊΠΈ
ΠΠ΅Ρ Π΄Π°Π½Π½ΡΡ
24 ΡΠ°ΡΠ°
+127 Π΄Π½Π΅ΠΉ
+1530 Π΄Π΅Π½Ρ
ΠΠ°Π³ΡΡΠ·ΠΊΠ° Π΄Π°Π½Π½ΡΡ ...
ΠΠΎΡ
ΠΎΠΆΠΈΠ΅ ΠΊΠ°Π½Π°Π»Ρ
ΠΠ±Π»Π°ΠΊΠΎ ΡΠ΅Π³ΠΎΠ²
ΠΠ΅Ρ Π΄Π°Π½Π½ΡΡ
ΠΠΎΠ·Π½ΠΈΠΊΠ»ΠΈ ΠΏΡΠΎΠ±Π»Π΅ΠΌΡ? ΠΠΎΠΆΠ°Π»ΡΠΉΡΡΠ°, ΠΎΠ±Π½ΠΎΠ²ΠΈΡΠ΅ ΡΡΡΠ°Π½ΠΈΡΡ ΠΈΠ»ΠΈ ΠΎΠ±ΡΠ°ΡΠΈΡΠ΅ΡΡ ΠΊ Π½Π°ΡΠ΅ΠΌΡ support-ΠΌΠ΅Π½Π΅Π΄ΠΆΠ΅ΡΡ .
ΠΡ
ΠΎΠ΄ΡΡΠΈΠ΅ ΠΈ ΠΈΡΡ
ΠΎΠ΄ΡΡΠΈΠ΅ ΡΠΏΠΎΠΌΠΈΠ½Π°Π½ΠΈΡ
---
---
---
---
---
---
ΠΡΠΈΠ²Π»Π΅ΡΠ΅Π½ΠΈΠ΅ ΠΏΠΎΠ΄ΠΏΠΈΡΡΠΈΠΊΠΎΠ²
Π΄Π΅ΠΊΠ°Π±ΡΡ '24
Π΄Π΅ΠΊΠ°Π±ΡΡ '24
+1
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Π½ΠΎΡΠ±ΡΡ '24
+1
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΎΠΊΡΡΠ±ΡΡ '24
+2
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΡΠ΅Π½ΡΡΠ±ΡΡ '24
+19
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
Π°Π²Π³ΡΡΡ '24
+88
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΈΡΠ»Ρ '240
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΈΡΠ½Ρ '240
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΌΠ°ΠΉ '24
+4
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
Π°ΠΏΡΠ΅Π»Ρ '24
+37
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΌΠ°ΡΡ '24
+62
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΡΠ΅Π²ΡΠ°Π»Ρ '24
+16
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΡΠ½Π²Π°ΡΡ '24
+12
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
Π΄Π΅ΠΊΠ°Π±ΡΡ '23
+978
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
Π½ΠΎΡΠ±ΡΡ '230
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΎΠΊΡΡΠ±ΡΡ '230
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΡΠ΅Π½ΡΡΠ±ΡΡ '230
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
Π°Π²Π³ΡΡΡ '230
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΈΡΠ»Ρ '230
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΈΡΠ½Ρ '230
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΌΠ°ΠΉ '230
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
Π°ΠΏΡΠ΅Π»Ρ '230
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΌΠ°ΡΡ '230
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΡΠ΅Π²ΡΠ°Π»Ρ '230
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΡΠ½Π²Π°ΡΡ '230
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
Π΄Π΅ΠΊΠ°Π±ΡΡ '220
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
Π½ΠΎΡΠ±ΡΡ '22
+147
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΎΠΊΡΡΠ±ΡΡ '22
+92
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΡΠ΅Π½ΡΡΠ±ΡΡ '22
+165
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
Π°Π²Π³ΡΡΡ '22
+182
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΈΡΠ»Ρ '22
+200
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΈΡΠ½Ρ '22
+217
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΌΠ°ΠΉ '22
+226
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
Π°ΠΏΡΠ΅Π»Ρ '22
+343
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΌΠ°ΡΡ '22
+65
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΡΠ΅Π²ΡΠ°Π»Ρ '22
+147
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΡΠ½Π²Π°ΡΡ '22
+235
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
Π΄Π΅ΠΊΠ°Π±ΡΡ '21
+217
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
Π½ΠΎΡΠ±ΡΡ '21
+206
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΎΠΊΡΡΠ±ΡΡ '21
+188
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΡΠ΅Π½ΡΡΠ±ΡΡ '21
+224
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
Π°Π²Π³ΡΡΡ '21
+199
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΈΡΠ»Ρ '21
+174
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΈΡΠ½Ρ '21
+197
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΌΠ°ΠΉ '21
+130
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
Π°ΠΏΡΠ΅Π»Ρ '21
+107
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
Get PRO
ΠΌΠ°ΡΡ '21
+750
Π² 0 ΠΊΠ°Π½Π°Π»Π°Ρ
| ΠΠ°ΡΠ° | ΠΡΠΈΠ²Π»Π΅ΡΠ΅Π½ΠΈΠ΅ ΠΏΠΎΠ΄ΠΏΠΈΡΡΠΈΠΊΠΎΠ² | Π£ΠΏΠΎΠΌΠΈΠ½Π°Π½ΠΈΡ | ΠΠ°Π½Π°Π»Ρ | |
| 11 Π΄Π΅ΠΊΠ°Π±ΡΡ | 0 | |||
| 10 Π΄Π΅ΠΊΠ°Π±ΡΡ | 0 | |||
| 09 Π΄Π΅ΠΊΠ°Π±ΡΡ | 0 | |||
| 08 Π΄Π΅ΠΊΠ°Π±ΡΡ | 0 | |||
| 07 Π΄Π΅ΠΊΠ°Π±ΡΡ | 0 | |||
| 06 Π΄Π΅ΠΊΠ°Π±ΡΡ | 0 | |||
| 05 Π΄Π΅ΠΊΠ°Π±ΡΡ | 0 | |||
| 04 Π΄Π΅ΠΊΠ°Π±ΡΡ | 0 | |||
| 03 Π΄Π΅ΠΊΠ°Π±ΡΡ | 0 | |||
| 02 Π΄Π΅ΠΊΠ°Π±ΡΡ | +1 | |||
| 01 Π΄Π΅ΠΊΠ°Π±ΡΡ | 0 |
ΠΠΎΡΡΡ ΠΊΠ°Π½Π°Π»Π°
When assigning unique identifiers to rows based on a specified order, three key functions come into play: ROW_NUMBER, RANK, and DENSE_RANK.
Consider the following table:
| Name | Score |
|-------- |-------|
| Alice | 90 |
| Bob | 90 |
| Carol | 85 |
| David | 78 |
ROW_NUMBER:
The simplest of the three, ROW_NUMBER assigns a unique number to each row based on the specified order. Each row receives a distinct identifier, incrementing by one.
Example:
1 2 3 4RANK: Assigns unique numbers, and in the case of ties, rows get the same rank, and the next rank is skipped.
1 1 3 4DENSE_RANK: Assigns ranks to rows with tied values, without skipping the next rank
1 1 2 3These functions help in organizing and analyzing data by providing distinct identifiers or ranks based on specified criteria. The example table illustrates how ROW_NUMBER, RANK, and DENSE_RANK operate in assigning order to rows with varying scores. (Note: This is 1/3 of the total number of articles; others are coming soon.)
| 2 | Here's a snippet of code written in C:
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
//some operation
}
}
How can I write something equivalent in SQL?
Solution:Alias
say, you are asked to count the frequency of each color occurring in the same table , so you can write something like this:
select distinct color ,(select count(*) from colors where c.color=color) from colors c; | 8 271 |
| 3 | https://dataengineeringacademy.medium.com/5-sql-queries-every-data-engineer-scientist-should-know-d68261167f1a | 6 723 |
| 4 | Solved_sql_sheet.pdf | 3 579 |
| 5 | Sql_cheatsheet.pdf | 986 |
| 6 | https://towardsdatascience.com/mysql-vs-postgresql-3d48891452a | 1 183 |
| 7 | https://play.google.com/store/apps/details?id=com.sololearn.sql
If you are starting with SQL and wish to code the queries as you learn more about SQL , Sololearn is perfect place for you. | 2 829 |
| 8 | https://www.udemy.com/course/the-complete-sql-course-2020-become-a-mysql-master/?couponCode=SQLCOURSE29
Get this course for free.
Just two days before it expires. | 3 835 |
| 9 | ΠΠ΅Ρ ΡΠ΅ΠΊΡΡΠ°... | 4 540 |
| 10 | You are given this database, your task is to outputβ‘ | 4 132 |
| 11 | Write a sql query to find the Joining date of Employee in YYYY-DAY-Date format. | 3 838 |
| 12 | Write a sql query to delete duplicate rows from a table. | 3 639 |
| 13 | Write a sql query to find the second largest number from table table_name and column number. | 3 503 |
| 14 | SQL.pdf | 3 553 |
| 15 | https://www.techonthenet.com/sql_server/functions/index.php | 3 401 |
| 16 | http://www-db.deis.unibo.it/courses/TW/DOCS/w3schools/sql/sql_functions.asp.html | 3 170 |
| 17 | https://docs.microsoft.com/en-us/sql/t-sql/lesson-1-creating-database-objects?view=sql-server-ver15
Start your tutorial here | 2 987 |
| 18 | Find the Employees who hired in the Last n months. Write a SQL query for that.
Send your queries in the discussion group. | 2 709 |
| 19 | Through this you can access a very good course on SQL for FREE. | 2 958 |
| 20 | Hey everyone ! Been a long since I posted anything. I realised that providing all the details here is meaningless as there are many better resources out there !
Keeping that in mind
Here's something for you
To minimize the impact of coronavirus outbreak on students, Progate (an online coding learning platform from Japan) has shared free access to their learning platform for all students until *30th April 2020*.
You can utilize this time at home by learning new tech skills. This will not only help you to strengthen your programming skills but will also allow you to prepare for interviews and placements.
This access includes 14 detailed online lessons of Python, Go, SQL, Command-Line and Git.
*STEPS TO ACTIVATE YOUR ACCESS:*
1) Create your free account on progate.com
2) Open this link and click the 'Join' button: bit.ly/progatespecialaccessduetocovid19
3) Open bit.ly/progatespecialaccess from a laptop/desktop and select the language | 2 947 |
