I'm using Postgres SQL where I need to find cust_contact which does not start with string character J or M while the same query can be performed in Microsoft Excel using the code below:
SELECT cust_contact
FROM Customers
WHERE cust_contact LIKE '[^JM]%'
ORDER BY cust_contact;
how can we achieve the same task using PostgreSQl