Up9rade IT career @ www.up9rade.com

Groups    |     Jobs    |      User Space 

Hello, pls   log in or   register


  Freedo & his space



How to Left Join

It's about "LEFT JOIN" in SQL query.
I would like to blog it by 4 steps:

1. What's Left Join?
2. How to implement?
3. Common errors.
4. Some practise.

If you are seeking for an answer from internet for what’s going wrong with your SQL left join, you may try luck by directly go to item 3. If you would like learn something about left join, let’s start from the beginning.

1. What's Left Join?
Firstly explain it to a 10 years old boy about what’s left join.
Class you in, some mates have white paper on hands; The next class have some color pens on hands.
Now the teacher is asking you to: find out how many mates in your class with paper already find their partners with a pen, so they can play painting and how many mates left don’t have paper on hands so the teacher could get for them.
Now what are you going to say:
Hey, all of the us please stand in a queue, all of the next door buddies with pens on hands please come here find you partners with paper on hand.
Look, the words you are saying is exactly the “left join” command in SQL try to do, to match staffs from different places.

Secondly explain in programming:
"Select" in SQL is pretty much a function in programming language, with the indicated data sources generate into one & only one output.
The role left join plays here is to ...

tags: sql coding

@ 20080522 00:01:11 with 1 comments     read more...




 Blogs: 1; In 1 pages ; Current page 1        first  | << previous  |    next >> |  last  



About Freedo 关于作者

微软中国 SQL Server 招聘顾问
研发中心:北京、上海
喜爱编程、轮滑
个人项目: 易麦

Microsoft Staffing Consultant
SQL Server China R&D Center
Living in Shanghai
Love Soccer; Roller & Coding;

和我联系 Contact:
Guestbook 给我留言
my facebook
my linkedin



Copyright 版权
本站博客全为原创。遵循
欢迎非商业用途转载,务必注明作者、原出处及超链接。


Recent comments:
== 20080604 22:50:38
Thanks for your report, which is tr ...
== 20080604 11:33:03
我一向用IE7或者Outlook的RSS ...
== 20080525 02:37:33
有意思。
== 20080522 19:10:40
funny thing is: from the title, &qu ...
== 20080515 21:49:40
灾难面前见人心。
== 20080515 21:48:58
130万,2262人次。


Archieves
July 2008
Jun 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
Jun 2007


Links 友情链接
易麦 e-mag
SQL team blog in Chinese



和我交换链接
加入 收藏

  rss 订阅