I am trying to document some SQL and would like to get the correct terminology. If you write SQL like this:
select child.ID, parent.ID from hierarchy child inner join hierarchy parent on child.parentId = parent.ID
Then you have one actual table (“hierarchy”) that you give two names (“parent” and “child”). My question is about how you are referencing the logical entity of a table named.
What would you write in an empty place for a name?
"This query uses one table (hierarchy), but two _ (child and parent)"
[edit] left the previous project in question. now fixed.
source share