Sitemap
Ace D Baugh

Ace D Baugh

I am a Fine Art Photographer and Fine Code Programmer. I shoot Sony Raw and am a Full Stack Web Developer

What are Databases?

3 min readSep 14, 2022
Press enter or click to view image in full size
Photo by Jan Antonin Kolar on Unsplash

When you have information you wish to store on a subject or a bunch of like things, there are many good ways to keep track of the data, but no better way than a database. Spreadsheets, in their two-dimensional glory, are a type of database as they combine like items in a way that is easy to store and understand. Databases, by definition, are collections of information stored, typically, on a computer (Oracle, n.d.). Spreadsheets have a specific way of storing data in tables that have rows and columns. The preferred way to store data in these tables is each row is a specific record and columns are the types of data stored in each row. For example, if you were storing information about your customers, each row would be a different customer and each column would be a detail about that customer, like their name, address, phone number, etc. We have been using the object-oriented type of storing data in JavaScript when we create classes and objects. We have a customer class that has the types of data we want to store, and an object has the named pairs of that data. In a spreadsheet, you can connect certain fields of data with another, but this is where relational databases shine. Relational databases are robust interconnected tables. You can now store all addresses in one table and all customer names in another and you can connect the names table with the addresses table.

People use databases as a way to store all kinds of things. Sometimes it’s a way to share data easily with others, while sometimes it’s a way to protect data from being shared. The key thing is that databases make storing information easier and have the potential to keep the data organized better than a spreadsheet could do.

There are more than the two types of databases out there that help keep people and organizations organized. Cloud databases are structured on multiple computers and accessible from anywhere (Oracle, n.d.). Open-source databases allow the community to access the code and alter it to their needs (Oracle, n.d.). But the two types that need more attention are Relational (or SQL) and NoSQL databases.

Get Ace D Baugh’s stories in your inbox

Join Medium for free to get updates from this writer.

If you have a small project that isn’t going to be too big and you’re not sure what will be needed for data patterns, SQL will be your best choice as SQL databases are more flexible. If it’s a large project that will scale and has specific relationships, SQL is a great choice as it is a highly structured option. If you are looking for speed, scalability, and structure is a bit vaguer like social networks, NoSQL is the best option (Dev, 2020).

Overall, databases are a part of programming that takes time to think about and figure out which is best for you.

References

Daniel Dev. (2020). SQL vs NoSQL Explained. Retrieved September 14, 2022, from https://www.youtube.com/watch?v=ruz-vK8IesE.

What is a database? Oracle. (n.d.). Retrieved September 14, 2022, from https://www.oracle.com/database/what-is-database/

--

--

Ace D Baugh
Ace D Baugh

Written by Ace D Baugh

I am a Fine Art Photographer and Fine Code Programmer. I shoot Sony Raw and am a Full Stack Web Developer