ADBMS
ADBMS
ASSIGNMENT 1
COMMANDS
Create database To create a database(assig)
Use database For use the database
Create table(table name)
Insert into table values
(INNER) JOIN: Returns records that have matching values in both tables
LEFT (OUTER) JOIN: Returns all records from the left table, and the matched records from the right table
RIGHT (OUTER) JOIN: Returns all records from the right table, and the matched records from the left table
FULL (OUTER) JOIN: Returns all records when there is a match in either left or right table
INNER JOIN
LEFT JOIN
RIGHT JOIN
FULL JOIN
AND OPERATOR The AND operator displays a record if all the conditions are TRUE.
The OR operator displays a record if any of the conditions are TRUE.
OR OPERATOR The OR operator displays a record if any of the conditions are TRUE.
BETWEEN OPERATOR The BETWEEN operator selects values within a given range.
The values can be numbers, text, or dates.
UNION OPEROTER
Every SELECT statement within UNION must have the same number of columns
The columns must also have similar data types
The columns in every SELECT statement must also be in the same order
INTERSECT An INTERSECT query returns the intersection of 2 or more datasets. If a record exists in
both data sets, it will be included in the INTERSECT results.
SQL COUNT()
SQL SUM()
SQL AVG()
SQL MIN ()
SQL MAX ()
SQL Constraint