Set theory provides a framework for relational databases. A relational database stores data in tables and defines relationships between tables based on set theory operations like union and intersection. The document discusses using set theory to query a marketing database, defining two sets - Set A with company names from online ads and Set B with names of online retailers purchased from. It prompts the reader to conduct a browsing trial to populate Set A and B, then answer questions about the number of elements and first/last elements of each set to test understanding of relating database tables.
1. DB 6
I need initial post and 2 responses to my classmates, see attached for my classmates’ initial
responses.Set Theory as a Framework for Relational DatabasesA set can be a collection of
any type of object, ranging from people to places to things. Basic set theory includes the
study of subsets, proper subsets, finite and infinite sets, and the logical operations on them.
Set theory plays a foundational role in mathematical processes and ideas and also has
connections to computer engineering, programming, and databases.The relational database
model, originally invented by computer scientist Edgar F. Codd in 1969, is based on ideas
from set theory. A simple database is a collection of records stored in tables. A relational
database also includes relationships stored across multiple tables. One can run queries on
the relational database to request specific information with set theory operators, such as
union and intersection.Post 1: Initial ResponseImagine you are responsible for your
organizations analytic tasks, and you are currently brainstorming how to query a relational
database of marketing information for the organization. You want to test your
understanding of how you might relate the database tables with the use of set theory, and
particularly subsets. To carry out your test, complete each of the following:To define two
sets, set A and set B, first conduct an online browsing trial, in which you spend 1020
minutes looking at different websites, such as for national news, social media, sports,
hobbies, recipes, etc. Let set A represent exactly three distinct company names from any
online advertisements you saw during your browsing trial. Let set B represent at least three
distinct company names for any online retailers you have purchased from in the past
year.To prepare to use your algorithm, answer the following questions:How many elements
are in set A? This is what you will set as m = ___.How many elements are in set B? This is
what you will set as n = ___.What are your first and last elements of A? Show these as a[1] =
____ and a[m] = ___.*What are your first and last elements of B? Show these as b[1] = ____ and
b[n] = ___.*