|
Gert, Frank I have a query in an embedded HSQL database: SELECT "STUDENTS"."ID" AS "STUDENTID", "STUDENTS"."FirstName", "STUDENTS"."LastName", "STUDENTS"."email", "STUDENTS"."COURSEID", "MARKS"."ID" AS "MARKID", "MARKS"."STUDENTID", "MARKS"."MARKFOR", "MARKS"."MARK", "MARKS"."COMMENTS" FROM { OJ "MARKS" "MARKS" LEFT OUTER JOIN "STUDENTS" "STUDENTS" ON "MARKS"."STUDENTID" = "STUDENTS"."ID" } The query includes all the fields from both tables. It is indeed treated as updateable - however, when I open the query and insert a new record only the values for the MARKS table are written. The values entered for the STUDENTS table are discarded. Both STUDENT.ID and MARKS.ID are of type IDENTITY. It appears that the marks table is written to first, in fact it completely bypasses any referential integrity check, the tables are related with a foreign key. Andrew Jensen Gert Blij wrote: > You cannot update queries joining two tables, unless |
- [dba-users] Re: Base form rea... Frank Schönheit
- [dba-users] Re: Base for... Gert Blij
- Re: [dba-users] Re: ... Frank Schönheit - Sun Microsystems Germa ny
- RE: [dba-users] ... Gert Blij
- Re: [dba-use... Andrew Jensen
- Re: [db... Frank Schönheit - Sun Microsystems Germa ny
- Re:... Andrew Jensen
