This sample demonstrates use of subquery in SET clause.
The query works as follows. First, only those entries are picked that have "Ticket_price" 5 of less. Then corresponding venue is taken, its capacity is multiplied by two and set as the new ticket price. Notice that NULL fields are not affected.
update Events e
set Ticket_price = (select Capacity from Venues where VenueNo=e.VenueNo)*2
where Ticket_price <= 5
Download Absolute Database | Learn more |
|
|
Current version: 7.94
Released: February 08, 2023
Price: $ 149
 
|
|
Component Ace is all that it advertises. It is easy to implement and is very fast.
In addition, the customer support is the best I have ever had. All my questions were answered within hours, often immediately. The responses also answered my questions, no need for followup emails.
If your application needs the functionality that Component Ace provides, search no further.
Linda Murphy
|
|
|