Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datacharmer/pivot-tables-samples
Collection of samples for the creation of pivot tables in SQL
https://github.com/datacharmer/pivot-tables-samples
Last synced: 5 days ago
JSON representation
Collection of samples for the creation of pivot tables in SQL
- Host: GitHub
- URL: https://github.com/datacharmer/pivot-tables-samples
- Owner: datacharmer
- License: apache-2.0
- Created: 2015-07-19T07:28:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-22T08:18:45.000Z (about 9 years ago)
- Last Synced: 2023-08-01T21:18:16.896Z (over 1 year ago)
- Language: Perl
- Size: 1.82 MB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# pivot-tables-samples
Collection of samples for the creation of pivot tables in SQL
These example use a Perl module names DBIx::SQLCrosstab.How to use these examples:
1. You need to install [DBIx::SQLCrosstab](http://search.cpan.org/~gmax/DBIx-SQLCrosstab-1.17/).
2. Install one of the sample databases available in the directory sample-databases
3. cd crosstab-generation
4. Change the connection parameters inside processor.pl (currentlky uses a sandbox on 127.0.0.1 with port 5624).
5. run processor.pl with one of the plugins in the same directory. For example, if you have installed crosstab-innodb.sql, you can run
processor.pl country_by_dept_and_gender.plAlternatively, you can run a big example using SQLite.
sqlite crosstab.sqlite < sample-databases/crosstab-sql92.sql
perl sqlcrosstab_example.plThis command will create several examples of crosstabs, in various formats, some of them ready to display in a browser.