#1063

Guest-Safe Order Label

Each order needs a Russian text label in the form Заказ N пользователя U. If user_id is missing, the user part of the label must be гость. Return id and label, sorted by id.

Esempio di output atteso

Ecco come appare una risposta corretta — il suo numero di righe è a sé stante, non deve corrispondere alle tabelle dello schema.

idlabel
10Заказ 10 пользователя 1
11Заказ 11 пользователя 1
12Заказ 12 пользователя 2

Il risultato della tua query apparirà qui