SQL
SQL
o Key commands:
• Data Types:
o Examples:
2. Specifying Constraints
• Definition:
• Types:
• SELECT Statement:
o Syntax:
FROM table_name
WHERE condition;
o Example:
• Joins:
o Types:
• Subqueries:
o Example:
SELECT Name FROM Student WHERE Age = (SELECT MAX(Age) FROM Student);
• Aggregate Functions:
• INSERT:
• DELETE:
o Syntax:
• UPDATE:
o Syntax:
o UPDATE table_name
WHERE condition;
6. Views
• Definition:
• Purpose:
o Example:
• Usage: