Adds notes.

This commit is contained in:
Tanmay
2022-10-08 16:21:02 +01:00
parent 7b32d3b6cb
commit e371662e0d
5 changed files with 448 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
# Window functions worksheet
1. Print the student names along with the number of students in their batch.
```sql
```
2. Print the student names along with the average IQ of their batch.
```sql
```
3. Print the student names along with the maximum IQ of their batch.
```sql
```
4. Print the student names along with their rank based on IQ.
```sql
```
5. Print the student names along with their rank in their batch based on IQ.
```sql
```
6. Print the student names along with their rank in their batch based on IQ. Ties should not increase the rank.
```sql
```
7. Print the student names along with their rank in their batch based on IQ. Ties should not be counted and broken by ID.
```sql
```
8. Find the rank of batches based on the start date of the batch.
```sql
```
9. Sort the instructors by the first and last name and assign them a roll number.
```sql
```