How can I use multiple row subqueries in update statement

Hai All

I'm using the Group feature in my update statement... and I need to update several lines so I need to use several rows

subquery pls tell me how to use multiple row subqueries in update statement


For example

while I use it like this I got an error

Update dail_att set outtime to (select max (r2.ptime) in the temp_att where empcode = r2.enpno and)

bar code = r2.cardn and group attend_date = r2.pdate by enpno, update, cardn);


Pls tell me how to use for example


Thanks and greetings

Srikkanth.M

Hello

for r2 loop p1

R2 is a line of the cursor,

Max (R2. PtIMe)? It is always equal to r2.ptime if the select statement returns rows.

Tags: Database

Similar Questions

Maybe you are looking for

  • Satellite C660 - Toshiba face recognition

    Hello Problems, remember to come an error occurred now blocking down, that's when I try and so far the password?When I try and so far the pilot he comes up with the following application the use of these files that need to be updated by this Setup.Cl

  • Cannot control the recovery for my Pavilion 17-e019dx disk

    I accidentally deleted my given factory windows during installation of UBUNTU... Now I have installed 8.1 Windows 64-bit again, but it is not given by HP and the previous software... But I really need them :/ I also deleted my recovery partition I tr

  • Question of Shunt of LabVIEW

    Greetings, I'm working on a pump shrimp. I have problems of measurement of voltage across a shunt when tension, it reaches a certain point (~ 13 Volts or more). Reading, as seen in the excel worksheet, takes a dive until the voltage on another channe

  • HP Pavilion p6-2054uk: HP Pavilion p6-2054uk does not start all of a sudden upward. Help, please.

    I hope someone can help here? I have a desktop HP Pavilion p6-2054uk (Windows 7 64 bit - i5, 3.00 Ghz - 6 GB of RAM) that I bought in 2012 and especially use of HP products. By starting my PC the other day, it will not start and crashes on the HP spl

  • MSKB article delete C:\Windows.Old?

    Can someone point me in the direction of an article (with the number) in the MSKB which tells you how to remove the C:\Windows.Old folder with a command prompt? This is for a school project. I searched the MSKB and can't seem to find anything that te