Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

SQL Syntax Help

When you import tables from Excel and need to do a field name change you use an "as" function: for example

Division as "User Division"

What would the syntax be for changing field names from salesforce.come tables?

Please help!!

Thanx

16 Replies
Anonymous
Not applicable
Author

Use This

[Division] as [User Division]

Not applicable
Author

Neither of these methods seems to be working for me

Anonymous
Not applicable
Author

the keyword AS is QV keyword not SQL , so bebore u run SQL statemen ( SQL SELECT) and after

can transform with QV

Try a script like this..

Tabele:

LOAD

    XCDEL                         as XCDEL1,

    capitalize(trim(XDTAB)) as  XDTAB1;

   

SQL SELECT

    XCDEL,

    XDTAB

FROM .............;

jagan
Luminary Alumni
Luminary Alumni

Hi,

Use below script

TableName:

LOAD

     Id AS ID,

     [DGA_Account_Number__c] AS DGAAccountNumber;

SQL SELECT

          Id,

    DGA_Account_Number__c

FROM Account;

Regards,

Jagan.

Not applicable
Author

That worked!  Thank you all for your replies

jagan
Luminary Alumni
Luminary Alumni

Hi,

Close this Discussion by selecting "Correct Answer", if it solves your problem.  It helps others to find the solution for this type of scenarios.

Regards,

jagan.

Not applicable
Author

This was not my original question, so I cannot close this discussion as Answered