Complete the code to define a relation with attributes.
CREATE TABLE Students ([1] VARCHAR(50), Age INT);
The code defines a table with an attribute called Name. Attributes are the columns in a relation.
Complete the code to insert a tuple into the relation.
INSERT INTO Students VALUES ('Alice', [1]);
The code inserts a tuple with values 'Alice' and 20 into the Students relation. Tuples are rows of data.
Fix the error in the relation definition by completing the blank.
CREATE TABLE Employees (ID INT, [1] VARCHAR(100));
The second attribute should be a valid column name like Name. 'Tuple' and 'Relation' are not valid attribute names.
Fill both blanks to create a tuple with correct attribute values.
INSERT INTO Products VALUES ([1], '[2]');
The tuple inserted has an ID of 101 and a product name 'Laptop'. These match the attributes of the Products relation.
Fill all three blanks to define a relation and insert a tuple correctly.
CREATE TABLE [1] (ID INT, [2] VARCHAR(50)); INSERT INTO [3] VALUES (1, 'John');
The relation is named Customers with attributes ID and Name. The tuple inserted belongs to the Customers table.