title: Compare row with every other row in the table except the previous ones, how can I do this?
body: <p>How can I write a query that returns the sum of ages for a pair of people. I want to compare the current row with every other rows in the database except the previous ones? For example, I have a Person table and the table has 3 records (In my real table, I have a lot more). Person 1's age should be compared with Person 2 and Person 3 and Person 2 should be compared with Person 3. How can I accomplish this in query form?</p>