430 views
0 votes
0 votes
what does this line means -  

Let r and s be two relations over the relation schemes R and S respectively and R has attribute A.

1 Answer

Best answer
2 votes
2 votes

Relation Schema means how a relation is defined. 

For example, a STUDENT schema will be something like this: $(rollno: integer, name: string, dob: date)$

or we can also remove the practicalities like the domain specification, and simply write:

$STUDENT (rollno, name, dob)$

A schema is usually denoted by uppercase letters.

A relation, on the other hand, is the actual table that we have in the database, it will have some values in it.

For example, a relation student, which can be defined using the STUDENT schema is written like, $student(STUDENT)$.

A relation is usually written in lowercase.

Sometimes, schema name is not mentioned, and is omitted. like $student (rollno, name, dob)$

In your example, the database has two relations(tables) r and s. The schema used for r is R, and for s is S. And the schema R will have an attribute A, along with other attributes. Just like $rollno$ is an attribute for schema $STUDENT$.

selected by

Related questions

4 votes
4 votes
1 answer
1
air1ankit asked Oct 22, 2017
580 views
What is difference between attributes set of cross product and attributes set of joine ???
4 votes
4 votes
4 answers
2
Tuhin Dutta asked May 27, 2019
2,446 views
In a relation, if every attribute is prime but key may not be simple then the relation is in ______.A. 1NFB. 2NFC. 3NFD. BCNF
0 votes
0 votes
1 answer
3
air1ankit asked Oct 28, 2017
351 views
Why B or B+ tree is prefer for database indexing rather than AVL tree ????
1 votes
1 votes
1 answer
4
air1ankit asked Oct 19, 2017
298 views
What is basic difference between mandatory attributes and multivalued attributes???