Fix typos in SQL roadmap (#5112)

The original text misleads the reader. A column subquery shouldn't use the "=" operator, but the "in" operator.
pull/5125/head^2
Luiz Felipe dos Santos Pereira 7 months ago committed by GitHub
parent 6335e51f30
commit 4d35795899
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      src/data/roadmaps/sql/content/107-sub-queries/index.md

@ -40,11 +40,11 @@ WHERE column_name OPERATOR
WHERE (roll_id, age)=(SELECT MIN(roll_id),MIN(age) FROM student); 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 ```sql
SELECT name, age FROM student 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. 4. **Table subquery**: It returns more than one row and more than one column.

Loading…
Cancel
Save