SlideShare une entreprise Scribd logo
1  sur  27
CPSLD + SQL
=
Positive fun
or
…my own private hell
CPSLD + SQL = Positive Fun
• The scenario
• The problem
• The idea
• The solution
• The next step
The Scenario
The Scenario
• Post-secondary instiutions in BC submit yearly stats on the
collection, ref desk transactions, employees, budgets, etc
• CPSLD
• Good snapshot about your library
• Good comparison tool to others
• As TS librarian, I handled the collection
The Problem
The Problem
• Only do the stats once a year
• Did we do them the same as last year?
• CPSLD stats are text descriptions
• How do you translate them through your ILS?
The Problem
• Volumes: items that are barcoded separately or intended to be circulated as one unit, (e.g.
a 20-volume set of encyclopedias = 20 units, 2 CDs plus booklet in one package = 1 unit,
book + CD = 1 unit, set of slides in abinder or folio = 1 unit).
• a. Monographs:
• a volume is a physical unit of any printed or processed work contained in one binding, encasement or
other clear distinction, which has been catalogued as part of the collection and given an individual
barcode;
• include titles in microform or CD (not individual cards of fiche except when 1 card = 1 title);
• include annuals;
• excluded periodicals;
• use explanatory notes for any unusual inclusions (e.g. documents, technical reports, individually
catalogued maps).
• b. Videos & Films:
• count all video & film formats
• count physical items (e.g. 2 film reels = 2 unites, series of 24 videos = 24 units);
• c. Other Audio formats:
• count all sound recordings (e.g. LP records, cassette tapes, compact discs);
• count items intended to be used together as one unit (e.g. opera on 2 CDs = 1 unit);
• if two or more media are included (e.g. print and cassette tape), count as a single unit all items meant
to be used in conjunction with each other.
The Problem
• This is how it was done
The Problem
• We had instructions ….
• c. Other Audio Formats. Count the number of items with
location codes lmavc OR lmava OR lmavr OR lmavo. Search
within this result for items with status = f OR w. Subtract to find
the total active other audio items.
• Report the total for category 5.1.c. Also use this number in the
calculation of 5.1.a. monographs.
The Problem
• Instructions were hard to follow and we mixed counting bibs
and items at different times
• Each step required:
• A “list” query
• Export to excel
• Parse the data
• Manipulate it then count it all
• Transfer results to worksheet
• Took me about 3 days to work through it
The Problem
http://i0.kym-cdn.com/entries/icons/original/000/012/073/7686178464_fdc8ea66c7.jpg
The Idea
The idea
• Innovative Interfaces (iii) finally opened up SQL access with
latest ILS, Sierra
• Took the training
• No idea what to do with it
• No more “lists” – Time for direct queries!
The Solution
The Solution
• iii “lists” are just queries in a GUI
• Why not take the steps and translate them into SQL
The Solution
The Solution
• Shared this at the WIUG
• Anything you think of …..
Brent Searle at Langara has already done it
• Langara has already been doing this … for a few years
• Brent offered to share his code with me
The Solution
The Solution
What you
know
What
you’ve
been given
WTF do I
start???
The Solution
• Review other commands in SQL
• Case
• Cast
• Renaming tables
• Joins galore
The Solution
• Where to begin???
The Solution
• I wanted to get Capilano using the same code
• Thankfully similar location code taxonomy
• Moved to Douglas College
• Totally different location taxonomy
The Solution
The Solution
• a. Monographs 157,580
• b. Videos & Films 12,746
• c. Other Audio Formats 5,592
• d. Other Visual Formats 1,332
• z. Other 14,056
The Next Steps
The Next Steps
• Share with the CPSLD community
• Document the file so anyone with SQL training knows how to
adapt it to their system
• Share on github/bitbucket
The Next Steps
• @trevordsmith100
• smitht7@douglascollege.ca
• Github/Bitbucket: tdsmithCapU
• Again my profound thanks to everyone
who helped me get this far.
• Thank you, George, Glen, and Brent

Contenu connexe

Similaire à 2015 11 26 cpsld sql

Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented ProgrammingBryan Duggan
 
Archives, data structures and visualization.pdf
Archives, data structures and visualization.pdfArchives, data structures and visualization.pdf
Archives, data structures and visualization.pdfFrancisco Restivo
 
