I just wanted to know if there is a difference between <> and != when expressing inequality in SQL queries.
            Asked
            
        
        
            Active
            
        
            Viewed 137 times
        
    -1
            
            
        - 
                    1I've found the duplicate question in 5 seconds. – Tim Schmelter Aug 01 '14 at 11:11
 - 
                    1Yes. `<>` is the ANSI standard. `!=` is a common synonym. Functionally they are equivalent but not all databases support `!=`. – Gordon Linoff Aug 01 '14 at 11:12
 
1 Answers
1
            Technically these both function are the same, so you may choose whichever you find more readable.
The duplicate question has a relevant line:
'<>' is from the SQL-92 standard, '!=' is a proprietary T-SQL operator.
Also to note that there are may database which doesnot != but since you have tagged it as SQL Server then there is no differenc between them
        Community
        
- 1
 - 1
 
        Rahul Tripathi
        
- 168,305
 - 31
 - 280
 - 331