In database design a RELATION is the relationship that you build between two or more tables.
As an example lets say you have a Customer table. In this table you have lots of fields
FirstName, LastName, Address, City, State, PostalCode, StatusID; etc.......
Now StatusID is going to be a numeric value. Lets say that the value is 1
Now you will have a Status Table with multiple fields (ex)
StatusID, StatusName, Active, etc.....
Now when you display customer information you will not want to show a StatusID as nobody will know what this is. You will want to show the NAME associated with the status. To do this you will create a releationship between StatusID in the Customer table and StatusID in the Status table. In doing so you will provide for faster lookup results, a constraint that does not permit a numeric value in the StatusID field in the customer table that is NOT in the StatusID field of the Status table.
THEN... To show correct Results you would write a query something like:
SELECT FirstName, LastName, Address, City, State, PostalCode, StatusName
FROM Customers as c
JOIN Status as s on s.StatusID = c.StatusID
A relational Schema is simply a representation of your database highlighting the relationships that you have created throughout.
Chat with our AI personalities
difference between relation sehema and relation instance in dbms
secret...know it yourself
A catalog is simple a group of related schema collected together in a defined namespace. While schema is a group of one or more related object collected in a common namespace.
Database Instance The term instance is typically used to describe a complete database environment, including the RDBMS software, table structure, stored procedures and other functionality. It is most commonly used when administrators describe multiple instances of the same database.Also Known As: environment Examples: An organization with an employees database might have three different instances: production (used to contain live data), pre-production (used to test new functionality prior to release into production) and development (used by database developers to create new functionality). RELATION SCHEMA A relation schema can be thought of as the basic information describing a table or relation. This includes a set of column names, the data types associated with each column, and the name associated with the entire table. For example, a relation schema for the relation called Students could be expressed using the following representation: Students(sid: string, name: string, login: string, age: integer, gpa: real) There are five fields or columns, with names and types as shown above.
As I understand it, a database schema is a physical entity, it describes the structure of exactly how the data is stored and is itself stored by DBMS for reference. Data model, on the other hand, is an abstract representation of database.