Skip to main content
Engineering LibreTexts

1.10: Single-User and Multi-user Database Applications

  • Page ID
    93635
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Database tables are structured to store data, but a database is not complete unless it also shows the relationships among the tables. To see why this is important, examine Figure 1-4 below (Kroenke, Auer, Vandenberg, Yoder, 2018) the database includes all of the basic data shown together with a GRADE table. Unfortunately, the relationships among the data are missing.

    In this format, the GRADE data are useless. It would be the equivalent to a sports commentator who simply announced: “Now for tonight’s baseball scores: 2–3, 7–2, 1–0, and 4–5.” The scores are useless without knowing the teams that earned them. Thus, a database contains both data and the relationships among the data.

    This demonstrates is imperative characteristic of database processing. Each row in a table is distinctively identified by a primary key, and the values of these keys are used to create the relationships between the tables. For example, in the STUDENT table StudentNumber serves as the primary key. Each value of StudentNumber is unique and identifies a particular student. Thus, StudentNumber 1 identifies Sam Cooke. For example, ClassNumber in the CLASS table identifies each class. If the numbers used in primary key columns such as StudentNumber and ClassNumber are repeatedly created and assigned in the database itself, then the key is also called a surrogate key (Kroenke, Auer, Vandenberg, Yoder, 2018).


    Showing a sample of a Microsoft Access database screen. THere are 3 columns: 1) field name; 2) data type; and 3) description. The field names and their data types are: 1) Student Number - an autonumber field; 2) first name - a text field, 3) last name - also a text field; and 4) email address - a text field.
    Figure \(\PageIndex{1}\): Sample Microsoft Access Student Record. (" Figure 1-1: Sample Microsoft Access Student Record " by Dr. Sarah NorthAffordable Learning GeorgiaKennesaw State University is licensed under CC BY 4.0)

    Figure 1-2 shows each row in a table in specifically known by a primary key, and value of those keys that are used to create a relationship between the tables, such as student IDNumber (primary key). If the numbers used StudentNumber and ClassNumber column and generate and assigned in the database, then the key is also called a surrogate key.


    Shows each row in a table in specifically known by a primary key, and value of those keys that are used to create a relationship between the tables
    Figure \(\PageIndex{2}\): The Primary Key and Surrogate Key. (" Figure 1-2: The Primary Key and Surrogate Key" by Dr. Sarah NorthAffordable Learning GeorgiaKennesaw State University is licensed under CC BY 4.0)

     In the table below shows when more than one column in a table are merged to form of the primary key, is known as a composite key. In the GRADE column, StudentNumber and ClassNumber each now serve as a foreign key. A foreign key provides a relationship or link between two tables. Figure 1-3 shows a Microsoft Access 2016 point of view of the tables and their relationships.


    shows when more than one column in a table are merged to form of the primary key, is known as a composite key
    Figure \(\PageIndex{3}\): The Grade table with foreign keys – link to Student ClassNumber Table. (" Figure 1-3: The Grade table with foreign keys – link to Student ClassNumber Table" by Dr. Sarah NorthAffordable Learning GeorgiaKennesaw State University is licensed under CC BY 4.0)

    Figure 1-4 shows the greater database application, part of a customer relationship management (CRM) system, which manages customers and their contacts, purchases, support requests, and so forth. The CRM system uses software to support a larger company, which may include anywhere from 500 rows to 10 million or more. An enterprise resources planning (ERP) system is an information system that affects every department in a company, including sales, inventory, planning purchasing and other business purposes. SAP (System, Applications & Products in Data Processing) is the vendor used with ERP applications for large companies.

    Screenshot 2023-02-03 at 2.30.05 PM.png
    Figure \(\PageIndex{4}\): A larger database application. (" Figure 1-4: A larger database application" by Dr. Sarah NorthAffordable Learning GeorgiaKennesaw State University is licensed under CC BY 4.0)

     


    1.10: Single-User and Multi-user Database Applications is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?