pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ³¯¥@ªl <adam_chen@bankpro.com.tw>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Something strang on "left join"
Date: Thu, 28 Sep 2017 06:17:45 +0000
Message-ID: <0f8812cf2e764fc586229bab1b10ea79@SRMAIL.bankpro.com.tw> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hi,

        My pgsql version is 9.6, and I got something wrong result while using left join.

        We used ¡§left join¡¨ to join t1 and t2, the result of the first row was wrong ,here is the LEFT JOIN result.


1.     select * from cicifcif

[cid:image001.png@01D33864.2E5D2E20]

2.     select * from eccifidi

[cid:image002.png@01D33864.2E5D2E20]

3.     select * from cicifcif t1 left join eccifidi t2 on t1."CI-CUST-NO" = t2."EC-CUST-NO" ORDER BY T1."CI-CUST-NO"
[cid:image003.png@01D33864.8DBCC4C0]

  THE LEFT JOIN RESULT OF THE FIRST ROW , COLUMNS OF eccifidi SHOULD BE ¡§222¡¨,¡¨N¡¨,¡¨Y¡¨¡K.

Kind regards,

Adam.


________________________________

¥»¹q¤l¶l¥ó¡i¥]¬Aªþ¥ó¡j¥i¯à¸ü¦³¾÷±K¡B±M¦³©Î¨üªk«ß«OÅ@¤§°T®§©Î¸ê®Æ¡A¨Ã¶È¨Ñ¦¬¥ó¤H¦¬¨ü¡C¦p±z¨Ã«D¥»¶l¥ó¤§¹w©w¦¬¥ó¤H¡A§YµLÅv¾\Ū¡B¦C¦L¡B¨Ï¥Î¡B«O¯d¡B½Æ»s¡B´²§G©Î´¦ÅS¥»¶l¥ó¤Î/©Î¨ä¥ô¦ó³¡¤À¡C¦p±z¿ù»~¦a¦¬¨ü¥»¶l¥ó¡A½Ð¥ß§Y±N¤§±q¶l¥ó¨t²Î¤¤¾P·´©Î§R°£¡A¨Ã³qª¾±H¥ó¤H¡Cª÷°]³q°Ó°È¬ì§ÞªA°È(ªÑ)¤½¥qÂÔ´£¿ô±z¡A¥ô¦ó¥¼¸g±ÂÅv§Y¥H«e­z¤è¦¡§Q¥Î¥»¶l¥ó¤§¦æ¬°±N¥i¯à«I®`¥»¤½¥qÅv¯q¡A¬°ªk«ß©ÒÄY®æ¸T¤î¡C¶l¥ó¤¤¥ô¦ó»P¥»¤½¥qÀç·~µLÃö¤§¤º®e¡A¤£±oµø¬°¥»¤½¥q¤§¥ß³õ©Î·N¨£¡C·PÁ±zªº°t¦X¡C

This e-mail with its any attachment are confidential and may also be legally privileged. If you are not the addressee you shall not read, print, utilize, reserve, copy, forward, or disclose any part of it. If you have received this e-mail in error, please immediately destroy or delete it from your system and promptly notify the sender. Please also be noted that it is prohibited to use or take any action based on the contents of the e-mail without BankPro's prior and explicit permission. BankPro is not liable for any information contained in the e-mail that is irrelevant to its business. Sincerely thank you for your cooperation.


Attachments:

image001.png (image/png, 12.4K) download view image
image002.png (image/png, 9.7K) download view image
image003.png (image/png, 16.9K) download view image

view thread (5+ messages)  latest in thread

Message-ID: <0f8812cf2e764fc586229bab1b10ea79@SRMAIL.bankpro.com.tw>
Permalink:  ../0f8812cf2e764fc586229bab1b10ea79@SRMAIL.bankpro.com.tw/
Also on:    postgresql.org/message-id/0f8812cf2e764fc586229bab1b10ea79@SRMAIL.bankpro.com.tw

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: adam_chen@bankpro.com.tw
  Subject: Re: Something strang on "left join"
  In-Reply-To: <0f8812cf2e764fc586229bab1b10ea79@SRMAIL.bankpro.com.tw>
  References: <0f8812cf2e764fc586229bab1b10ea79@SRMAIL.bankpro.com.tw>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox