Обсуждение: Re: Best Fit SQL query statement

Поиск
Список
Период
Сортировка

Re: Best Fit SQL query statement

От
Rodrigo De León
Дата:
On Aug 6, 3:57 am, Kiran <kumar.m.ki...@gmail.com> wrote:
> and if I query on 98456 the result must be 98456,
> However if I query on 98455 the result must be 9845
> and If I query 9849 the result must be 984

SELECT MAX(t1) FROM t1WHERE '9849' LIKE t1 || '%';