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
 Other Forums
 Other Topics
 Equivalent in Sybase SQl

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-11-08 : 15:32:40
vikram writes "this is a query in the MS-Access:
SELECT dbo_FM42_TBL.MISC_TBL_KEY, Left([RELATED_DATA_1],40) AS Department FROM dbo_FM42_TBL
GROUP BY dbo_FM42_TBL.MISC_TBL_KEY, Left([RELATED_DATA_1],40), dbo_FM42_TBL.MISC_TBL_NO, Len(Trim([MISC_TBL_KEY]))
HAVING (((dbo_FM42_TBL.MISC_TBL_NO)="010") AND ((Len(Trim([MISC_TBL_KEY])))=2)) ORDER BY Left([RELATED_DATA_1],40);

All that I need is the equivalent functions of len, trim, left in sybase, and build the above query in the sybase sql language."
   

- Advertisement -