Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UPDATE FROM syntax
Message
 
 
To
06/07/2006 18:09:00
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01134219
Message ID:
01134321
Views:
12
>>Hi everybody,
>>
>>I'm trying to understand UPDATE FROM syntax and see, if I can apply it.
>>
>>Here is what I have
>>
>>select cEmployee_Queue_Schedules_pk ;
>>		from Trans inner join Trans_Employees_Queues TEQ ;
>>		on Trans.cTrans_pk = TEQ.cTrans_fk ;
>>		inner join Employee_Queue_Schedules EQS ;
>>		on TEQ.cTrans_Employees_Queues_pk = EQS.cTrans_Employees_Queues_fk ;
>>		where not Trans.cResolution_Codes_fk is null ;
>>		and EQS.iActive_Flag = 1 into cursor curResolvedAccts
>>		
>>		update Employee_Queue_Schedules set iActive_Flag = 0 ???
>>
>>
>>I want to update all records in Employee_Queue_Schedules that have matching records in curResolvedAccts.
>
>
>
> update EQS set iActive_Flag = 0 ;
>		from Trans inner join Trans_Employees_Queues TEQ ;
>		on Trans.cTrans_pk = TEQ.cTrans_fk ;
>		inner join Employee_Queue_Schedules EQS ;
>		on TEQ.cTrans_Employees_Queues_pk = EQS.cTrans_Employees_Queues_fk ;
>		where Trans.cResolution_Codes_fk is not null ;
>		and EQS.iActive_Flag = 1
>
Thanks a lot.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform