General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Subselect in update query
Hi,
can anyone tell me what's wrong with this update query?
procedure P_MinutesOnMedium
lparameters tnMediumid
update medium ;
set total = select sum(length);
from film join recording on film.filmid = recording.filmid;
where recording.mediumid = tnMediumid;
where recording.mediumid = tnMediumid
endproc
thanks
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only