First public contribution.
3 ExpectedError0=KErrNotFound
13 Exec0=create table names(pkey int primary key, fname text, lname text, ref int);
14 Exec1=insert into names(pkey, fname, lname, ref) values(1, "tom", "jones", 2);
15 Exec2=insert into names(pkey, fname, lname, ref) values(2, "jim", "davies", 1);
16 Exec3=insert into names(pkey, fname, lname, ref) values(3, "bob", "smith", 1);
17 Exec4=insert into names(pkey, fname, lname, ref) values(4, "dave", "house", 3);
18 Exec5=insert into names(pkey, fname, lname, ref) values(5, "jane", "hobbs", 4);
22 Exec0=create table roles(ref int primary key, job text, band text);
23 Exec1=insert into roles(ref, job, band) values(1, "engineer", "A");
24 Exec2=insert into roles(ref, job, band) values(2, "sales", "A");
25 Exec3=insert into roles(ref, job, band) values(3, "consultant", "B");
26 Exec4=insert into roles(ref, job, band) values(4, "manager", "C");
27 Exec5=insert into roles(ref, job, band) values(5, "VP", "D");
31 Exec0=create table sal(band text primary key, wage real);
32 Exec1=insert into sal(band, wage) values ("A", 24000);
33 Exec2=insert into sal(band, wage) values ("B", 30000);
34 Exec3=insert into sal(band, wage) values ("C", 45000);
35 Exec4=insert into sal(band, wage) values ("D", 60000);
39 Exec0=create view v1 as select fname, lname, job from names, roles where names.ref = roles.ref;
40 Prepare1=select * from v1;
50 ColumnTextL11=1,davies
51 ColumnTextL12=2,engineer
55 ColumnTextL16=2,engineer
59 ColumnTextL20=2,consultant
63 ColumnTextL24=2,manager
68 Exec0=create view v2 as select fname, job, wage from names, roles, sal where names.ref = roles.ref and roles.band = sal.band;
69 Prepare1=select * from v2;
79 ColumnTextL11=1,engineer
83 ColumnTextL15=1,engineer
87 ColumnTextL19=1,consultant
91 ColumnTextL23=1,manager