answersLogoWhite

0

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.

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin

Add your answer:

Earn +20 pts
Q: Difference between relation and relational schema?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Algebra

What is the Difference between relation schema and relation instance?

difference between relation sehema and relation instance in dbms


How do you convert an ER diagram into a Relational Schema?

secret...know it yourself


What is the difference between catalog schema and database in SQL Server?

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.


What is the difference between database instance and relation schema?

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.


What is the difference between data model and schema in database?

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.