find . -type f -name '*.sql' ! -name '2024_03_07*.sql' ! -name '2024_03_08*.sql' -exec rm -f {} +
This command will find all .sql files in the current directory and its subdirectories, exclude files starting with 2024_03_07 and 2024_03_08, and delete the remaining files.