schema S = literal : sql {
entities
a b
foreign_keys
has : b -> a
attributes
i : a -> Varchar
j : a -> Varchar
k : b -> Varchar
m : b -> Varchar
}
query Q = simple : S {
from
eh:a
attributes
has -> eh.has
i -> eh.i
}
entity Q -> {from
eh : a
attributes
i -> eh.i
}
schema S = literal : sql {
entities
a b
foreign_keys
has : b -> a
attributes
i : a -> Varchar
j : a -> Varchar
k : b -> Varchar
m : b -> Varchar
}
query Q = simple : S {
from
bee:b
attributes
has -> bee.has
k -> bee.k
}
--
You received this message because you are subscribed to the Google Groups "categoricaldata" group.
To unsubscribe from this group and stop receiving emails from it, send an email to categoricalda...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
create table a {
id Integer not null primary key,
i Varchar,
j Varchar }
create table b {
id Integer not null primary key,
has Integer foreign key references a(id),
k Varchar,
m Varchar }
select bee.k, bee.has
from b as bee
Notice how the foreign key column can be included in the select.
How can this be done in all?
{
entities
A B
foreign_keys
B__HS__A_ID : B -> A
path_equations
attributes
ID : A -> Integer
I : A -> Varchar
J : A -> Varchar
ID : B -> Integer
HS : B -> Integer
K : B -> Varchar
M : B -> Varchar
observation_equations
forall x:B. x.HS = x.B__HS__A_ID.ID
}