tuples and attributes code example
Example: define relation in database
A relation in a database means a 'TABLE'. As we all know, tables are something which is made up of rows and columns, a relation in database will also have rows and columns. Each row is called a tuple. Each column is called an attribute or field.