Search results

  1. B

    Accounts Payable Database - Help needed building from new.

    I would expect the combination of the supplier's identifier and the supplier's invoice number to be the composite key used by your users to identify invoices in invoice table. It ought to have a unique index on it. Is that what you mean by "ID field entry"? I wouldn't expect it to be just one...
  2. B

    Autonumber order in existing table

    What you can do is create an empty table with the autonumber column, then insert the existing primary key column into it when you insert all the other data. I'm assuming the existing PK is a number. If it isn't then maybe you could just add a sequential number before you do the insert.
  3. B

    When is a Database Finished. Where do I stop.

    Exactly. Software should reflect changing business needs. Very often change is the only constant. Your description of the software lifecycle looks like a Waterfall methodology. Many organisations have realized that Waterfall isn't such a good fit for the modern business environment...
  4. B

    Question Database User Level Security

    Cost vs security risk is not such a big deal because commercial grade security is extremely cheap and easy to implement in most database architectures. The real dilemma here is not one of cost but of using the right technology: you can have a level of security that satisfies industry and...
  5. B

    Table Design Decision Question

    Putting the dietary requirement attribute in the guest table doesn't (as far as I can see) break normalisation rules. If guest determines dietary requirement then under any Normal Form the dietary requirement attribute belongs in the guest table.
  6. B

    Order Detail Table Primary Key

    Agreed. But your original question was why have a key for an order detail table. An order detail table should have a key for the same reason as any other table: data integrity. For sure a "random", meaningless or poorly chosen key probably won't achieve much and is probably no better than having...
  7. B

    Third party reporting tool for access

    Any of the modern reporting tools have much more sophisticated features than the report features in Access. Tableau and Qlikview are two popular options. While these can in principle work with an Access database it probably doesn't make sense to do that. To get the best support for reporting and...
  8. B

    Order Detail Table Primary Key

    Clearly it wouldn't. The substance of the detail line (meaningful attributes) ought to be the key.
  9. B

    Order Detail Table Primary Key

    That seems like a contradiction to me. Wouldn't invoice number and line item number be the primary key in that case?
  10. B

    Order Detail Table Primary Key

    The simple answer is data integrity. Let me turn the question around: Why would you want an order detail table that allows duplicate data? Duplicate data means redundancy, ambiguity and potentially incorrect results from your queries. These are some of the reasons why sensible database designs...
  11. B

    autonumber problem

    If your required recovery point is 15 minutes then use SQL Server or another DBMS with built-in, transactional backups. It's a whole lot easier than trying to achieve the same level of robustness with a Jet/ACE database.
  12. B

    Here is Database Design Question

    If State determines StateRate then you ought to have two tables instead of one. One table for the state rates; one table for the county rates. The principle that applies here is called Boyce Codd Normal Form, which requires that every determinant should be a key in a table.
  13. B

    Primary Keys

    The OP explained in his initial post that a uniqueness constraint (whether primary key or unique index) doesn't help because he wants to allow more than one parent of type "Other". That's not true. Having two (non-nullable) parent attributes is not a violation of any Normal Form. I don't think...
  14. B

    Primary Keys

    The question actually seemed pretty clear to me but I am the only person who has answered it:
  15. B

    Relational Database Usefulness

    Roystreet, Relationships in Access have nothing to do with relational databases. They are actually quite contrary to the spirit and intention of relational databases. The one truly useful feature of relationships is to enforce referential integrity constraints (AKA foreign keys). A foreign key...
  16. B

    Primary Keys

    You can enforce this kind of rule using a CHECK constraint rather than a uniqueness constraint. For example: ALTER TABLE YourTable ADD CONSTRAINT primary_secondary_parents_must_be_unique CHECK (NOT EXISTS (SELECT 1 FROM YourTable WHERE Type <> 'Other' GROUP BY ChildId, Type HAVING COUNT(*)>1))...
  17. B

    Is Microsoft Access a 'proper' database?

    I think Doc_Man and others have answered well enough for my satisfaction thank you: Access is not a database. Fortunately I do need to know what a database is in order to do my job. But as we've established before Rain, you don't speak the same language as many other people on here. I begin to...
  18. B

    How to use one table twice in another table.

    It's perfectly OK to have more than one relationship between the same pair of tables. You don't need to do anything "special" to achieve this. Here's an example of my own where the Users table is referenced twice: CREATE TABLE Marriage (Husband INTEGER NOT NULL REFERENCES Users (PersonId), Wife...
  19. B

    Payroll Strategy

    The best answer is not to do any of those things. Get yourself an off-the-shelf payroll package. Unless you are a software vendor there is almost certainly no sensible reason to write your own payroll application. If you did have a reason to do such a thing then Access would not be the platform...
  20. B

    That rare beast: the one-to-one relationship

    You have created the relationship the "wrong way round". It sounds like COSTS should have a foreign key that references ITEM. What you've actually implemented I guess must have a foreign key in ITEM that references COSTS, and that's why you have this problem. Note that what you are describing...
Back
Top Bottom