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

Lesson Contribution - datatypes INTEGER and SMALLINT #318

Open
Talishask opened this issue Feb 9, 2021 · 1 comment
Open

Lesson Contribution - datatypes INTEGER and SMALLINT #318

Talishask opened this issue Feb 9, 2021 · 1 comment

Comments

@Talishask
Copy link

I'm a member of The Carpentries staff and I'm submitting this issue on behalf of another member of the community. In most cases, I won't be able to follow up or provide more details other than what I'm providing below.


In the Introduction to Database and SQL lesson(https://datacarpentry.org/sql-ecology-lesson/00-sql-introduction/index.html), I am recommending an addition(s). In the datatype section, two datatypes INTEGER and SMALLINT, were mentioned. However, their description is exactly the same and can create confusion. Hence, I propose adding an explanation such as INTEGER data type has 32 bits and can represent whole numbers from [(-2 power 31)-1] through [(2 power 31)-1]. In contrast, the SMALLINT data type has only 16 bits.

Similarly, two datatypes, CHAR and VARCHAR, were mentioned. However, it has not been explained when to use which one. Such as:

    1. Char when the sizes of the column data entries are consistent.
    1. Varchar when the sizes of the column data entries vary considerably.

I think these two additions will be helpful for the learners.

@ChristinaLK
Copy link
Contributor

Thanks Talisha. :)

We've had other issues opened about the data types, so will include this feedback if/when that section is revised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants