FETCH 1 ROW IN A SUBSELECT

5 pts.
Tags:
DB2
How do I FETCH 1 ROW from a table inside a subselect? I am getting the error: [SQL0199] Keyword FETCH not expected. Valid tokens: ) UNION EXCEPT. Here is the subselect query:
 (SELECT EcoResProductTranslation_Name 
   FROM RJERN.DMFPRODUCTENTITY 
   INNER JOIN KBM400MFG.FKPSTRUC on TRIM(DISPLAYPRODUCTNUMBER) = PSPMRN
      FETCH FIRST 1 ROW ONLY ) AS BOM_NAME ,


Software/Hardware used:
I am using IBM data studio to pull data from a i5 v5r4
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: