× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



iNav's SQL toolset is PHENOMENAL.  Visual Explain?  Yeah!  Index
Advisor?  YEAH!  HEALTH CENTER (V5R4)?!?!?! YEEEAAAAAHHHHH!!!!!!

Very nice stuff. 


--
Justin C. Haase - iSeries System Engineer
IBM Certified Systems Expert - System i
Kingland Systems Corporation

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Wednesday, November 29, 2006 9:48 AM
To: Midrange Systems Technical Discussion
Subject: Re: SQL from MS SQL Server

select * from a
....+....1...
MYKEY  MYDATA
  A    B 
  B    C 

select * from b
....+....1....+
MYKEY  ITSDATA 
  A    HI 

1. An unspecified join seems to be equal to an inner join - data must
exist in both files.
SELECT A.MYKEY,A.MYDATA,B.ITSDATA FROM A JOIN B USING (MYKEY) and SELECT
A.MYKEY,A.MYDATA,B.ITSDATA FROM A inner JOIN B USING (MYKEY) both return
only ....+....1....+....2..
MYKEY  MYDATA  ITSDATA
  A    B       HI 


2. LEFT JOIN seems to be equal to LEFT OUTER JOIN - pull from first/left
most file all records and any matching (if any) from the second file

SELECT A.MYKEY,A.MYDATA,B.ITSDATA FROM A LEFT JOIN B USING (MYKEY)
....+....1....+....2..
MYKEY  MYDATA  ITSDATA
  A    B       HI 
  B    C       - 

SELECT A.MYKEY,A.MYDATA,B.ITSDATA FROM A LEFT OUTER JOIN B USING (MYKEY)
....+....1....+....2..
MYKEY  MYDATA  ITSDATA
  A    B       HI 
  B    C       - 


3. Don't know if any of the tools in iNav will allow you to see where
the 
person is being dropped.  But I have heard that the set of tools in iNav

are so darn good for analysis that one shop switched from SQL Server on 
that basis alone.

Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.