Microsoft
Software
Hardware
Network
Question : MS SQL help
Hi,
new to SQL so sorry for the very simple question!
Ive got a table with the following information
User_ID, Old_User_ID, MGR_ID
00123,123, A1
564,,B3
292,,00123
The problem is, the ID i want to know is always the "Old_User_ID" if this value is listed.
So in the 3rd row, we can see that the user has a mgr_ID listed as 00123, however this ID should actually be 123?
I got this far, however im not even close!
I presume i need to create a new view, that has all my columns plus a new column, which is called "Actual_MGR_ID" or something?
If an OLD_USER_ID is not listed, then USER_ID is used.
SELECT DataMini.*
FROM DataMini
LEFT JOIN DataMini AS DataMini_1
ON DataMini.Supervisor_Empno = DataMini_1.File_Number
oh and im writing this in MS Access 2003 - SQL View
Hope this makes sense?
Answer : MS SQL help
This should take care of it.....
Random Solutions
Problem installing VMWARE ESXi v4.1 on HP/Compaq ProLiant ML350 G6
Password Management Software
Issues installing Crystal Report Viewer with cxlibw-1-6.dll Using Package and deployment VB6 and Crystal Version 10
Problem in Oracle 11G Installation on Linux Red Hat - Packages not found.
Why iis access opening incorrectly......
PHP hosting transfer problem
handling gregorian dates
exchange 2010 installation
List Of Different ERP Modules And Information About ERP
How to turn off or alter amount of space used by System Restore and Shadow Copy in Vista?