SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Lookup with Twist


Lookup with Twist

Author
Message
sharonsql2013
sharonsql2013
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1278 Visits: 1265
I have a different requirement here...
I have two data sets .
First one brings the Location , Department
2nd one brings in another table (Joined).
I need to check if Devicename in Dataset2 is in Dataset1 and bring the EmpTenure from Dataset2.
something like -

=LOOKUP(Dataset1.DeviceName ,Datset2.deviceName,datset2.Emptenure,"Dataset2")
This brings everything that matches but at the same time I also need the rows where DeviceName in 2 has no match for devicename in Datset 1 and bring the EmpTenure) I know it will be Null But thats the requirement.... So basicallyt I need both Devices that match from Dataset2 to Dataset1 and Devices that do not match...
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search