Syntax\n------\n\nINTERVAL(N0,N1,N2,N3,...)\n\nDescription\n-----------\n\nReturns the index of the last argument that is less than or equal to the first argument, or is NULL.\n\nReturns 0 if N0 < N1, 1 if N1 <= N0 < N2, 2 if N2 <= N0 < N3 and so on or -1 if N0 is NULL. All arguments are treated as integers. It is required that N1 <= N2 <= N3 <= ... <= Nn for this function to work correctly because a fast binary search is used.\n\nExamples\n--------\n\nSELECT INTERVAL(22, 24, 26, 28);\n\nURL: https://mariadb.com/docs/server/reference/sql-structure/operators/comparison-operators/interval