Help for this page

Select Code to Download


  1. or download this
    SELECT fact
      FROM Facts
    ...
       and AliasFacts.Type = 2
       and BaseFacts.Type = 1
    -- and this all works only if you do not ever have an alias to an alia
    +s!
    
  2. or download this
    SELECT fact
      FROM Facts
    ...
      FROM Facts
      JOIN Aliases ON Aliases.fact_id = Facts.fact_id
     WHERE Aliases.name = ?
    
  3. or download this
    SELECT fact
      FROM Facts
      JOIN Names ON Names.Fact_id = Facts.fact_id
     WHERE Names.Name = ?