TEACHER
Name
Post
Address
Record type instance – ordered collection of fields instances:
TEACHER
Johnson
professor
Kiev
CALC key is an internal identifier of any record, that assigned to a record on the base of values of a specified record fields.
Set owner. There is only one set owner record
Set members. There may be 0, 1 or more set member records.
Set instance (occurrence) consists of one instance of the owner record type and any number of instances of the member record types
Thus the set represent two level hierarchical one-to-many relationship.
Set type Set instance
Set name
Members of the set «Department Structure»
Owner of the set «Scientific Works»
Members of the set «Scientific Works»
GROUP
LECTURE
Attend
Is taught at
Has
m:n
m:n
Is_taught_at
Has
TEACHER
FIND
Puts selected (current) record into UWA.
GET
FIND [record-name] RECORD BY CALC-KEY
Syntax:
Example: Find lecture record with LID field value “L3”
(Field LID is defined as как CALC-field)
Lecture.LID = "L3";
FIND Lecture RECORD BY CALC-KEY;
SUBJECT
LECTURE
Is_taught_at
Has
TEACHER
Current occurrence of the set “Has”
L1 - the first member record of
the set “Has”
Error_Status != 0 – the record
occurrence do not have
member records
L1 L2 L3 L4 L5
S1 S2 S3
T1 T2
T1
L3
S2
L4
L5
S3
INSERT [record-name] RECORD INTO [set-name] SET
Syntax:
Example:
X = 31; FIND Teacher RECORD BY DATABASE KEY x;
Y = 24; FIND Lecture RECORD BY DATABASE KEY y;
INSERT Lecture RECORD INTO Has SET;
REMOVE [record-name] RECORD FROM [set-name] SET
Syntax:
Example: Remove all lectures of the teacher with DBK 31.
x=31; FIND Teacher RECORD BY DATABASE KEY x;
Loop: FIND NEXT Lecture RECORD IN Has SET;
IF Error_Status=0 THEN
BEGIN; REMOVE Lecture RECORD FROM Teacher SET;
GO TO Loop;
END;
Example: For teacher with DBK 31 change name to “Smith”.
x=31; FIND Teacher RECORD BY DATABASE KEY x;
GET Teacher RECORD;
Teacher.Name = ”Smith”;
MODIFY RECORD;
DELETE [record-name] RECORD
Syntax:
Example: Delete record with DBK 21.
x=21; FIND Lecture RECORD BY DATABASE KEY x;
DELETE Lecture RECORD;
Если не удалось найти и скачать доклад-презентацию, Вы можете заказать его на нашем сайте. Мы постараемся найти нужный Вам материал и отправим по электронной почте. Не стесняйтесь обращаться к нам, если у вас возникли вопросы или пожелания:
Email: Нажмите что бы посмотреть