I'm new to databases, and is exploring SQL vs noSQL.
What kind of data is highly relational and benefits from SQL and what kind of data does not?
Please provide some examples.
I'm new to databases, and is exploring SQL vs noSQL.
What kind of data is highly relational and benefits from SQL and what kind of data does not?
Please provide some examples.
Your question seems to be burdened with a few misconceptions. Relational as in Relational Database refers to a type of data model - the system of representation used for data. Any information that consists of facts (propositions) can be represented relationally if your DBMS supports that type of information. There is no intrinsic quality of any information that makes it more or less suitable for an RDBMS.
SQL is a (strictly non-relational) database language.
NOSQL is a loose term that can be applied to any database system that doesn't use SQL or that extends the capabilities of SQL. NOSQL and relational are not mutually exclusive concepts. NOSQL does not have to mean "non-relational", it just means "not SQL".
Relational data fits into the definition of a relation:
These conditions are prerequisites for all the Normal Forms of relations. That is, a table doesn't qualify even for First Normal Form unless it's a relation. Many operations in SQL don't work right if the table isn't relational.
To be more practical, a relational table must have the same properties on every row, by the same names, and must have a primary key defined over one or more columns so you can reference each row individually.
NoSQL is actually a marketing term used to brand and promote some data management products. It's not a computer science term.
But if you mean non-relational, then you can see that a non-relational data store is allowed to break some of the rules above:
But by breaking these rules, you lose the foundation on which relational operations work.