Querying CSV Files with SQL using ‘q’ Presented by Simon Frank.

Slides:



Advertisements
Similar presentations
CC SQL Utilities.
Advertisements

Layout Library Story line Preview screen Tool selection menu.
Query Methods (SQL). What is SQL A programming language for databases. SQL (structured Query Language) It allows you add, edit, delete and run queries.
Importing Test Scores (including the use of Excel’s VLOOKUP function) Chris A. McManigal Camden County Schools Kingsland, GA.
Module 8 Importing and Exporting Data. Module Overview Transferring Data To/From SQL Server Importing & Exporting Table Data Inserting Data in Bulk.
Creating a County ArcMap with Fiscal Year Conservation Practice Locations David Hoover ASTC, Idaho 2007 DC Meeting.
1Key – Report Creation with DB2. DB2 Databases Create Domain for DB2 Test Demo.
Lecture 7 Debugging Code & Data Import/Export © 2007 Daniel Valentine. All rights reserved. Published by Elsevier.
A Guide to MySQL 3. 2 Objectives Start MySQL and learn how to use the MySQL Reference Manual Create a database Change (activate) a database Create tables.
Tutorial 11: Connecting to External Data
Week 5 – Chap. 5 Data Transfer DBAs often must transfer data to and from text files, Excel spreadsheets, Access, Oracle or other SQL Server databases This.
1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall Nirav Merchant Bio Computing & iPlant Collaborative Eric Lyons.
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Tutorial SQL Server and Matlab CIS 526. Build a New Database in SQL server.
Advanced File Processing
A Guide to SQL, Eighth Edition Chapter Three Creating Tables.
BCP - bulk copy program for Microsoft SQL Server 1 BCP - Bulk Copy Program Bulk copying to and from Microsoft SQL Server.
Working With Large Datasets in Corporate Settings Ed Bassin
DHL EasyShip to WorldShip Commodity Transfer
Web Application Development. Define ER model in QSEE Generate SQL Create Database mySQL Write Script to use TableEditor class Process to create A simple.
SqlReports Dean Dahlvang PSUG-MO March About Dean Dean Dahlvang Director of Administrative Technology for the Proctor.
Web Application Development. Tools to create a simple web- editable database QSEE MySQL (or PHPMyAdmin) PHP TableEditor.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Import Data From Text Files and Other Sources Importing is the process of inserting data.
D.I.R.T. Training, Module 2 Universal Front-End Loader (UFEL) Houston, TX, 3/31-4/1/05 DIRT Development Team.
Chapter 2: SQL – The Basics Objectives: 1.The SQL execution environment 2.SELECT statement 3.SQL Developer & SQL*Plus.
Chapter Five Advanced File Processing. 2 Objectives Use the pipe operator to redirect the output of one command to another command Use the grep command.
Database control Introduction. The Database control is a tool that used by the database administrator to control the database. To enter to Database control.
DataMAPPER - Applied Database Tech. 이화여대 과학기술대학원 석사 3 학기 992COG08 김지혜.
Federated Database Set Up Greg Magsamen ITK478 SIA.
Today’s Agenda Chapter 7 Review for Midterm. Data Transfer Tools DTS (Data Transformation Services) BCP (Bulk Copy Program) BULK INSERT command Other.
A Guide to MySQL 3. 2 Introduction  Structured Query Language (SQL): Popular and widely used language for retrieving and manipulating database data Developed.
MySQL Quick Guide. Start and End MySQL MySQL is installed as a service. To start MySQL: –Control Panel/Administrative Tools/Services/MySQL/ start MySQL.
Case study : creating a usable MARC file from a spreadsheet Thomas Meehan Head of Current Cataloguing UCL Library Services CILIP CIG Metadata.
Eurostat November 2015 Eurostat Unit B3 – IT and standards for data and metadata exchange SDMX IT Tools Test Client Jean-Francois LEBLANC Christian SEBASTIAN.
# 1# 1 Moving SQL Data Across Applications How do you export and import data into or out of a database? What do we mean by.csv? CS 105 Spring 2010.
More Oracle SQL Scripts. Highlight (but don’t open) authors table, got o External data Excel, and make an external spreadsheet with the data.
© 2009 Wipro Ltd - Confidential ETL TESTING Handling Heterogeneous Data Formats Rajasimman Selvaraj Simanchal Sahu Tithi Mukherjee.
© 2008 Wipro Ltd - Confidential Informatica & ETL Testing Rahul Parashar.
Transportation Agenda 229. Transportation About SharePoint and Office SharePoint and Office are tightly integrated You can create SharePoint lists from.
1 Introduction to SQL *Plus Oracle SQL Interface MIS309 Database Systems.
Oracle and Object-Oriented SQL Oracle specific SQL commands.
Databases Computer Technology. First Record Last Record New Record Previous Record Current Record Next Record Working with Microsoft Access (Database)
SSMS SQL Server Management System. SQL Server Microsoft SQL Server is a Relational Database Management System (RDBMS) Relational Database Management System.
Backup Tables in SQL Server. Backup table method Cape_Codd database is used in this example 1.Righ click the database that contains the table you want.
Groups of cells labeled with letters that go up and down (vertical)
Introduction to MySQL  Working with MySQL and MySQL Workbench.
Building Your ETL Framework with Biml Meagan Longoria March 19, 2016.
©NIIT BCP and DTS Implementing Stored Procedures Lesson 2A / Slide 1 of 23 Objectives In this lesson, you will learn to: Perform bulk copy using the BCP.
Software Development Languages and Environments. Computer Languages Just as there are many human languages, there are many computer programming languages.
Sebastian Kügler, FrOSCon 2006 Jarosław Staniek, aKademy 2006 Database (data) components for KDE applications developers codename: KexiDB Facts ● Your.
Database 12.2 and Oracle Enterprise Manager 13c Liana LUPSA.
DoD EA Dip Cse - NCW Export Macros
Introduction to Web programming
Applied CyberInfrastructure Concepts Fall 2017
Select Your Meeting Export Your Contacts From Outlook How to create a csv contact file from Outlook to import into Select Your Meeting
Mastering ArcGIS Attribute Data (Continued)
ECONOMETRICS ii – spring 2018
SQL Standard Query Language Good for manipulating a Database
Preparing your Data using Python
Preparing your Data using Python
First, open your Workbench
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
1.
8 6 MySQL Special Topics A Guide to MySQL.
Access: Access Basics Participation Project
Manipulating and Sharing Data in a Database
Retrieving numerical values.
Charles Haffey Text To Columns Excel 2010 Charles Haffey
Tutorial 8 Sharing, Integrating, and Analyzing Data
JTLS 6.0 View Data Files In Excel
Presentation transcript:

Querying CSV Files with SQL using ‘q’ Presented by Simon Frank

Context Working with data often means dealing with delimited files (CSV, TSV, etc…) Import delimited file(s) into data model Export data from data model into delimited file(s)

Some Common Challenges File not in correct format Column order screwed up Incorrect formatting Categorical values not correctly mapped Data contains duplicates Data incomplete / different from the previous file And so on…

Cry Me A River, Buddy Stop complaining and deal with it! Fix it with your text editor Edit it in Excel Ever heard of Grep, Awk or Sed? What about a.Net console app or a Python script? BCP it into SQL Server and query it from there

Finally – The Point Dealing with import and export files suck We have more interesting things to do Quick and easy to finish the job with SQL We already know SQL!

Enter q Command line tool to run SQL queries on delimited files Implementation: In-memory table Supports all sqlite3 query constructs

DEMO

FREEDOM !