1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-03-18 22:29:42 +01:00

Fix typos in SQL roadmap (#5112)

The original text misleads the reader. A column subquery shouldn't use the "=" operator, but the "in" operator.
This commit is contained in:
Luiz Felipe dos Santos Pereira 2024-05-10 18:19:14 -03:00 committed by GitHub
parent 6335e51f30
commit 4d35795899
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,11 +40,11 @@ WHERE column_name OPERATOR
WHERE (roll_id, age)=(SELECT MIN(roll_id),MIN(age) FROM student);
```
3. **Column subquery**: It returns single column value which is more than one row and one column.
3. **Column subquery**: It returns single column value with multiple rows and one column.
```sql
SELECT name, age FROM student
WHERE name=(SELECT name FROM student);
WHERE name in (SELECT name FROM student);
```
4. **Table subquery**: It returns more than one row and more than one column.