Pitfalls of Object Oriented Programming by SONY
Pitfalls of Object Oriented Programming by SONYPitfalls of Object Oriented Programming by SONY
Pitfalls of Object Oriented Programming by SONYAnaya Medias Swiss
 
Visualising and analysing networks
Visualising and analysing networksVisualising and analysing networks
Visualising and analysing networksFrancisco Restivo
 
Shaky Stacks: New Modes of Collection Development
Shaky Stacks: New Modes of Collection DevelopmentShaky Stacks: New Modes of Collection Development
Shaky Stacks: New Modes of Collection Developmentdwestbrook
 
UBC: Collections Management & Planning Forum (Dec. 2011)
UBC: Collections Management & Planning Forum (Dec. 2011)UBC: Collections Management & Planning Forum (Dec. 2011)
UBC: Collections Management & Planning Forum (Dec. 2011)dwestbrook
 
Pitfalls of Object Oriented Programming
Pitfalls of Object Oriented ProgrammingPitfalls of Object Oriented Programming
Pitfalls of Object Oriented ProgrammingSlide_N
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingHüseyin Ergin
 
Personal digitisation plan
Personal digitisation planPersonal digitisation plan
Personal digitisation planSusan Bentley
 
How2research
How2researchHow2research
How2researchkewuc
 
SoundSoftware.ac.uk: Sustainable software for audio and music research (DMRN 5+)
SoundSoftware.ac.uk: Sustainable software for audio and music research (DMRN 5+)SoundSoftware.ac.uk: Sustainable software for audio and music research (DMRN 5+)
SoundSoftware.ac.uk: Sustainable software for audio and music research (DMRN 5+)SoundSoftware ac.uk
 
Practical engineering
Practical engineeringPractical engineering
Practical engineeringAshwith Rego
 
Overview 20150908
Overview 20150908Overview 20150908
Overview 20150908AJ Tivol
 
Class One: The Computer
Class One: The ComputerClass One: The Computer
Class One: The ComputerIan Kane
 

Similaire à 2015 11 26 cpsld sql (20)

Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented Programming
 
EURO Conference 2015 - Automated Timetabling
EURO Conference 2015 - Automated TimetablingEURO Conference 2015 - Automated Timetabling
EURO Conference 2015 - Automated Timetabling
 
Dmk audioviz
Dmk audiovizDmk audioviz
Dmk audioviz
 
Archives, data structures and visualization.pdf
Archives, data structures and visualization.pdfArchives, data structures and visualization.pdf
Archives, data structures and visualization.pdf
 
Pitfalls of Object Oriented Programming by SONY
Pitfalls of Object Oriented Programming by SONYPitfalls of Object Oriented Programming by SONY
Pitfalls of Object Oriented Programming by SONY
 
Problem solving
Problem solvingProblem solving
Problem solving
 
Visualising and analysing networks
Visualising and analysing networksVisualising and analysing networks
Visualising and analysing networks
 
Shaky Stacks: New Modes of Collection Development
Shaky Stacks: New Modes of Collection DevelopmentShaky Stacks: New Modes of Collection Development
Shaky Stacks: New Modes of Collection Development
 
DATA STRUCTURE
DATA STRUCTUREDATA STRUCTURE
DATA STRUCTURE
 
UBC: Collections Management & Planning Forum (Dec. 2011)
UBC: Collections Management & Planning Forum (Dec. 2011)UBC: Collections Management & Planning Forum (Dec. 2011)
UBC: Collections Management & Planning Forum (Dec. 2011)
 
Pitfalls of Object Oriented Programming
Pitfalls of Object Oriented ProgrammingPitfalls of Object Oriented Programming
Pitfalls of Object Oriented Programming
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Personal digitisation plan
Personal digitisation planPersonal digitisation plan
Personal digitisation plan
 
Lecture2-DT.pptx
Lecture2-DT.pptxLecture2-DT.pptx
Lecture2-DT.pptx
 
How2research
How2researchHow2research
How2research
 
