Unix Technical Forum

Re: help with data transformations with outer join?

This is a discussion on Re: help with data transformations with outer join? within the SQL Server forums, part of the Microsoft SQL Server category; --> Erland Sommarskog wrote: > And with ANSI JOINS (which I would expect to work on Oracle too): > > ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 04:15 AM
Preston Landers
 
Posts: n/a
Default Re: help with data transformations with outer join?


Erland Sommarskog wrote:

> And with ANSI JOINS (which I would expect to work on Oracle too):
>
> SELECT t.username as "User Name",
> uxf1.val as "Extra Field 1 Value",
> uxf2.val as "Extra Field 2 Value",
> uxf3.val as "Extra Field 3 Value"
> FROM users t
> LEFT JOIN u_xf_view uxf1 ON uxf1.user_id = t.user_id AND
> uxf1.xf_name = 'Extra Field 1'
> LEFT JOIN u_xf_view uxf2 ON uxf2.user_id = t.user_id AND
> uxf2.xf_name = 'Extra Field 2'
> LEFT JOIN u_xf_view uxf3 ON uxf3.user_id = t.user_id AND
> uxf3.xf_name = 'Extra Field 3'
>


Thank you very much, that is exactly the info I needed! And yes, this
LEFT JOIN technique does work in Oracle.
thanks again,
Preston

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:27 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com