TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

DBMS SQL Operator

DBMS SQL Operator with DBMS Overview, DBMS vs Files System, DBMS Architecture, Three schema Architecture, DBMS Language, DBMS Keys, DBMS Generalization, DBMS Specialization, Relational Model concept, SQL Introduction, Advantage of SQL, DBMS Normalization, Functional Dependency, DBMS Schedule, Concurrency Control etc.

<< Back to DBMS

SQL Operator

There are various types of SQL operator:


DBMS SQL Operator

SQL Arithmetic Operators

Let's assume 'variable a' and 'variable b'. Here, 'a' contains 20 and 'b' contains 10.

Operator Description Example
+ It adds the value of both operands. a+b will give 30
- It is used to subtract the right-hand operand from the left-hand operand. a-b will give 10
* It is used to multiply the value of both operands. a*b will give 200
/ It is used to divide the left-hand operand by the right-hand operand. a/b will give 2
% It is used to divide the left-hand operand by the right-hand operand and returns reminder. a%b will give 0

SQL Comparison Operators:

Let's assume 'variable a' and 'variable b'. Here, 'a' contains 20 and 'b' contains 10.

Operator Description Example
= It checks if two operands values are equal or not, if the values are queal then condition becomes true. (a=b) is not true
!= It checks if two operands values are equal or not, if values are not equal, then condition becomes true. (a!=b) is true
<> It checks if two operands values are equal or not, if values are not equal then condition becomes true. (a<>b) is true
> It checks if the left operand value is greater than right operand value, if yes then condition becomes true. (a>b) is not true
< It checks if the left operand value is less than right operand value, if yes then condition becomes true. (a<b) is true
>= It checks if the left operand value is greater than or equal to the right operand value, if yes then condition becomes true. (a>=b) is not true
<= It checks if the left operand value is less than or equal to the right operand value, if yes then condition becomes true. (a<=b) is true
!< It checks if the left operand value is not less than the right operand value, if yes then condition becomes true. (a!=b) is not true
!> It checks if the left operand value is not greater than the right operand value, if yes then condition becomes true. (a!>b) is true

SQL Logical Operators

There is the list of logical operator used in SQL:

Operator Description
ALL It compares a value to all values in another value set.
AND It allows the existence of multiple conditions in an SQL statement.
ANY It compares the values in the list according to the condition.
BETWEEN It is used to search for values that are within a set of values.
IN It compares a value to that specified list value.
NOT It reverses the meaning of any logical operator.
OR It combines multiple conditions in SQL statements.
EXISTS It is used to search for the presence of a row in a specified table.
LIKE It compares a value to similar values using wildcard operator.

Next TopicDBMS SQL Table




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf