Sample customers SQL script (100 rows)
A SQL script that creates a customers table and inserts 100 fictional rows using portable syntax.
Download
sample-customers.sql
19.3 KB19,777 bytes
Download SQL sampleDirect download. No sign-up and no waiting.
- Type
- application/sql
- SHA-256
d224b226eda6272ed35bb1b3980bfcda4370e62868c9a67be7a950bf5cfacacb- Direct URL
https://sampletestfiles.com/downloads/samples/sample-customers.sql
Why test with this file
Seeds a test database in seconds, or tests SQL import and migration tooling.
| Statements | 1 CREATE TABLE, 100 INSERT |
|---|---|
| Dialect | Portable SQL (PostgreSQL, MySQL, MariaDB, SQLite) |
| Encoding | ASCII |
What to check
After your application has processed sample-customers.sql, confirm that:
- The script runs to completion on your database engine.
- The table holds exactly 100 rows afterwards.
- Running it a second time fails cleanly on the existing table rather than duplicating rows.
How the file begins
The opening lines of sample-customers.sql, exactly as they appear in the file.
-- Sample SQL script for testing
CREATE TABLE customers (
id INTEGER PRIMARY KEY,
first_name VARCHAR(50) NOT NULL,
last_name VARCHAR(50) NOT NULL,
email VARCHAR(120) NOT NULL,
city VARCHAR(60),
country CHAR(2),
signup_date DATE,
balance DECIMAL(10,2)
);
INSERT INTO customers (id, first_name, last_name, email, city, country, signup_date, balance) VALUES (1, 'Ethan', 'Zeller', 'ethan.zeller1@example.com…
INSERT INTO customers (id, first_name, last_name, email, city, country, signup_date, balance) VALUES (2, 'Elena', 'Underhill', 'elena.underhill2@examp…Preview
Shows the file contents.
Technical details
| File name | sample-customers.sql |
|---|---|
| Format | SQL (SQL script) |
| Extension | .sql |
| MIME type | application/sql |
| Size | 19,777 bytes (19.3 KB) |
| Kind | Text |
| SHA-256 | d224b226eda6272ed35bb1b3980bfcda4370e62868c9a67be7a950bf5cfacacb |
| Created | 2026-10-10 |
| Validation | Exact size, signature bytes and structure checked when the file was generated |
| Preview | Available on this page |
| Source | Generated for this site; not copied from elsewhere |
| Licence | Free to use, modify and redistribute (terms) |
| Category | Database |
Validated for expected format and integrity. As with any download, scan the file with your own security tools before opening it. How files are made and checked
Download from the command line and verify
Fetch the file with curl, then compare its checksum with the SHA-256 value above.
curl -o sample-customers.sql 'https://sampletestfiles.com/downloads/samples/sample-customers.sql'
sha256sum sample-customers.sql # Linux
shasum -a 256 sample-customers.sql # macOSOn Windows, run Get-FileHash sample-customers.sql -Algorithm SHA256 in PowerShell. A matching value proves that the download is complete and unaltered.
About SQL
A text file of SQL statements, used for database dumps, migrations and seed data.
Where it fits
- Software development
General-purpose fixtures for building, debugging and demonstrating software that reads or writes files.
- CI/CD pipelines
Fixtures for build, test and deployment pipelines, with checksums for verification.