Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

applymap

Hi,

Can anybody please post a sample which uses applymap with SQL.

Thanks!!!

1 Solution

Accepted Solutions
Not applicable
Author

Hi Kavita

PFA.. Applymap sample application..... but it is not SQL query.........Just test case

View solution in original post

8 Replies
vikasmahajan

Please go through this example

Re: How to Use Apply Map in QV Script with SQL Table

Hope this help you.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Not applicable
Author

Hi Vikas,

Thanks for the reply.

I have already gone through that link. Could you please provide a sample, if you have any?

Regards,

vikasmahajan

Apply Map with sql can be base on logic which you want , study the script and apply that logic for your fields.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
MK_QSL
MVP
MVP

First Table is Part Description which is Mapping Load Table

Second Table is Purchase/Sales Table in Which I have used ApplyMap to get Part Description...

Hope this help...

//===================================================

OLEDB CONNECT32 TO ......

PART:

MAPPING LOAD

  PNO,

  DESC1;

SQL SELECT PNO,

    DESC1

FROM PPMSDB1.dbo."KCF_PRODF_ACTV";

PURCHASE:

LOAD *,

  ApplyMap('PART',PNO, 'UNKNOWN') as PartDescription;

LOAD NETORDQTY,

    PNO;

SQL SELECT NETORDQTY,

    PNO

FROM PPMSDB1.dbo."PMS_SALES";

Not applicable
Author

Hi Kavita

PFA.. Applymap sample application..... but it is not SQL query.........Just test case

Not applicable
Author

Hi Nirmal,

I changed it to SQL and its woking now

Thanks a lot for your help

Not applicable
Author

Welcome

vikasmahajan

PFA

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.