0
0
DBMS Theoryknowledge~10 mins

Relations, tuples, and attributes in DBMS Theory - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define a relation with attributes.

DBMS Theory
CREATE TABLE Students ([1] VARCHAR(50), Age INT);
Drag options to blanks, or click blank then click option'
AName
BTuple
CAttribute
DRelation
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Tuple' or 'Relation' instead of an attribute name.
2fill in blank
medium

Complete the code to insert a tuple into the relation.

DBMS Theory
INSERT INTO Students VALUES ('Alice', [1]);
Drag options to blanks, or click blank then click option'
A'Student'
B20
C'Age'
DRelation
Attempts:
3 left
💡 Hint
Common Mistakes
Using attribute names or relation names instead of actual data values.
3fill in blank
hard

Fix the error in the relation definition by completing the blank.

DBMS Theory
CREATE TABLE Employees (ID INT, [1] VARCHAR(100));
Drag options to blanks, or click blank then click option'
AAttribute
BRelation
CTuple
DName
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Tuple' or 'Relation' as attribute names.
4fill in blank
hard

Fill both blanks to create a tuple with correct attribute values.

DBMS Theory
INSERT INTO Products VALUES ([1], '[2]');
Drag options to blanks, or click blank then click option'
A101
BLaptop
CProduct
DRelation
Attempts:
3 left
💡 Hint
Common Mistakes
Using attribute or relation names instead of actual data values.
5fill in blank
hard

Fill all three blanks to define a relation and insert a tuple correctly.

DBMS Theory
CREATE TABLE [1] (ID INT, [2] VARCHAR(50));
INSERT INTO [3] VALUES (1, 'John');
Drag options to blanks, or click blank then click option'
ACustomers
BName
DRelation
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Relation' as a table or attribute name.