Hello. Please help with the request. There is a table with data:
ID | CODE 1 |1 2 |112 3 |1113 4 |11114 How to build a query so that I could choose a record with the maximum number of matches at the beginning of the line.
Suppose that in the sample condition we transfer 11114980349, the condition is most consistent with the record 11114. DBMS PostgreSQL. Is it possible to build a query without full-text search?