Questions tagged [rdbms]
Relational Database Management System, a widely used type of database management system characterised by its extensive use of joining as a core operational principle.
225 questions
0 votes
0 answers
6 views
How to model a dynamic relationship in Hibernate where one field can reference multiple entity tables?
I’m designing an application using Hibernate (JPA) and I’m facing a modeling challenge related to dynamic relationships between entities. Here’s the scenario: I have a Comment entity that can be ...
4 votes
0 answers
134 views
what is the cost calculation formula for index scan and bitmap index scan in postgres?
I am trying to figure out how postgres calculates cost for a simple select query with a single where clause. afaik the strategy postgres will use to select depends on the selectivity of the query and ...
0 votes
0 answers
46 views
Supplier's Products and Internal Products - Separate Product Tables?
I'm building an ERP system where we can import our suppliers' product data before purchasing their products. Under the current design, supplier products are stored in a separate table and when we ...
0 votes
1 answer
74 views
Difference between Authentication, session, outer and current user in postgres
I know about the users in postgres but don't have correct idea about them. The difference I know is Authenticated user - The user who enters his credentials to login into postgres database. Session ...
0 votes
1 answer
244 views
What is the performance implication of composite index column ordering on inserts?
I have a table with 4 columns, in which one of them is primary key, one is time_created, ID of the upstream service (say ID) and the type of upstream service (say service_name). This table is append ...
-3 votes
1 answer
425 views
Getting in this error what i have to change Column check constraint 'machine_chk_2' references other [closed]
CREATE TABLE machine.machine ( m_id INT PRIMARY KEY, mname VARCHAR(20) NOT NULL, mprice FLOAT CHECK (mprice > 0), mcost FLOAT CHECK (mcost < mprice) );
1 vote
1 answer
81 views
Why is the following decomposition into 2NF wrong?
Consider the relation R(A, B, C, D, E), with the functional dependencies being {BE->A, D->E}. What is R's decomposition in 2NF? The answer is R1(D, E); R2(B, E, A); R3(B, C, D) I've derived that ...
1 vote
1 answer
615 views
What makes many NoSQL databases non-ACID compliant when both SQL and NoSQL can scale horizontally
A lot of the difference between SQL and NoSQL that is talked about focuses on the fact that SQL support ACID properties while in many NoSQL dbs ACID is compromised. I'm unsure of the reason but ...