Join IIUG
 for   
 

Informix News
18 Nov 13 - ZDNet - Top 20 mobile skills in demand... Read
09 Sep 13 - telecompaper - Shaspa and Tatung have shown a new smart home platform at Ifa in Berlin. Powered by the IBM Informix software... Read
06 Sep 13 - IBM data magazine - Mission Accomplished - Miami, Florida will be the backdrop for the 2014 IIUG Informix Conference... Read
01 Feb 13 - IBM Data Magazine - Are your database backups safe? Lester Knutsen (IBM Champion) writes about database back up safety using "archecker"... Read
14 Nov 12 - IBM - IBM's Big Data For Smart Grid Goes Live In Texas... Read
3 Oct 12 - The Financial - IBM and TransWorks Collaborate to Help Louisiana-Pacific Corporation Achieve Supply Chain Efficiency... Read
28 Aug 12 - techCLOUD9 - Splunk kicks up a SaaS Storm... Read
10 Aug 12 - businessCLOUD9 - Is this the other half of Cloud monitoring?... Read
3 Aug 12 - IBM data management - Supercharging the data warehouse while keeping costs down IBM Informix Warehouse Accelerator (IWA) delivers superior performance for in-memory analytics processing... Read
2 Aug 12 - channelbiz - Oninit Group launches Pay Per Pulse cloud-based service... Read
28 May 12 - Bloor - David Norfolk on the recent Informix benchmark "pretty impressive results"... Read
23 May 12 - DBTA - Informix Genero: A Way to Modernize Informix 4GL Applications... Read
9 Apr 12 - Mastering Data Management - Upping the Informix Ante: Advanced Data Tools... Read
22 Mar 12 - developerWorks - Optimizing Informix database access... Read
14 Mar 12 - BernieSpang.com - International Informix User Group set to meet in San Diego... Read
1 Mar 12 - IBM Data Management - IIUG Heads West for 2012 - Get ready for sun and sand in San Diego... Read
1 Mar 12 - IBM Data Management - Running Informix on Solid-State Drives.Speed Up Database Access... Read
26 Feb 12 - BernieSpan.com - Better results, lower cost for a broad set of new IBM clients and partners... Read
24 Feb 12 - developerWorks - Informix Warehouse Accelerator: Continuous Acceleration during Data Refresh... Read
6 Feb 12 - PRLOG - Informix port delivers unlimited database scalability for popular SaaS application ... Read
2 Feb 12 - developerWorks - Loading data with the IBM Informix TimeSeries Plug-in for Data Studio... Read
1 Feb 12 - developerWorks - 100 Tech Tips, #47: Log-in to Fix Central... Read
13 Jan 12 - MC Press online - Informix Dynamic Server Entices New Users with Free Production Edition ... Read
11 Jan 12 - Computerworld - Ecologic Analytics and Landis+Gyr -- Suitors Decide to Tie the Knot... Read
9 Jan 12 - planetIDS.com - DNS impact on Informix / Impacto do DNS no Informix... Read
8 Sep 11 - TMCnet.com - IBM Offers Database Solution to Enable Smart Meter Data Capture... Read
1 Aug 11 - IBM Data Management Magazine - IIUG user view: Happy 10th anniversary to IBM and Informix... Read
8 Jul 11 - Database Trends and Applications - Managing Time Series Data with Informix... Read
31 May 11 - Smart Grid - The meter data management pitfall utilities are overlooking... Read
27 May 11 - IBM Data Management Magazine - IIUG user view: Big data, big time ( Series data, warehouse acceleration, and 4GLs )... Read
16 May 11 - Business Wire - HiT Software Announces DBMoto for Enterprise Integration, Adds Informix. Log-based Change Data Capture... Read
21 Mar 11 - Yahoo! Finance - IBM and Cable&Wireless Worldwide Announce UK Smart Energy Cloud... Read
14 Mar 11 - MarketWatch - Fuzzy Logix and IBM Unveil In-Database Analytics for IBM Informix... Read
11 Mar 11 - InvestorPlace - It's Time to Give IBM Props: How many tech stocks are up 53% since the dot-com boom?... Read
9 Mar 11 - DBTA - Database Administration and the Goal of Diminishing Downtime... Read
2 Feb 11 - DBTAs - Informix 11.7 Flexible Grid Provides a Different Way of Looking at Database Servers... Read
27 Jan 11 - exactsolutions - Exact to Add Informix Support to Database Replay, SQL Monitoring Solutions... Read
25 Jan 11 - PR Newswire - Bank of China in the UK Works With IBM to Become a Smarter, Greener Bank... Read
12 Oct 10 - Database Trends and Applications - Informix 11.7: The Beginning of the Next Decade of IBM Informix... Read
20 Sep 10 - planetIDS.com - ITG analyst paper: Cost/Benefit case for IBM Informix as compared to Microsoft SQL Server... Read
20 Jul 10 - IBM Announcements - IBM Informix Choice Edition V11.50 helps deploy low-cost scalable and reliable solutions for Apple Macintosh and Microsoft Windows... Read
20 Jul 10 - IBM Announcements - Software withdrawal: Elite Support for Informix Ultimate-C Edition... Read
24 May 10 - eWeek Europe - IBM Supplies Database Tech For EU Smart Grid... Read
23 May 10 - SiliconIndia - IBM's smart metering system allows wise use of energy... Read
21 May 10 - CNET - IBM to help people monitor energy use... Read
20 May 10 - ebiz - IBM Teams With Hildebrand To Bring Smart Metering To Homes Across Britain... Read
19 May 10 - The New Blog Times - Misurare il consumo energetico: DEHEMS è pronto... Read
19 May 10 - ZDNet - IBM software in your home? Pact enables five-city smart meter pilot in Europe... Read
17 March 10 - ZDNet (blog) David Morgenstern - TCO: New research finds Macs in the enterprise easier, cheaper to manage than... Read
17 March 2010 - Virtualization Review - ...key components of Big Blue's platform to the commercial cloud such as its WebSphere suite of application ser vers and its DB2 and Informix databases... Read
10 February 2010 - The Wall Street Journal - International Business Machines is expanding an initiative to win over students and professors on its products. How do they lure the college crowd?... Read


