To retrieve top 10 data in MariaDB, you can use the `LIMIT` clause with the `SELECT` statement.
Assuming you have a table named ‘employees’, and you want to retrieve the top 10 employees sorted by their salary in descending order, you would write:
```
SELECT *
FROM employees
ORDER BY salary DESC
LIMIT 10;
```
This query selects all columns from the employees table, sorts the rows by `salary` in descending order, and limits the output to the first 10 rows.
Keep in mind that “top 10” can mean different things depending on how you sort your data. You have to specify what column you want to sort your data by.