While working in the industry I became pretty familiar with MySQL and TFS doing different jobs as a tester and a sysadmin. I had to write a lot of queries to create reports that showed computers or work items with certain attributes or deficiencies. Now I am taking a class called "The Foundations of Mathematics" and I am noticing some similarities between those experiences and this logic.
For example: A = {1,2,3,4,5}
Consider the statement: $1 \in A$
To me, this is maybe similar to writing a query on a table called A with a column called 'nums' and the records 1,2,3,4 and 5. The query would maybe say something like:
SELECT * FROM 'A' WHERE 'A.nums'=1;
Why are there so many similarities between SQL and logic? Better yet, where does the overlap stop working?
Thanks for your help! I don't want to bog myself down by getting caught up in the similarities between the two, but if they really are the same then I'd like to continue to use SQL to understand this math.
SQL in its various dialects is built to query what is knows as Relational Data Base Management Systems. The "Relational" concepts stems from Relational Algebra. As you can see, Relational Algebra is conceptually a mathematical concept, that became of interest to the computer word in the 70s. Here are some Relational Algebra - SQL implementations.
The "overlap stops working" as you put it, where the SQL dialect and the underlying database don't fully conform the relational theory. This is specialy true for the operations of Intersection and Difference.
Note: Unfortunately, Relational Algebra is not as easy to understand as SQL!