Skip to content

Homework#1

Open
ishrathmi wants to merge 11 commits intomainfrom
homework
Open

Homework#1
ishrathmi wants to merge 11 commits intomainfrom
homework

Conversation

@ishrathmi
Copy link
Copy Markdown
Owner

@ishrathmi ishrathmi commented Sep 16, 2024

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

navigating the basics of retrieving information and data manipulation from databases using SQL

What did you learn from the changes you have made?

how to select certain columns/rows from a table, retrieve data that satisfies certain conditions and group data by certain shared characteristics, output a query result into a new column, join two tables together given they share at least one common key

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

none

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

learning all the commands and using them was tough since it's a new language, but I used the live coding guides and a bit of googling to help me out.

How were these changes tested?

by running the commands in sql

A reference to a related issue in your repository (if applicable)

none

Checklist

  • I can confirm that my changes are working as intended

@ishrathmi
Copy link
Copy Markdown
Owner Author

ishrathmi commented Sep 16, 2024

homework 1:

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

learned how to make
learned to view data tables in sqlite and make a logical data model for two related tables

What did you learn from the changes you have made?

how to assess 1 to 1, 1 to many, and many to many relationships

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

drawing the logical model by hand, but draw.io was easier

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

figuring out relationships by looking at the data models alone is difficult - I need to look a the actual table of data to assess the relationships

How were these changes tested?

n/a

A reference to a related issue in your repository (if applicable)

n/a

Checklist

  • I can confirm that my changes are working as intended

@SidraBushra
Copy link
Copy Markdown

HW1 marked.

@SidraBushra
Copy link
Copy Markdown

HW2 marked.

@ishrathmi
Copy link
Copy Markdown
Owner Author

Homework 3:

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

creating temp tables, retrieving information that satisfies certain criteria, adding new information to a table

What did you learn from the changes you have made?

how to use an aggregate functions, join two tables, group by the values in a column, create a temp table, add new rows to a table, and manipulate dates in a table

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

none

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

manipulating dates using strftime(), a bit of googling helped

How were these changes tested?

by running the commands in sqlite

A reference to a related issue in your repository (if applicable)

n/a

Checklist

  • I can confirm that my changes are working as intended

Ishrath Irshadeen and others added 2 commits September 22, 2024 18:40
@ishrathmi
Copy link
Copy Markdown
Owner Author

Homework 6:

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

Writing a reflection into the homework 6.md file

What did you learn from the changes you have made?

how ethics, inclusion and social norms pay a huge role in how data is created and managed, and the importance of making inclusive decisions when designing databases

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

none

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

none

How were these changes tested?

n/a

A reference to a related issue in your repository (if applicable)

n/a

Checklist

  • I can confirm that my changes are working as intended

@ishrathmi
Copy link
Copy Markdown
Owner Author

Homework 4:

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

how to manipulate strings in sqlite and use windowed functions to retrieve data

What did you learn from the changes you have made?

how to use use coalesce, Row_number, count(), dense_rank, instr, substr, strftime

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

none

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

I coulnd't do the last question involving UNION

How were these changes tested?

by running the commands in sqlite

A reference to a related issue in your repository (if applicable)

n/a

Checklist

  • I can confirm that my changes are working as intended

@SidraBushra
Copy link
Copy Markdown

HW4 is incomplete, union query is missing, HW5 is missing.

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

Successfully merging this pull request may close these issues.

2 participants