Top "Relational-database" questions

A relational database is a database consisting of relation variables (which are also called *relvars*, *R-tables* or just *tables*). The definition, manipulation and integrity rules of relational databases are based on relational operations equivalent to or similar to the Relational Algebra and Calculus.

How to organise a many to many relationship in MongoDB

I have two tables/collections; Users and Groups. A user can be a member of any number of groups and …

mongodb many-to-many relational-database document-database
Difference between Relational Algebra and Relational calculus

What is the exact difference between relational algebra and relational calculus. At most of the reference, it will be Relational …

relational-database rdbms relational-algebra tuple-relational-calculus domain-calculus
How do you like your primary keys?

In a fairly animated discussion in my team I was made to think what most people like as primary keys. …

algorithm database-design relational-database primary-key ddl
MySQL table with a varchar column as foreign key

I am trying to create a table with a varchar column as foreign key but MySql gives me an error …

mysql database-design foreign-keys relational-database
Are these two relations compatible for a union operation?

I'm not sure if the following two relations are compatible for a union: R: <- schema name B 1 2 2 3 3 And: …

database relational-database union relational-algebra
maximum and minimum number of tuples in natural join

I came across a question that states Consider the following relation schema pertaining to a students database: Student (rollno, name, …

sql join relational-database tuples natural-join
Relational algebra to count rows

I wasn't sure quite what to call this problem but it's not exactly counting rows. Let's say we have the …

relational-database relational-algebra
When to use a key-value data store vs. a more traditional relational DB?

When would one choose a key-value data store over a relational DB? What considerations go into deciding one or the …

database relational-database key-value
what are the advantages of defining a foreign key

What is the advantage of defining a foreign key when working with an MVC framework that handles the relation? I'm …

sql-server database-design foreign-keys relational-database