We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Here is a basic mySQL solution without JOIN, OVER, UNIO, ROW_NUMBER(), LEAD. It only singly counts pairs x,x if they occur exactly twice, so it fails for triple occurrence, but this amount of repetition is not in the data and its handling is not specified in the statement.
Symmetric Pairs
You are viewing a single comment's thread. Return to all comments →
Here is a basic mySQL solution without
JOIN, OVER, UNIO, ROW_NUMBER(), LEAD
. It only singly counts pairsx,x
if they occur exactly twice, so it fails for triple occurrence, but this amount of repetition is not in the data and its handling is not specified in the statement.