Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promoted SQL's set-based advantages #268

Closed

Conversation

johnthomaswright
Copy link

SQL's set-based syntax is different for those who have only been exposed to iterative programming languages, particularly those reading and writing to delimited text files. SQL creates more concise, self-describing ways to model, relate, and aggregate data.

SQL's set-based syntax is different for those who have only been exposed to iterative programming languages, particularly those reading and writing to delimited text files.  SQL creates more concise, self-describing ways to model, relate, and aggregate data.
Copy link
Contributor

@remram44 remram44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @johnthomaswright, thanks for the contribution! I'm with you, I think it makes sense to make it clear what SQL is about. However I am not sure about "set-based language".

@@ -12,6 +12,7 @@ keypoints:
- "A relational database stores information in tables, each of which has a fixed set of columns and a variable number of records."
- "A database manager is a program that manipulates information stored in a database."
- "We write queries in a specialized language called SQL to extract information from databases."
- "SQL is a set-based language, where we specify what data and format to return or save; but not how to save it or how to retrieve it (like you would specify in iterative loops in other languages.)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "query-based" language instead? "set" usually refers to unordered collections.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering that a relation is defined to be a set of tuples, "set based language" is accurate.

Queries are surely a central part of SQL, but there's also data manipulation, as well as data definition. Sets (or relations) are the the unifying theme, as all defining, manipulating and querying pertains to relations at the end of the day.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also recommend using query rather than set

@remram44 remram44 added the type:clarification Suggest change for make lesson clearer label Oct 26, 2018
@johnthomaswright
Copy link
Author

johnthomaswright commented Oct 26, 2018 via email

@henrykironde
Copy link
Contributor

How about something like
SQL is a query-based language, where we specify what data and format to return or save; and it's the work of the database manager to plan on how to save the data or how to retrieve the data.

@johnthomaswright
Copy link
Author

johnthomaswright commented Oct 26, 2018 via email

fmichonneau pushed a commit to fmichonneau/sql-novice-survey that referenced this pull request Nov 1, 2019
util.py: make functions return NotImplemented
@henrykironde henrykironde added the status:changes requested Waiting for Contributor to update PR label Dec 2, 2019
@zkamvar
Copy link
Contributor

zkamvar commented May 8, 2023

Thank you for your contribution. This lesson has migrated to use The Carpentries Workbench, but unfortunately, due to various factors, the Maintainers of this lesson were unable to address this pull request before the transition. Because of this, we had to close your pull request.

Please note that this does not mean that your contribution was not valued. There are many reasons why a pull request is not merged. It's important to remember that the Maintainers are first and foremost people---people who maintain this lesson on a voluntary basis. Sometimes pull requests become stale because other responsibilities take precedence. Thank you for taking the time to open the pull request in the first place.

If you wish to contribute again, you will need to delete and re-fork your repository.

How to contribute

If you wish to contribute, you will need to use the following steps to delete,
re-fork, and re-create your pull request (aka the burn it all down
strategy
):

📹 How to update (delete) your fork https://carpentries.github.io/workbench/faq.html#update-fork-from-styles

  1. Save your edits on locally or in a scratch space.
  2. Delete your fork
  3. Create a new fork or use the "edit" button on the page you wish to edit.
  4. Apply your changes (NOTE The Workbench uses a different syntax. Here is a Transition Guide from Styles to Workbench for your reference).

Questions

If you have any questions or would like assistance, please contact @core-team-curriculum (email: curriculum@carpentries.org) or you can respond to this message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pre-workbench status:changes requested Waiting for Contributor to update PR type:clarification Suggest change for make lesson clearer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants