Skip to content

Bug Report for sql-delete-where #5599

@vishalreddy074

Description

@vishalreddy074

Bug Report for https://neetcode.io/problems/sql-delete-where

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

In the SQL for beginners course, the DELETE WHERE section has below sql command.
DELETE FROM users
WHERE username = NULL;

NULL is unknown. It will not delete anything as unknown will not be found when you use =.

The correct command would be the following (using the IS operator)
DELETE FROM users
WHERE username IS NULL;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions