0% found this document useful (0 votes)
9 views3 pages

Practical 4.dbms Final - 124154

Dbms

Uploaded by

Preeti Kumari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views3 pages

Practical 4.dbms Final - 124154

Dbms

Uploaded by

Preeti Kumari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

PRACTICAL 4

Write SQL queries using SQL operators

AIRTHMETIC OPERATORS
1. SQL plus (+) operator:
This operator is used to add two or more expressions or numbers.

2. SQL minus (-) operator:


This operator is used to subtract one expression or number from another
expression or number.

3 SQL multiply (*) operator:


This operator is used to multiply one or more expressions or another.

4 SQL divide (/) operator:


This operator is used to divide one expression or number by another.
5. SQL modulo (%) operator:
This operator returns the remainder (an integer) of the division.

. COMPARISON OPERATORS

1. Equality operators:
This operator is used to test equality in the query.

2. Inequality operator:
In SQL, there are two ways to test for inequality in a query. Either by
using < > or! = operator.

3. Greater than operator:


we can use the > operator in SQL to test for an expression greater than.
4. Greater than or equal operator:
In SQL, you can use the >= operator to test for an expression greater
than or equal to.

5. Less than operator:


We can use the < operator in SQL to test for an expression less than.

6. Less than or equal to:


In SQL, you can use the <= operator to test for an expression less than or
equal to.

You might also like