# Eight fictional customer rows that must survive a CSV round trip

Editorial trial protocol. Not a completed test report. Use fictional data.

## Prepare
- A disposable table demo_customers in a local test database, with columns id, customer_code, name, city, joined_on, balance and note.
- Eight invented rows, including customer_code 00420, name 'Demo Tester', city 'Zürich-Test', joined_on 2026-03-04, balance 1234.50, and one row where note is NULL.
- A saved filter query that returns exactly five of the eight rows, so you can test a partial scope.
- An expected-values list in the worksheet: 8 and 5 rows, plus the exact text of each tricky value.

## Steps
1. Run the filter query, right-click the result grid, choose Export data and pick CSV.
2. On the extraction page, choose the scope you intend and write it down: Use fetched rows, Selected rows only or Selected columns only.
3. In the CSV settings, set Delimiter, Header (top), Quote character and NULL string. Use a visible NULL string such as NULL_TEST, so a missing value cannot pass for empty text.
4. Choose the Encoding, for example UTF-8, note the output folder and filename, and finish the export.
5. Open the CSV in a plain text editor. Check the delimiter, the header line, the quotes around text values and the NULL string.
6. Open the same file in LibreOffice Calc. In the Text Import dialog, set Character set, the separator and String delimiter, give customer_code the column type Text and joined_on the type Date (YMD). Count the rows and compare every tricky value. Repeat with a full-table export and compare with 8.

## Checks
- The filtered export has exactly 5 data rows and the full export 8, each with one header line.
- 00420 is still 00420 in Calc.
- Zürich-Test shows the ü correctly in both the text editor and Calc.
- 2026-03-04 reads as 4 March 2026, and 1234.50 is a number, not text.
- The NULL row shows your NULL string, not an empty cell that looks like empty text.

## Stop rules
- Stop if real customer or production data appears in the export. Delete the file and go back to the demo table.
- Stop if the row count differs. Recheck the extraction scope before you touch any spreadsheet setting.
- Do not hand the CSV over as a database backup. It is a data export of the chosen rows and columns.

## Your observations

### Source and scope
Database, table or query, and the extraction option you chose.

…

### Expected count
Rows you expect with and without the filter.

…

### CSV settings
Delimiter, header, quote character, NULL string and encoding.

…

### Calc import
Character set, separator and the column types you set.

…

### Value check
Result for leading zero, accent, date, decimal and empty value.

…

### Handover
Filename, date and what a colleague needs to repeat the export.

…

## Sources
- DBeaver: data export: https://dbeaver.com/docs/dbeaver/Data-export/ (2026-12-02)
- DBeaver: data transfer: https://dbeaver.com/docs/dbeaver/Data-transfer/ (2026-12-02)
- LibreOffice Help: Text Import: https://help.libreoffice.org/latest/en-US/text/shared/00/00000208.html (2026-12-02)
- LibreOffice Help (Nederlands): Tekstimport: https://help.libreoffice.org/latest/nl/text/shared/00/00000208.html (2026-12-02)