End of Support Dates

IIUG on Facebook IIUG on Twitter

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum

Re: LEFT OUTER JOIN on IDS 9.2

Posted By: Jonathan Leffler
Date: Wednesday, 11 February 2004, at 6:01 p.m.

In Response To: LEFT OUTER JOIN on IDS 9.2 (KEVIN)

--0__=08BBE4A4DFEE4EDB8f9e8a93df938690918c08BBE4A4DFEE4EDB
Content-type: multipart/alternative;
Boundary="1__=08BBE4A4DFEE4EDB8f9e8a93df938690918c08BBE4A4DFEE4EDB"

--1__=08BBE4A4DFEE4EDB8f9e8a93df938690918c08BBE4A4DFEE4EDB
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: quoted-printable






You said:
I have two queries that I expect the same results from.

I ask:
Why do you expect the same result? Informix's outer join is a totally
different critter from an ISO outer join. They are superficially simil=
ar,
and there are circumstances where they produce the same result, but the=
y
are very far from being identical. And, in particular, when you place =
a
search criterion on the outer table, Informix and ISO have different vi=
ews
on what the correct answer is. Your code includes the term c.customer=
_id
=3D '123' and c is an alias for the outer join table. Informix will pr=
eserve
all the rows in the inner table that meet the criteria regardless of
whether there are rows in the outer table that match - it sort of does =
the
outer join twice. ISO does the outer join once, and then filters the
result. Your results are consistent with that. The explanation of wha=
t
Informix does is incredibly difficult.

--
Jonathan Leffler (jleffler@us.ibm.com)
STSM, Informix Database Engineering, IBM Data Management
4100 Bohannon Drive, Menlo Park, CA 94025
Tel: +1 650-926-6921 Tie-Line: 630-6921
"I don't suffer from insanity; I enjoy every minute of it!"




|---------+---------------------------->
| | "KEVIN" |
| | <kslindholm@excit|
| | e.com> |
| | Sent by: |
| | forum.subscriber@|
| | iiug.org |
| | |
| | |
| | 02/11/2004 11:48 |
| | AM |
|---------+---------------------------->
>--------------------------------------------------------------------=
-----------------------------------------------------------------------=
--|
| =
=
|
| To: ids@iiug.org =
=
|
| cc: =
=
|
| Subject: LEFT OUTER JOIN on IDS 9.2 [2530] =
=
|
>--------------------------------------------------------------------=
-----------------------------------------------------------------------=
--|




I have two queries that I expect the same results from. They are as
follow:
--Query One
SELECT s.year_month
,s.period_status
,c.customer_id
FROM summary s,OUTER customer_activity c
WHERE s.year_month =3D c.year_month
AND s.year_month IN('200401','200402','200403')
AND c.customer_id =3D '123'
ORDER BY s.year_month DESC;

