Database Integration
Database Integration
Database Integration
Table Creation
• A table is a collection of related data organized in rows and columns. Each table
should have a unique name and must be defined with columns that specify data
types.
The student_id in Enrollments is a foreign key referencing the primary key in the Students table.
This adds a new student to the Students table and a new course to the Courses
table.
Updating Data in a Table
• The UPDATE command is used to modify existing records in a table.
• This deletes the record where student_id equals 1 from the Students
table.
Selecting Data from a Table
• The SELECT statement is used to query data from a table.
• To remove an entire table and its data, use the DROP statement.