Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3323

SUBSTRING in a SELECT-Statement

$
0
0

Hello,

on the "Support Facility"-site I want to execute a query:

SELECT jd.Name, jdp.DefaultExpression from JobDefinition jd, JobDefinitionParameter jdp where jd.UniqueId=jdp.JobDefinition where jdp.Name='ABAP_PROGRAM_NAME'

That's working fine.

But I need only the left 8 characters of the DefaultExpression, but

SELECT jd.Name, SUBSTRING (jdp.DefaultExpression,1,8) from JobDefinition jd, JobDefinitionParameter jdp where jd.UniqueId=jdp.JobDefinition where jdp.Name='ABAP_PROGRAM_NAME'

doesn't work.

How can I manipulate the String "DefaultExpression" in the query?

Best regards

Dana


Viewing all articles
Browse latest Browse all 3323

Trending Articles