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.
Author |
Topic |
TRACEYSQL
Aged Yak Warrior
594 Posts |
Posted - 2007-09-28 : 12:58:40
|
I have syslogins and i want to check table that may haveUSER DATE COMPANY emplTRACEY 01/01/2007 1 018TRACEY 01/01/2006 9 017Could have two records for employeeTried select NAME, A.EMPL_ID, A.FIRST_NAME, A.LAST_NAME, A.TERM_DTFROMsysloginswhere SUBSTRING(A.FIRST_NAME,1,1) + a.LAST_NAME = namein (select max(a.term_dt) from EMPLOYEE a)Erroring on STATEMENT in |
|
dinakar
Master Smack Fu Yak Hacker
2507 Posts |
Posted - 2007-09-28 : 13:01:00
|
>>where SUBSTRING(A.FIRST_NAME,1,1) + a.LAST_NAME = namein (select max(a.term_dt) from EMPLOYEE a)I have no idea what you are trying to do here?? Can you explain?Dinakar Nethi************************Life is short. Enjoy it.************************http://weblogs.sqlteam.com/dinakar/ |
 |
|
|
|
|