Well, it depends.
Do you mean any string? Then you can use MIN or MAX, it should work with most data types.
However, if you mean "the first line you can find," then the answer will be no.
This is similar to telling the database engine that "I want you to give me a specific string that meets these criteria, and one of the criteria is that you can give me any string you want."
The reason for this is that if you do not order the lines, there is no concept of the first, and you cannot arrange the lines in any meaningful way that will work with the group in this way.
source share