SoundSoftware.ac.uk: Sustainable software for audio and music research (DMRN 5+)
SoundSoftware.ac.uk: Sustainable software for audio and music research (DMRN 5+)SoundSoftware.ac.uk: Sustainable software for audio and music research (DMRN 5+)
SoundSoftware.ac.uk: Sustainable software for audio and music research (DMRN 5+)
 
Practical engineering
Practical engineeringPractical engineering
Practical engineering
 
Overview 20150908
Overview 20150908Overview 20150908
Overview 20150908
 
Problem solving
Problem solvingProblem solving
Problem solving
 
Class One: The Computer
Class One: The ComputerClass One: The Computer
Class One: The Computer
 

Dernier

Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 

Dernier (20)

Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 

2015 11 26 cpsld sql

  • 1. CPSLD + SQL = Positive fun or …my own private hell
  • 2. CPSLD + SQL = Positive Fun • The scenario • The problem • The idea • The solution • The next step
  • 4. The Scenario • Post-secondary instiutions in BC submit yearly stats on the collection, ref desk transactions, employees, budgets, etc • CPSLD • Good snapshot about your library • Good comparison tool to others • As TS librarian, I handled the collection
  • 6. The Problem • Only do the stats once a year • Did we do them the same as last year? • CPSLD stats are text descriptions • How do you translate them through your ILS?
  • 7. The Problem • Volumes: items that are barcoded separately or intended to be circulated as one unit, (e.g. a 20-volume set of encyclopedias = 20 units, 2 CDs plus booklet in one package = 1 unit, book + CD = 1 unit, set of slides in abinder or folio = 1 unit). • a. Monographs: • a volume is a physical unit of any printed or processed work contained in one binding, encasement or other clear distinction, which has been catalogued as part of the collection and given an individual barcode; • include titles in microform or CD (not individual cards of fiche except when 1 card = 1 title); • include annuals; • excluded periodicals; • use explanatory notes for any unusual inclusions (e.g. documents, technical reports, individually catalogued maps). • b. Videos & Films: • count all video & film formats • count physical items (e.g. 2 film reels = 2 unites, series of 24 videos = 24 units); • c. Other Audio formats: • count all sound recordings (e.g. LP records, cassette tapes, compact discs); • count items intended to be used together as one unit (e.g. opera on 2 CDs = 1 unit); • if two or more media are included (e.g. print and cassette tape), count as a single unit all items meant to be used in conjunction with each other.
  • 8. The Problem • This is how it was done
  • 9. The Problem • We had instructions …. • c. Other Audio Formats. Count the number of items with location codes lmavc OR lmava OR lmavr OR lmavo. Search within this result for items with status = f OR w. Subtract to find the total active other audio items. • Report the total for category 5.1.c. Also use this number in the calculation of 5.1.a. monographs.
  • 10. The Problem • Instructions were hard to follow and we mixed counting bibs and items at different times • Each step required: • A “list” query • Export to excel • Parse the data • Manipulate it then count it all • Transfer results to worksheet • Took me about 3 days to work through it
  • 13. The idea • Innovative Interfaces (iii) finally opened up SQL access with latest ILS, Sierra • Took the training • No idea what to do with it • No more “lists” – Time for direct queries!
  • 15. The Solution • iii “lists” are just queries in a GUI • Why not take the steps and translate them into SQL
  • 17. The Solution • Shared this at the WIUG • Anything you think of ….. Brent Searle at Langara has already done it • Langara has already been doing this … for a few years • Brent offered to share his code with me
  • 20. The Solution • Review other commands in SQL • Case • Cast • Renaming tables • Joins galore
  • 21. The Solution • Where to begin???
  • 22. The Solution • I wanted to get Capilano using the same code • Thankfully similar location code taxonomy • Moved to Douglas College • Totally different location taxonomy
  • 24. The Solution • a. Monographs 157,580 • b. Videos & Films 12,746 • c. Other Audio Formats 5,592 • d. Other Visual Formats 1,332 • z. Other 14,056
  • 26. The Next Steps • Share with the CPSLD community • Document the file so anyone with SQL training knows how to adapt it to their system • Share on github/bitbucket
  • 27. The Next Steps • @trevordsmith100 • smitht7@douglascollege.ca • Github/Bitbucket: tdsmithCapU • Again my profound thanks to everyone who helped me get this far. • Thank you, George, Glen, and Brent