Actually, the Oedipus story far precedes the formation of tragedy
in Ancient Greece
and derives from the Theban Cycle
which was lost somewhere during the Middle Ages
Aeschylus wrote a trilogy of plays concerning the myth, from which only the first part, "Seven Against Thebes", survived. His version of the myth varies in several important points from Sophocles' later one in several important points.
The third Oedipan play is "Oedipus in Colonos".
The myth of Oedipus has parallels in almost every civilization known to mankind.