Insert
INSERT creates new documents in a schema. The schema must already exist. Documents in a schema do not need to have the same fields.
INSERT INTO WordList:Language (Id, Name)
VALUES (10, 'Italian')INSERT INTO WordList:Language (Id, Name)
VALUES (11, 'Dutch'), (12, 'Finnish'), (13, 'Latin')INSERT INTO WordList:Language (Id, Name, Code)
VALUES (14, 'Swedish', Sha1('Swedish') + '-' + Guid())INSERT INTO WordList:Language
(Id: 15, Name: 'Polish'),
(Id: 16, Name: 'Czech', Code: Guid())INSERT INTO WordList:Translation (SourceWord, SourceLanguage, TargetWord, TargetLanguage)
SELECT
sw.Text as SourceWord,
sl.Name as SourceLanguage,
tw.Text as TargetWord,
tl.Name as TargetLanguage
FROM
WordList:Word as sw
INNER JOIN WordList:Language as sl
ON sl.Id = sw.LanguageId
INNER JOIN WordList:Synonym as S
ON S.SourceWordId = sw.Id
INNER JOIN WordList:Word as tw
ON tw.Id = S.TargetWordId
INNER JOIN WordList:Language as tl
ON tl.Id = tw.LanguageId
WHERE
sw.Text = 'Cat'