Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this possible to do with a SELECT statement?
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01063558
Message ID:
01063582
Views:
12
Thanks,

Forget it is about SQL Server, not VFP.

Einar, disregard my reply

>There's no INDEXSEEK() function in MS SQL Server.
>
>
>>One of the siolutions in case you have index on userid in the User table:
>>
>>SELECT ;
>>    itemid, ;
>>    IIF(INDEXSEEK(Item.creatorid,.t.,"USER","userid"),USER.username,SPACE(LEN(USER.username))) creatorname, ;
>>    IIF(INDEXSEEK(Item.assigneeid,.t.,"USER","userid"),USER.username,SPACE(LEN(USER.username)))  accname ;
>>  FROM Item
>>
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform