help-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-recutils] relations many-to-many


From: Roman Novikov
Subject: [help-recutils] relations many-to-many
Date: Sat, 16 Apr 2016 20:59:44 +0300

Hello!

I would like to work with information about people and relationships
between people:


=========================people============================
%rec: person
%key: name

name: a
email: address@hidden

name: b
email: address@hidden

name: c
email: address@hidden

%rec: rel
%type: pers rec person

id: 1
pers: a
pers: b
type: friend

id: 2
pers: c
pers: b
type: type4

id: 3
pers: c
pers: a
type: child
======================end of people========================

Is it possible to construct query to show relations of person 'a' with
emails of all the persons in these relations. Ideally result records
will look like:

id: 3
pers_name: a
pers_email: address@hidden
pers_name: c
pers_email: address@hidden
type: child
...



Regards, Roman



reply via email to

[Prev in Thread] Current Thread [Next in Thread]