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:
01063578
Views:
15
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
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform