![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Let's say I have a lil ole table like this: animal amount cat 12 dog 4 horse 90000 and let's say I want an output table that is the self-join of that table, but with two things filtered out: 1 - rows with the same animal (i.e. no rows like: cat 12 cat 12 2 - either of the rows which contain the same thing but in reverse order... meaning: cat 12 dog 4 OR dog 4 cat 12 but not both Is this possible in a single SQL query or must PL/SQL or program code be written? |
![]() |
| Thread Tools | |
| Display Modes | |
| |