API with NestJS #84. Implementing filtering using subqueries with raw SQL
In this series, we’ve often had to filter the records in our database. We can achieve that with a simple WHERE clause.
1 2 |
SELECT * FROM posts WHERE author_id = 1 |
In this article, we go through different use cases of more advanced filtering. We achieve it by using the WHERE keyword with subqueries. EXISTS In some of the previous parts of this series, […]