0% found this document useful (0 votes)
31 views

Lab 2 DBMS

The document discusses various SQL operators and statements. It covers the AND, OR, and NOT operators which are used to filter records based on multiple conditions. It also briefly mentions SQL statements like ORDER BY, INSERT INTO, UPDATE, DELETE, functions like MIN() and MAX(), and clauses like TOP, LIMIT, and BETWEEN that can be used to select, modify and organize data in a database.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Lab 2 DBMS

The document discusses various SQL operators and statements. It covers the AND, OR, and NOT operators which are used to filter records based on multiple conditions. It also briefly mentions SQL statements like ORDER BY, INSERT INTO, UPDATE, DELETE, functions like MIN() and MAX(), and clauses like TOP, LIMIT, and BETWEEN that can be used to select, modify and organize data in a database.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 75

Lab 2

Database Management System


SQL AND, OR and NOT Operators

The SQL AND, OR and NOT Operators


The WHERE clause can be combined with AND, OR, and NOT operators.
The AND and OR operators are used to filter records based on more
than one condition:

• The AND operator displays a record if all the conditions separated by AND
are TRUE.
• The OR operator displays a record if any of the conditions separated by OR
is TRUE.
The NOT operator displays a record if the condition(s) is NOT TRUE.
SQL ORDER BY Keyword
SQL INSERT INTO Statement
SQL NULL Values
SQL UPDATE Statement
SQL DELETE Statement
SQL TOP, LIMIT or ROWNUM Clause
SQL MIN() and MAX() Functions
SQL IN Operator
SQL BETWEEN Operator
SQL Aliases
SQL FOREIGN KEY Constraint
SQL Joins
SQL GROUP BY Statement
SQL INSERT INTO SELECT Statement

You might also like