CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2003
    Posts
    3

    Question Left outer join problem in CR9 through ODBC

    Hi,

    I have a problem with a left outer join in the database expert.
    I join two tables with a left outer join and it appears like it is like an inner join.

    My database is pervasive2000. I have a connection through ODBC.

    I found a document on the "Cr9_left_outer_join.pdf" and I added my driver to a registry key. But left outer join works like a inner join.

    How can I solve this problem.

    Thanks in advance !!

  2. #2
    Join Date
    Jul 2003
    Location
    Pune, India
    Posts
    19
    Can u paste your query for this.

    Regards,
    Sameer

  3. #3
    Join Date
    Jul 2003
    Posts
    3
    My Query looks very normal to me, like

    SELECT "res"."res_labonr", "sub"."sub_subnr", "res"."res_meth", "res"."res_sub", "sub"."sub_sub"
    FROM {oj "res" "res" LEFT OUTER JOIN "sub" "sub" ON "res"."res_sub"="sub"."sub_subnr"}
    WHERE "res"."res_labonr"=1 AND "sub"."sub_sub"=0

    So on SQL server, Quoted identifier woeld be on. But for this project I work on a pervasive2000 database.

    The query is like an left outer join, but its behavior is like an inner join. So Normaly I would see 5 records out the res table, but now I see only the 2 matching records.

    Yeah, therefore I use left outer join to see alse the 3 other records. But it doesn't work here.

    Eddy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured