# Normalize API endpoints by removing any trailing '/' characters using RTRIM

Canonical URL: <https://datadriven.io/problems/normalize-api-endpoints-by-removing-any-trailing-charact-eb1be1ec>

Domain: SQL · Difficulty: medium

## Problem

Normalize API endpoints by removing any trailing '/' characters using RTRIM. Show the original endpoint and the cleaned version as clean_endpoint from api_calls. Only include rows where the endpoint ends with '/'. Limit to 5 rows.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/normalize-api-endpoints-by-removing-any-trailing-charact-eb1be1ec)
- [SQL Interview Questions](https://datadriven.io/sql-interview-questions)
- [Data Engineering Interview Prep Guide](https://datadriven.io/data-engineer-interview-prep)
- [Daily Challenge](https://datadriven.io/daily)

---

Source: DataDriven (https://datadriven.io). 100% free data engineering interview prep. Live code execution against Postgres 16, Python 3.11, and Spark sandboxes. No paywall, no premium tier, no signup gate.