From 4d35795899ec7eec6120bf9be958e28c39d44fdf Mon Sep 17 00:00:00 2001 From: Luiz Felipe dos Santos Pereira <66455085+LuizFelipeSantosPereira@users.noreply.github.com> Date: Fri, 10 May 2024 18:19:14 -0300 Subject: [PATCH] Fix typos in SQL roadmap (#5112) The original text misleads the reader. A column subquery shouldn't use the "=" operator, but the "in" operator. --- src/data/roadmaps/sql/content/107-sub-queries/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/roadmaps/sql/content/107-sub-queries/index.md b/src/data/roadmaps/sql/content/107-sub-queries/index.md index 07cf8a35f..54fbb48df 100644 --- a/src/data/roadmaps/sql/content/107-sub-queries/index.md +++ b/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); ``` -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.