From 0bf07b3cb8818a7f5ee4b682ee47372c7238ec48 Mon Sep 17 00:00:00 2001 From: Zachary Jansma Date: Tue, 22 Oct 2019 11:37:23 -0400 Subject: [PATCH 1/3] Minor grammer fix for SQL section, added answer to redundant question under MongoDB portion --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fce5d3b..8c799c7 100644 --- a/README.md +++ b/README.md @@ -2314,6 +2314,11 @@ If you want to get "101" you should use the package "strconv" and replace
What is the difference between SQL and NoSQL?
+ +The main difference is that SQL databases are structured (data is stored in the form of +tables with rows and columns - like an excel spreadsheet table) while NoSQL is +unstructured, and the data storage can vary depending on how the NoSQL DB is set up, such +as key-value pair, document-oriented, etc.
@@ -2321,6 +2326,7 @@ If you want to get "101" you should use the package "strconv" and replace * Heterogeneous data which changes often * Data consistency and integrity is not top priority + * Best if the database needs to scale rapidly
@@ -2643,7 +2649,7 @@ Inner JOIN cat_food f
ON c.Customer_ID = f.Customer_ID
where c.Customer_ID in (Select Customer_ID from cat_food); -Although this was a simple statement, the "with" clause really shines is when +Although this was a simple statement, the "with" clause really shines when a complex query needs to be run on a table before joining to another. With statements are nice, because you create a pseudo temp when running your query, instead of creating a whole new table. From 9a4dfa1c490fe314be0a0f9ae10463bea71ba073 Mon Sep 17 00:00:00 2001 From: Soua Date: Tue, 22 Oct 2019 11:17:21 -0500 Subject: [PATCH 2/3] Answered 8th beginner python question --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 8c799c7..cbb6387 100644 --- a/README.md +++ b/README.md @@ -1852,6 +1852,20 @@ for char in 'pizza':
Write a function to return the sum of one or more numbers. The user will decide how many numbers to use.
+``` +First you ask the user for the amount of numbers that will be use. Use a while loop that runs until amount_of_numbers becomes 0 through subtracting amount_of_numbers by one each loop. In the while loop you want ask the user for a number which will be added a variable each time the loop runs. + +def returnsum(): + amount_of_numbers = int(input("How many numbers? ")) + total_sum = 0 + while amount_of_numbers != 0: + num = int(input("Input a number. ")) + total_sum += num + amount_of_numbers -= 1 + return total_sum + +``` +
From 678a6bc61ee1a94041bfabb5ee6b685fe82cbea6 Mon Sep 17 00:00:00 2001 From: Soua Date: Tue, 22 Oct 2019 16:03:46 -0500 Subject: [PATCH 3/3] For the glory of PEP 8 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cbb6387..75aa720 100644 --- a/README.md +++ b/README.md @@ -1855,7 +1855,7 @@ for char in 'pizza': ``` First you ask the user for the amount of numbers that will be use. Use a while loop that runs until amount_of_numbers becomes 0 through subtracting amount_of_numbers by one each loop. In the while loop you want ask the user for a number which will be added a variable each time the loop runs. -def returnsum(): +def return_sum(): amount_of_numbers = int(input("How many numbers? ")) total_sum = 0 while amount_of_numbers != 0: