J
jayderk
I have 2 tables with almost the same fields and want to collect data from
both.
DOES NOT WORK
string sql = "SELECT _id, "
+ "accepted, "
+ "accepted_date, "
+ "quantity "
+ "FROM returns, unsched "
+ "WHERE accepted != 'u'";
WORKS with only one table of course
string sql = "SELECT _id, "
+ "accepted, "
+ "accepted_date, "
+ "quantity "
+ "FROM returns "
+ "WHERE accepted != 'u'";
in the help for SQL CE it says [,....n] which tells me the first statement
is legal.. but doesn't work..
FROM { < table_source > } [ ,...n ]
< table_source > ::=
table_name [ [ AS ] table_alias ]
| < joined_table >
< joined_table > ::=
< table_source > < join_type > < table_source > ON < search_condition >
| ( < joined_table > )
< join_type > ::=
[ INNER | { { LEFT | RIGHT } [ OUTER ] } ] JOIN
thanks in advanced
both.
DOES NOT WORK
string sql = "SELECT _id, "
+ "accepted, "
+ "accepted_date, "
+ "quantity "
+ "FROM returns, unsched "
+ "WHERE accepted != 'u'";
WORKS with only one table of course
string sql = "SELECT _id, "
+ "accepted, "
+ "accepted_date, "
+ "quantity "
+ "FROM returns "
+ "WHERE accepted != 'u'";
in the help for SQL CE it says [,....n] which tells me the first statement
is legal.. but doesn't work..
FROM { < table_source > } [ ,...n ]
< table_source > ::=
table_name [ [ AS ] table_alias ]
| < joined_table >
< joined_table > ::=
< table_source > < join_type > < table_source > ON < search_condition >
| ( < joined_table > )
< join_type > ::=
[ INNER | { { LEFT | RIGHT } [ OUTER ] } ] JOIN
thanks in advanced