I'm creating a database project for school using Oracle SQL Developer.
We have information that we need to retrieve from our databases, so I'm trying to write the queries to do this. For one of my queries, I am trying to rename my FROM clauses but am getting an error. I have tried putting the aliases in brackets, quotes, everything but I still get the error.
Can someone point out where I am going wrong with my syntax?
SELECT AvatarName AS "MegaAvName", SpeciesName AS "MegaAvSpecies", MagicName
AS "MegaAvMagic", Hoard,
AvatarName AS "Father", SpeciesName AS "FatherSpecies", SpeciesCost AS
"FatherSpeciesCost", WisdomName AS "FatherWisdom",
AvatarName AS "Mother", SpeciesName AS "MotherSpecies", SpeciesCost AS
"MotherSpeciesCost", WisdomName AS "MotherWisdom"
FROM MegaAvatar AS MA, Avatar AS A, Species AS MSP, MagicPower AS MP,
SuperAvatar AS FSA, Avatar AS FA, Species AS FSP, Wisdom AS FW,
SuperAvatar AS MSA, Avatar AS MA, Species AS MSP, Wisdom AS MW
WHERE MA.Avatar_ID=A.AvatarID AND Avatar.SpeciesID=MSP.SpeciesName AND
MegaAvatar.MagicPowerID=MP.MagicPowerID AND A.Hoard>='16'
AND MegaAvatar.PrimParentID=FSA.SuperAvID AND FSA.AvatarID=FA.AvatarID AND
FA.SpeciesID=FSP.SpeciesID
AND MegaAvatar.SecParentID=MSA.SuperAvID AND MSA.AvatarID=MA.AvatarID AND
MA.SpeciesID=MSP.SpeciesID;