Sunteți pe pagina 1din 2

c 

 

 
         

 A relation is consisting of set of tuples and attributes, where tuples are also known as
Rows and attributes are also defined by columns. In relations consisting of Tuples and
attributes are used for storing values or they hold some values. A relation can hold zero tuple
or more than one tuple and values from relation can be accessible by user.

 
 




r    


^ ^   

^
   

^     

Now in above relation we have tuples and attributes holding some data values that define
relations.

Relations can be used to join with some other relation with some common tuples and their
type that we can say relationships, relations are mostly referred by tables but relations are
little different from table and files the difference between relations and ordinary table and files
are as follows:

Ordinary tables and files are static while a relational database has data that is dependent on the data that is
entered in tuples that are related to that attributes. In the ordinary tables and files, there are no constraints
related to the related data and a user could input whatever they wanted.

1)A relation is a set of tuples without duplicates value or any concept of ordering. A table is
a set of rows that may have duplicates and does have a concept of ordering. A file holding
value can also have duplicate values.
[)Ordinary database and files are static while a relational database that is dependent on the
data that is entered in tuples are related to that attributes..

3)In relation various constraints can be applied such that user can never input wrong values
into it but in ordinary tables and files there would be no constraints and user can input
whatever they want,

4) A relation define tables and files but tables and files never define relations

S-ar putea să vă placă și