Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Sql query question

Author  Topic 

bruceryan
Starting Member

1 Post

Posted - 2011-10-24 : 12:16:00
I have 2 seperate tables

One field: AssignedTo on Table X
2nd field: UserID on Table Y

On my display it's showing the employeeID for AssignedTo, but I want it to display the UserID instead.

This is what I have and is not working:

employees on assignedto = eemployeeid And assignedto = USERID

Need some help PLEASE!

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-24 : 12:19:23
sorry your explanation doesnt make much sense. would you mind posting some sample data to elaborate?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Lamprey
Master Smack Fu Yak Hacker

4614 Posts

Posted - 2011-10-24 : 12:20:13
Maybe this link will help you prepare your data in a consumable format so we can help you better:
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
Go to Top of Page
   

- Advertisement -