Write a query to return all duplicate rows in a table based on three columns.
Use the provided trade_records table. Treat rows with the same values across client_code, instrument_symbol, and venue_code as duplicates. Rows with NULL values in these columns should be evaluated consistently as part of the same combination.
record_id, client_code, instrument_symbol, and venue_code.record_id in ascending order.| Column | Type | Description |
|---|---|---|
| record_idPK | INT | Unique identifier for the record |
| client_code | VARCHAR(20) | Client reference used in the duplicate key |
| instrument_symbol | VARCHAR(20) | Instrument symbol used in the duplicate key |
| venue_code | VARCHAR(20) | Execution venue used in the duplicate key |