Longest Substring Without Repeating Leetcode Sql Queries