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
 Conversion query statement???

Author  Topic 

dFresh
Starting Member

4 Posts

Posted - 2008-09-29 : 13:50:43
Not really sure if "conversion" is the correct statement here. What I'm trying to do is display a name instead of a number. Scenerio:

In my view table, one of the fields displays the Project Manager's ID# instead of the name. I need my report to display the PM's name insead of their ID#. The problem is that in this particular table the PM's name is not an option only the PM's ID#. I'm looking for a way I can write this query to show the PM's name instead of the PM's ID#. Is it a "conversion" statement or some other kind of statement?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-09-29 : 13:56:00
Join to the table that contains the information.

SELECT t1.Column1, t2.ColumnA
FROM Table1 t1
INNER JOIN Table2 t2
ON t1.SomeColumn = t2.SomeColumn

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -