Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"OUTER JOIN" Problem

Status
Not open for further replies.

fdsouth

Technical User
Jun 6, 2001
61
US
I am trying to write a simple SQL SELECT statement for listing data pulled from two Pervasive.SQL tables.

Table 1 (Part Lot)
Fields: STK_68, SERIAL_68, LOTNUM_68...

Table 2 (Order Master)
Fields: LOTNUM_10, UDFKEY_10...

My SQL statment reads:

SELECT [SERIAL_68], [UDFKEY_10] FROM "Part Lot" LEFT OUTER JOIN "Order Master" ON [LOTNUM_68] = [LOTNUM_10] WHERE STK_68 IN ('SUBST614')

When I execute the statement, my computer hangs. If I remove the WHERE clause, I get an answer. What am I missing?

Also, without the WHERE clause I get repeated instances of [SERIAL_68]. If I add "SELECT DISTINCT", computer hangs.

Please help. At wits end.
 
What version of p.sql are you using? Version 7 uses (+) to indicate outer joins instead of 'outer join' syntax.
 
I'm using SQL.2000i SP 4.

I think I worked my way through it though. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top