--Query Two
SELECT s.year_month
,s.period_status
,c.customer_id
FROM summary s
LEFT OUTER JOIN customer_activity c ON s.year_month =3D c.year_month
WHERE s.year_month IN ('200401','200402','200403')
AND c.customer_id =3D '123'
ORDER BY s.year_month DESC;

Results are:
--Query One Results
year_month| period_status| customer_id
200403 | N |
200402 | N | 123
200401 | R | 123

--Query Two Results
year_month| period_status| customer_id
200402 | N | 123
200401 | R | 123

Am I wrong in thinking that these queries should give me the same resul=
ts?
What is the difference?

Thanks,
Kevin

=

--1__=08BBE4A4DFEE4EDB8f9e8a93df938690918c08BBE4A4DFEE4EDB
Content-type: text/html; charset=US-ASCII
Content-Disposition: inline
Content-transfer-encoding: quoted-printable

<html><body>
<p>You said:<br>
<tt>I have two queries that I expect the same results from. &nbsp;</tt>=
<br>
<br>
I ask:<br>
Why do you expect the same result? Informix's outer join is a totally =
different critter from an ISO outer join. They are superficially simil=
ar, and there are circumstances where they produce the same result, but=
they are very far from being identical. And, in particular, when you =
place a search criterion on the outer table, Informix and ISO have diff=
erent views on what the correct answer is. Your code includes the ter=
m c.customer_id =3D '123' and c is an alias for the outer join table. =
Informix will preserve all the rows in the inner table that meet the cr=
iteria regardless of whether there are rows in the outer table that mat=
ch - it sort of does the outer join twice. ISO does the outer join on=
ce, and then filters the result. Your results are consistent with that=
. The explanation of what Informix does is incredibly difficult.<br>
<br>
--<br>
Jonathan Leffler (jleffler@us.ibm.com)<br>
STSM, Informix Database Engineering, IBM Data Management<br>
4100 Bohannon Drive, Menlo Park, CA 94025<br>
Tel: +1 650-926-6921 Tie-Line: 630-6921<br>
&quot;I don't suffer from insanity; I enjoy every minute of it!&q=
uot;<br>
<br>
<br>
<img src=3D"cid:10__=3D08BBE4A4DFEE4EDB8f9e8a93df938@us.ibm.com" width=3D=
"16" height=3D"16" alt=3D"Inactive hide details for &quot;KEVIN&quot; &=
lt;kslindholm@excite.com&gt;">&quot;KEVIN&quot; &lt;kslindholm@excite.c=
om&gt;<br>
<br>
<br>

<table V5DOTBL=3Dtrue width=3D"100%" border=3D"0" cellspacing=3D"0" cel=
lpadding=3D"0">
<tr valign=3D"top"><td width=3D"1%"><img src=3D"cid:20__=3D08BBE4A4DFEE=
4EDB8f9e8a93df938@us.ibm.com" border=3D"0" height=3D"1" width=3D"72" al=
t=3D""><br>
</td><td style=3D"background-image:url(cid:30__=3D08BBE4A4DFEE4EDB8f9e8=
a93df938@us.ibm.com); background-repeat: no-repeat; " width=3D"1%"><img=
src=3D"cid:20__=3D08BBE4A4DFEE4EDB8f9e8a93df938@us.ibm.com" border=3D"=
0" height=3D"1" width=3D"225" alt=3D""><br>

<ul>
<ul>
<ul>
<ul><b><font size=3D"2">&quot;KEVIN&quot; &lt;kslindholm@excite.com&gt;=
</font></b><br>
<font size=3D"2">Sent by: forum.subscriber@iiug.org</font>
<p><font size=3D"2">02/11/2004 11:48 AM</font></ul>
</ul>
</ul>
</ul>
</td><td width=3D"100%"><img src=3D"cid:20__=3D08BBE4A4DFEE4EDB8f9e8a93=
df938@us.ibm.com" border=3D"0" height=3D"1" width=3D"1" alt=3D""><br>
<font size=3D"1" face=3D"Arial"> </font><br>
<font size=3D"2"> To: </font><font size=3D"2">ids@iiug.org</font><br>
<font size=3D"2"> cc: </font><br>
<font size=3D"2"> Subject: </font><font size=3D"2">LEFT OUTER JOIN on I=
DS 9.2 [2530]</font></td></tr>
</table>
<br>
<br>
<tt>I have two queries that I expect the same results from. &nbsp;They =
are as follow:<br>
--Query One<br>
SELECT s.year_month<br>
,s.period_status<br>
,c.customer_id<br>
FROM summary s,OUTER customer_activity c<br>
WHERE s.year_month =3D c.year_month<br>
AND s.year_month IN('200401','200402','200403')<br>
AND c.customer_id =3D '123'<br>
ORDER BY s.year_month DESC;<br>
<br>
--Query Two<br>
SELECT s.year_month<br>
,s.period_status<br>
,c.customer_id<br>
FROM summary s<br>
LEFT OUTER JOIN customer_activity c ON s.year_month =3D c.year_month<b=
r>
WHERE s.year_month IN ('200401','200402','200403')<br>
AND c.customer_id =3D '123'<br>
ORDER BY s.year_month DESC;<br>
<br>
Results are:<br>
--Query One Results<br>
year_month| period_status| customer_id<br>
200403 &nbsp; &nbsp;| N &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br>
200402 &nbsp; &nbsp;| N &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | 123<br>
200401 &nbsp; &nbsp;| R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | 123<br>
<br>
--Query Two Results<br>
year_month| period_status| customer_id<br>
200402 &nbsp; &nbsp;| N &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | 123<br>
200401 &nbsp; &nbsp;| R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | 123<br>
<br>
Am I wrong in thinking that these queries should give me the same resul=
ts? &nbsp;What is the difference?<br>
<br>
Thanks,<br>
Kevin<br>
<br>
</tt>

