If you want to run SQL queries on CSV files from the command line without installing/opening any DBMS software, use CSVKIT

This page summarizes the projects mentioned and recommended in the original post on /r/SQL

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • csvkit

    A suite of utilities for converting to and working with CSV, the king of tabular file formats.

  • xquery-cli

    A command-line tool for XQuery

  • Maybe off topic since it’s not SQL, but if you’re working with XML a lot I’d recommend checking out XQuery! There are a few command line implementations like CSVKIT if you google, this one doesn’t seem too awful

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • xsv

    A fast CSV command line toolkit written in Rust.

  • I've also had success using this tool to do sql like operations on csv files! https://github.com/BurntSushi/xsv

  • trdsql

    CLI tool that can execute SQL queries on CSV, LTSV, JSON, YAML and TBLN. Can output to various formats.

  • The trdsql I made is feature-rich and fast (as a similar SQL tool).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Icsp – Command-line iCalendar (.ics) to CSV parser

    3 projects | news.ycombinator.com | 24 Mar 2023
  • Show HN: TextQuery – Query and Visualize Your CSV Data in Minutes

    3 projects | news.ycombinator.com | 2 Apr 2024
  • Joining CSV Data Without SQL: An IP Geolocation Use Case

    3 projects | news.ycombinator.com | 19 Oct 2023
  • Qsv: CSVs sliced, diced and analyzed (fork of xsv)

    2 projects | news.ycombinator.com | 27 Jun 2023
  • Analyzing multi-gigabyte JSON files locally

    14 projects | news.ycombinator.com | 18 Mar 2023