It’s mostly recommended to use <> as it is ANSI compliant. Technically their functions are the same. If you’re using SQL Server AKA T-SQL (Transactional Structured Query Language).
Are you interested in learning SQL from scratch! Have a look at this interesting video on SQL provided by Intellipaat:
But, if you're using it in stored procedures then you can use either != or <> .