Understanding Databases, Advantages and Concepts of The Database (Primary and Foreign Keys)

Understanding Databases

A database is a collection of information that has been organised for easy access, administration, and updating. Computer databases are often used to hold aggregations of data records or files including information such as sales transactions, customer data, financials, and product information (Techtarget, 2022). Databases are used to store, manage, and retrieve any type of data. They gather data about people, locations, or objects. That data is collected in one location so that it may be examined and evaluated. Databases are essentially structured collections of information.

The databases caries a several positive towards the business of any facility where a database is needed here are some of the advantages of the DB:

·       Reduced data redundancy (Pearlson, G., 2009).

·       Reduced updating errors and increased consistency (Pearlson, G., 2009).

·       Greater data integrity and independence from applications programs (Pearlson, G., 2009).

·       Improved data access to users through use of host and query languages (Pearlson, G., 2009).

·       Improved data security (Pearlson, G., 2009).

·       Reduced data entry, storage, and retrieval costs (Pearlson, G., 2009).

To define briefly the Primary and Foreign Keys and give the difference between theme is that A primary key is used to ensure data in the specific column is unique. A foreign key is a column or group of columns in a relational database table that provides a link between data in two tables. It uniquely identifies a record in the relational database table (Microsoft, 2022).

Here is an example that illustrate all the mentioned above regarding the difference between Primary and Foreign Keys:



References:

Microsoft, 2022. Primary and Foreign Key Constraints - SQL Server. [online] Docs.microsoft.com. Available at: <https://docs.microsoft.com/en-us/sql/relational-databases/tables/primary-and-foreign-key-constraints?view=sql-server-ver16> [Accessed 12 August 2022].

Pearlson, G., 2009. Multisite collaborations and large databases in psychiatric neuroimaging: advantages, problems, and challenges. Schizophrenia bulletin, 35(1), pp.1-2.

Techtarget, 2022. What is a Database? Definition from SearchDataManagement. [online] SearchDataManagement. Available at: <https://www.techtarget.com/searchdatamanagement/definition/database> [Accessed 12 August 2022].

Comments

Popular posts from this blog

Types of E-commerce.

Advantages and disadvantages of Meta tags: including ways to overcome the disadvantages

Research about SDLC (methodology, benefits and key stages)