Sql Tutorial Class


Operators in sql server

Operators in SQL server.


How to use operators in SQL Server: Operator is very useful in SQL Server. It is used to filter records while manipulation in SQL database. The SQL operator used with SQL "Select where command". The operator helps to display records base on user need. For example, display records base on specific country.

SQL Server  Operators:

Sn.OperatorsOperator NameSyntaxExample
1.=Equal toSelect */column_name...Where column_name='value'Select * from ItemDetails Where Quantity='500'
2.>Greater thanSelect */column_name...Where column_name>'value'Select * from ItemDetails Where Quantity>'500'
3.>=Greater thanSelect */column_name...Where column_name>='value'Select * from ItemDetails Where Quantity>='500'
4.<Greater thanSelect */column_name...Where column_name<'value'Select * from ItemDetails Where Quantity<'500'
5.<=Greater thanSelect */column_name...Where column_name<='value'Select * from ItemDetails Where Quantity<='500'

No comments:

Post a Comment