Skip to content
Advertisement

Tag: schema

Which is the best practice for allowing users to acces a database from database perspective? One db user vs a db user for every user [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 8 months ago. Improve this question So im planning to develop a test SaaS software for a hobby project, with an oracle xe database in the background.

Implement database schema for organizing historical stock data

I am new to MySQL, I try to use MySQL to store my stock data. I followed the answer by boe100 in reference: Database schema for organizing historical stock data I create my table as follows: mysql> describe StockDailyQuotations; Field Type Null Key Default Extra ts_code varchar(9) NO PRI NULL trade_date int(8) NO PRI NULL open decimal(6,2) NO NULL high

How to make it into BCNF

Good morning, I wonder how I can make sure this schema is in BCNF. petition(ID, title, contents, budget, organizationID, official, resultID, applicantID) applicant(ID, name) official(ID, name, department) organization(ID, name, phoneNumber) *Each petition has an official. *Each petition should have more than one organization. This is the hardest option that I cannot handle. With the same petitionID, there can be several

How to copy data from one table to another when foreign key is only defined in the destination table?

Table_A schema: Table_B schema: Column UserId is defined as Foreign Key in Table_A. I need to copy data from Table_B to Table_A and I used: But I get: The INSERT statement conflicted with the FOREIGN KEY constraint “FK_UserId” The conflict occurred in database “Table_A”, table “dbo.Users”, column ‘Id’. Table Users exists of course. FYI & BTW This situation is due

Advertisement