
We can use both NOT and LIKE operators in Salesforce SOQLs. Please check the following SOQL for reference.
Sample SOQL:
SELECT Name
FROM Account
WHERE NOT Name LIKE 'Test%'

We can use both NOT and LIKE operators in Salesforce SOQLs. Please check the following SOQL for reference.
Sample SOQL:
SELECT Name
FROM Account
WHERE NOT Name LIKE 'Test%'