473,399 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

SQL0104N An unexpected token"." was found following "".

Hi,
I have to update a columm in DB2 with temporary table.
My select work but my update give me an error: SQL0104N An unexpected token"." was found following "".
It's a sql with Toad.
Can someone help me please?


Expand|Select|Wrap|Line Numbers
  1. UPDATE TAOSEM_ALM.TSEM_ENTP  ENTP
  2. SET (ENTP.NOM_ENTR_1 , ENTP.NOM_LEGA_MAJU_ENTR) = (
  3. with TEMP as 
  4. (SELECT a.ID_PERS_DESJ, a.NUM_PERS_DESJ_ENCO 
  5.   FROM  TAOSEM_ALM.TSEM_CORR_ID_PDSJ a,
  6.        (SELECT NUM_PERS_DESJ_ENCO,
  7.                MAX (DAT_FIN_EFFE_ENRG) AS DAT_FIN_EFFE_ENRG
  8.           FROM  TAOSEM_ALM.TSEM_CORR_ID_PDSJ
  9.          WHERE ID_PERS_DESJ >= 0
  10.         GROUP BY NUM_PERS_DESJ_ENCO) b
  11. WHERE     a.NUM_PERS_DESJ_ENCO = b.NUM_PERS_DESJ_ENCO
  12.             AND a.DAT_FIN_EFFE_ENRG = b.DAT_FIN_EFFE_ENRG )
  13. SELECT rtrim(T1.NOM_ENTR_1) ||' '|| T2.NUM_PERS_DESJ,  rtrim(T1.NOM_LEGA_MAJU_ENTR) ||' '|| T2.NUM_PERS_DESJ 
  14. FROM   TAOSEM_ALM.TSEM_ENTP T1
  15. LEFT JOIN (SELECT temp.ID_PERS_DESJ, temp.NUM_PERS_DESJ_ENCO , h.NUM_PERS_DESJ from TEMP
  16.             LEFT JOIN  TAOSEM_ALM.TSEM_CORR_ENCO_PDSJ h 
  17.             on  temp.NUM_PERS_DESJ_ENCO = h.NUM_PERS_DESJ_ENCO)  T2
  18.            on T1.ID_PERS_DESJ = T2.ID_PERS_DESJ
  19. )  
  20. WHERE ENTP.ID_PERS_DESJ = T1.ID_PERS_DESJ;
Apr 8 '16 #1
1 6145
This error signifies that this is syntax error , could you please check your code once to ensure that there is no syntax error. If there is no error then could you paste complete error you are getting
Jun 16 '16 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Najm Hashmi | last post by:
Hi all , I am trying to create a store procedure and I get the following error: SQL0104N An unexpected token "END-OF-STATEMENT" was found following "END". Expected tokens may include: "JOIN...
3
by: UnixSlaxer | last post by:
Hello All, While doing some TPC benchmark testing on DB2-UDB 8.2, I face the following problem when running this query: select * from lineitem where l_shipdate <= date '1998-12-01' -...
2
by: P | last post by:
Hi all, I'm trying to run the following code taken from http://blogs.ittoolbox.com/database/technology/archives/006045.asp# select substr(tablespace_name,1,30) as "Tablespace Name", case...
4
by: lisa | last post by:
I have an XML file that starts like this: <?xml version="1.0" encoding="ISO-8859-1" xmlns:fn="http://www.w3.org/2005/xpath-functions"?> <Authors> <Author> <ID>2</ID>...
0
by: vaibhavsumant | last post by:
<project name="DBCreate" default="usage" basedir="."> <property name="user" value="db2admin"/> <property name="passwd" value="db2admin"/> <property name="dbprefix" value=""/> <property...
3
crystal2005
by: crystal2005 | last post by:
I found such eror message when i tried to test sending email. Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in...
2
by: atishrg | last post by:
Hello All Need your help.. I created addin for outlook 2007 in vs2005(vb.net)... It is working fine now I Migrated that to vs2008 and created setup for that in vs2008...
1
by: Amjad Raza Gill | last post by:
I am facing this problem during the migration from oracle to db2, pls. help to remove this error. I am new to DB2. DB21034E The command was processed as an SQL statement because it was not a ...
1
by: japs | last post by:
db2 "truncate table DETAIL_ACTIVITY ignore delete triggers drop storage immediate" DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command....
0
by: wadephz | last post by:
Hi, I trying to create a trigger in DB2. But I am getting this error: An unexpected token "END-OF-STATEMENT" was found following "it_line DECIMAL(7,2)". CREATE TRIGGER verify_purchase NO...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.