49
Michelângelo Mazzardo Marques Viana Pontifical Catholic University of Rio Grande do Sul Porto Alegre - Rio Grande do Sul - Brazil Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20) 1

Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

Embed Size (px)

DESCRIPTION

Presentation made in Sept. 2012 at the IGeLU Conference in Zurich, Switzerland. Before the 2000's, PUCRS libraries generated different statistical on-demand reports by running several separate queries which consumed much time to be composed and executed, one at a time, through SQL clients. To optimize this work, the library developed a method to run a batch of SQL queries during the night (simply using Linux shell scripts and native sqlplus) that feeds a large array of results in a MS-Excel file which contains different spreadsheets. Each spreadsheet sums and gathers statistical data according to the information needs of University academic departments and government agencies. Thus, two statistical reports are monthly generated based on the information recorded in the Aleph database: (1) General Collection Data (687 SQL queries) and (2) General Circulation Data (106 SQL queries). Both reports can generate: (a) numerical tables and also (b) charts (pie, line...). It is an economical and optimized solution which uses only Linux shell scripts, sqlplus and MS-Office Excel.

Citation preview

Page 1: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

1

Michelângelo Mazzardo Marques VianaPontifical Catholic University of Rio Grande do Sul

Porto Alegre - Rio Grande do Sul - Brazil

Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

Page 2: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

2

Roberto Bertolo Moura Senior System Librarian at PUCRS

Main author of this development

Page 3: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

3Source: Google Maps

Page 4: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

4Source: Google Maps

Page 5: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

5Source: Google Maps

Page 6: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

6Source: Google Maps

Page 7: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

7Source: Google Maps

Page 8: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

8PUCRS Main Campus is located in the capital city of Porto Alegre, Brazil. Source: Google Maps

The Pontifical Catholic University of Rio Grande do Sul (1948)

Page 9: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

9

Research areas

Accounting Aeronautical Sciences Applied Social Sciences Architecture and Urbanism Bioethics Biomedical Research Biosciences Brain Studies Chemistry Computer Science Dentistry Earth Sciences Economics

Education Energy Engineering Environment Geriatrics and Gerontology Human Sciences Law Letters Management Mathematics Medicine Natural Sciences Nursing

Nutrition Pharmacy Philosophy Physical Education and

Sports Science Physics Physioterapy Psychology Social Communication Social Services Theology Toxicology

Page 10: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

10

Information needs

Brazil’s Ministry of Education

Library Administration

University’s Higher

Administration

Collection Data

Circulation Data

Accesses Data

Analytical Data

Page 11: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

11

Information need #1 Parameters SQL

queries Output Format Deliver

Before: different flows

Information need #2 Parameters SQL

queries Output Format Deliver

Information need #3 Parameters SQL

queries Output Format Deliver

Information need #n Parameters SQL

queries Output Format Deliver

Page 12: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

Initial and permanent settings.Modified only when there are changes.

On a desired frequency.

Today: integrated flow for all reports

Specify all information

needsDefine global

parametersDefine which primary data

to collect

Group, Link and

Combine primary

dataDefine SQL statements

Schedule SQL

automatic execution Get collect

data and paste them

into the Spreadsheets

Design the Excel

Spreadsheets

12

Page 13: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

13

Specify all information

needs

Define global parameters

Define which primary data to

collect

Group, Link and Combine primary data

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Design the Excel

Spreadsheets

Step by step execution…

Page 14: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

14

Specify all information

needs

Define global parameters

Define which primary data to

collect

Group, Link and Combine primary data

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Design the Excel

Spreadsheets

Specify all information needs

Collection Circulation Accesses Simultaneous access and so on

Page 15: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

15

Specify all information

needs

Define which primary data to

collect

Group, Link and Combine primary data

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Design the Excel

Spreadsheets

Define global parameters

Item status codes Collections codes User status codes MARC contents for filter Item material codes What data must be grouped

Define global parameters

Page 16: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

16

Specify all information

needs

Group, Link and Combine primary data

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Design the Excel

Spreadsheets

Define which primary data to collect

About collection: Number of current foreign printed periodicals Number of licensed e-books of Human Sciences Number of audiovisual documents added into the

collection in the last month Number of books acquired by purchase for

Biological Sciences

Define global parameters

Define which primary data to

collect

Page 17: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

17

Specify all information

needs

Group, Link and Combine primary data

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Design the Excel

Spreadsheets

Define which primary data to collect

About circulation: Number of book loans made by each selfcheck-out

machine Number of book returns made by each selfcheck-in

machine Number of notebook loans by floor Simultaneous use of notebook on each floor Simultaneous use of study rooms on each floor

Define global parameters

Define which primary data to

collect

Page 18: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

18

Specify all information

needs

Group, Link and Combine primary data

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Design the Excel

Spreadsheets

Define which primary data to collect

About accesses: Access made by visitors Access made by PUCRS users on study floor Median of Number of daily accesses to the Library Median of simultaneous users inside the Library at

same time by time range Average number of hours that user stays in the

Library

Define global parameters

Define which primary data to

collect

Page 19: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

19

Specify all information

needs

Group, Link and Combine primary data

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Design the Excel Spreadsheets

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Page 20: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

20

Specify all information

needs

Group, Link and Combine primary data

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Design the Excel Spreadsheets

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Page 21: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

21

Specify all information

needs

Group, Link and Combine primary data

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Design the Excel Spreadsheets

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Page 22: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

22

Specify all information

needs

Group, Link and Combine primary data

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Design the Excel Spreadsheets

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Page 23: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

23

Specify all information

needs

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Group, Link and Combine primary data

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Group: Join similar data in different TABs:

Page 24: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

24

Specify all information

needs

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Group, Link and Combine primary data

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Link: Associate each cells with its

respective cell of the MATRIX tab:

Page 25: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

25

Specify all information

needs

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Group, Link and Combine primary data

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Link: Associate each cells with its

respective cell of the MATRIX tab:

Page 26: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

26

Specify all information

needs

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Group, Link and Combine primary data

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Page 27: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

27

Specify all information

needs

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Group, Link and Combine primary data

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Page 28: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

28

Specify all information

needs

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Group, Link and Combine primary data

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Page 29: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

Specify all information

needs

Define SQL statements

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Group, Link and Combine primary data

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Combine: Use SUM functions to calculate the totals:

29

Page 30: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

30

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Define SQL statements

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

SQL statements for collection: 687 queries

SQL statements for circulation and accesses: 105 queries

Define SQL statements

Page 31: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

31

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Define SQL statements

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

Page 32: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

32

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Define SQL statements

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

Page 33: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

33

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Define SQL statements

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

Page 34: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

34

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Define SQL statements

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

Page 35: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

35

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Define the schedule in JOB DAEMON

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

Page 36: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Create a SHELL SCRIPT to execute the SQL

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

.SQL file location36

Page 37: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

37

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them

into the Spreadsheets

Store all queries inside a .SQL file

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

Page 38: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

38

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them into the Spreadsheets

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

Get collect data and paste them

into the Spreadsheets

Select * fromPUCRS.RESULTS

order byDADO1, DADO2, DADO3

Page 39: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

39

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them into the Spreadsheets

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

Get collect data and paste them

into the Spreadsheets

Page 40: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

40

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them into the Spreadsheets

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

Get collect data and paste them

into the Spreadsheets

Page 41: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

41

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them into the Spreadsheets

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

Get collect data and paste them

into the Spreadsheets

Page 42: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

42

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them into the Spreadsheets

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

Get collect data and paste them

into the Spreadsheets

Page 43: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

43

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them into the Spreadsheets

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

Get collect data and paste them

into the Spreadsheets

Page 44: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

44

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them into the Spreadsheets

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

Get collect data and paste them

into the Spreadsheets

Page 45: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

45

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them into the Spreadsheets

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

Get collect data and paste them

into the Spreadsheets

Page 46: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

46

Specify all information

needs

Schedule SQL automatic execution

Get collect data and paste them into the Spreadsheets

Define global parameters

Define which primary data to

collect

Design the Excel

Spreadsheets

Group, Link and Combine primary data

Define SQL statements

Get collect data and paste them

into the Spreadsheets

when the data is collected and organized in the spreadsheet, you can create all graphics

needed.

Page 47: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

47

Before Different reports = different SQL queries Too much work and too much time Manual work

Today Only one step to collect all data Only one step to create all reports Automated and fast work

Before and Today

Page 48: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

Initial and permanent settings.Modified only when there are changes.

On a desired frequency.

Today: integrated flow for all reports

Specify all information

needsDefine global

parametersDefine which primary data

to collect

Group, Link and

Combine primary

dataDefine SQL statements

Schedule SQL

automatic execution Get collect

data and paste them

into the Spreadsheets

Design the Excel

Spreadsheets

48

Page 49: Optimized creation of statistical reports for items and circulation transactions in Aleph500 (version 20)

Michelângelo Mazzardo Marques [email protected]

Thank you!