Page 1 of 1

wk3 - 10.11 .22 2nd Project in MySQL

Posted: Fri Sep 16, 2022 7:47 am
by glegrady
10.11.22 2nd Project in MySQL

The next step is to discuss 4 to 6 new MySQL queries that deliver more detailed information or are more complex in their design. Consider what we learned from the first assignment.

. Get more precise and detailed results.

. Do not limit your search to the Dewey classification as most items in the database are not Dewey, and it may be interesting to see why some are classified in Dewey and others not.

. Make sure that the results are true to your search, so that there is no ambiguous information, for instance Shaokang's "Headphones" referred to both a musical cd but also people checking out headphones in the library.

. Share the sequence of rewrites Its interesting for the class to share how you evolved your query from a less efficient to a more efficient version.

. Check the Library's online search tool to see if something you got is actually what it is: https://seattle.bibliocommons.com/v2/se ... New+Titles

. A database is an evolving thing. Our negotiations with the library resulted in getting data starting in 2006, and since then classifications, categories of things, or for instance, Itemtypes: https://www.mat.ucsb.edu/~g.legrady/aca ... mTypes.pdf have been added or been reduced. For instance, checkout of cdroms, VHS tapes, are rarely checked out today, but maybe they continue to be looked at.

Re: wk3 - 10.06 .22 MySQL queries studies

Posted: Tue Oct 11, 2022 2:07 am
by shaokang
A report focused on two topics: SPL hotspot devices and 2019 No Late Fee Policy
Thinking on adding one topic more: about the legacy items.
Here's the of the report:
(Revised as of 10.17)
Assignment 02_revised.pdf
(714.25 KiB) Downloaded 60 times
Topic 01 results:
SPL_overview.csv
(960 Bytes) Downloaded 53 times
Hotspot_devices_type.csv
(256 Bytes) Downloaded 72 times
models_over_years.csv
(450 Bytes) Downloaded 61 times
Topic 02 results:
Income_diff.csv
(38 Bytes) Downloaded 62 times
newIncome.csv
(32 Bytes) Downloaded 61 times

Re: wk3 - 10.06 .22 MySQL queries studies

Posted: Tue Oct 11, 2022 11:05 am
by briannagriffin
Here is my Week 3 Assignment write up that contains the SQL code:
Assignment Week 3.pdf
(1.94 MiB) Downloaded 90 times
Please describe in a short paragraph what your queries and results explore:
For this week’s assignment, I explored three different topics. With each, I practiced and refined my SQL skills while querying a wide array of columns from the Seattle Public Library database. I was able to get a good understanding of the different metrics inside of the database and how they are all connected to each other.
  • Topic 1: Books on War
For this topic, I explored books at the SPL that were about wars. I began by searching for books with the word “war” in their subject line. Proceeding, I grouped them by year and was able to query the most popular book checked out per year. I followed by narrowing down the data further looking at civil war books and war books dealing with the country America, each yielding a set of interesting results.
  • Topic 2: Items other than Books checkout out at the library
Next, I explored the different item types being checked out at the SPL. I am interested in who is going to the library for musical/listening purposes. In order to explore this, I began by looking at the different item types. I wrote down which were for CDs, song books and records keeping note of this for my following queries. Furthermore, I grouped each category (CDs, song books, and records) by title and grouped their number of checkouts per year in order to see which was the most popular and during which year.
  • Topic 3: Biographies on Athletes grouped by their sports
Finally, I wanted to explore autobiographies/biographies/memoirs specifically for those involved with sports. I began by querying data that had ‘biography’/’autobiography’/’memoir’ in their subject description as a starting point. Following, I pulled data about biographies on certain sports yielding the titles, item types, subjects, and bibNumbers. I wrote a query to analyze the differences in the number of biographical books between sports.


Along with the CSV output files located here:
(they are all compiled into one numbers document on my Mac, but I am unable to upload this onto this forum)
part_1_war_general.csv
(54.62 KiB) Downloaded 74 times
part_1_war_books_in2022.csv
(29.26 KiB) Downloaded 55 times
part_1_civil_war_books.csv
(2.96 MiB) Downloaded 60 times
part_1_america_war_books.csv
(1.83 MiB) Downloaded 60 times
part_1_war_most_popular.csv
(45.25 KiB) Downloaded 63 times
part_2_CD_songbooks_records_general.csv
(3.29 MiB) Downloaded 60 times
part_2_cd_most_popular_ByYear.csv
(2.2 MiB) Downloaded 58 times
part_2_CD_most_checkout.csv
(3.97 KiB) Downloaded 65 times
part_2_song_books_most_checkouts.csv
(6.2 KiB) Downloaded 54 times
part_2_records_most_checkouts.csv
(4.76 KiB) Downloaded 58 times
part_3_biography_subj_earch.csv
(20.77 KiB) Downloaded 56 times
part_3_biography_and_dewey_book.csv
(47.45 KiB) Downloaded 68 times
part_3_biography_and_itemtype.csv
(4.24 MiB) Downloaded 72 times
part_3_biography_books_tennis.csv
(18.88 KiB) Downloaded 59 times
part_3_biography_books_softball.csv
(372 Bytes) Downloaded 66 times
part_3_biography_books_per_sport.csv
(126 Bytes) Downloaded 65 times
part_3_biography_per_sport_with_titles.csv
(325.24 KiB) Downloaded 62 times
[*](updated 10/13 to include new CSV file names and descriptions of what the queries explore per email on 10/11)

Re: wk3 - 10.06 .22 MySQL queries studies

Posted: Tue Oct 11, 2022 1:58 pm
by ilianikiforov
For this assignment, I analyzed several other (disconnected) questions. Specifically: (1) the aftermath of J.K. Rowling’s Twitter scandal; (2) items that were not returned to the library and associated check-in issues; and (3) general information regarding the busiest day in the SPL to date.

Re: wk3 - 10.06 .22 MySQL queries studies

Posted: Tue Oct 11, 2022 3:17 pm
by nataliadubon
The following is a link to my document where I have all my queries and explanations:
https://docs.google.com/document/d/1CK7 ... sp=sharing

Attached are the corresponding cvs files:
*The order below follows the order in the document*