</body></html>=


--1__=08BBE4A4DFEE4EDB8f9e8a93df938690918c08BBE4A4DFEE4EDB--


--0__=08BBE4A4DFEE4EDB8f9e8a93df938690918c08BBE4A4DFEE4EDB
Content-type: image/gif;
name="graycol.gif"
Content-Disposition: inline; filename="graycol.gif"
Content-ID: <10__=08BBE4A4DFEE4EDB8f9e8a93df938@us.ibm.com>
Content-transfer-encoding: base64

R0lGODlhEAAQAKECAMzMzAAAAP///wAAACH5BAEAAAIALAAAAAAQABAAAAIXlI+py+0PopwxUbpu
ZRfKZ2zgSJbmSRYAIf4fT3B0aW1pemVkIGJ5IFVsZWFkIFNtYXJ0U2F2ZXIhAAA7

--0__=08BBE4A4DFEE4EDB8f9e8a93df938690918c08BBE4A4DFEE4EDB
Content-type: image/gif;
name="ecblank.gif"
Content-Disposition: inline; filename="ecblank.gif"
Content-ID: <20__=08BBE4A4DFEE4EDB8f9e8a93df938@us.ibm.com>
Content-transfer-encoding: base64

R0lGODlhEAABAIAAAAAAAP///yH5BAEAAAEALAAAAAAQAAEAAAIEjI8ZBQA7

--0__=08BBE4A4DFEE4EDB8f9e8a93df938690918c08BBE4A4DFEE4EDB
Content-type: image/gif;
name="pic07785.gif"
Content-Disposition: inline; filename="pic07785.gif"
Content-ID: <30__=08BBE4A4DFEE4EDB8f9e8a93df938@us.ibm.com>
Content-transfer-encoding: base64

R0lGODlhWABDALP/AAAAAK04Qf79/o+Gm7WuwlNObwoJFCsoSMDAwGFsmIuezf///wAAAAAAAAAA
AAAAACH5BAEAAAgALAAAAABYAEMAQAT/EMlJq704682770RiFMRinqggEUNSHIchG0BCfHhOjAuh
EDeUqTASLCbBhQrhG7xis2j0lssNDopE4jfIJhDaggI8YB1sZeZgLVA9YVCpnGagVjV171aRVrYR
RghXcAGFhoUETwYxcXNyADJ3GlcSKGAwLwllVC1vjIUHBWsFilKQdI8GA5IcpApeJQt8L09lmgkH
LZikoU5wjqcyAMMFrJIDPAKvCFletKSev1HBw8Krxtj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DilTVIA0yl5ciTovgLuBDKFUDE9aQcw
9SA+rjSNf9/M1gxrj6VwDTS0IUSElMzBfsj0NFXR2kwsV1A5IF1grLgLL/r1R40BZEnuBWgmQEyb
jqRwSAt6bqMCOFkvKFN2GPPkUzIm/SCF8z8pVzpbjVnMsy0vOr1hw3SaSRUhpY09v0z0J1FnwzPl
fmh+xl4WtR0zGu24I4KbMQm3lnVu2oNWxI9W/lcyzA+mCKF4DBikxb/+UWtOGRiFP8qEwAayIgIA
Ow==

--0__=08BBE4A4DFEE4EDB8f9e8a93df938690918c08BBE4A4DFEE4EDB--

Messages In This Thread

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum is maintained by Administrator with WebBBS 5.12.