sql GPA - Reprocessarintegração

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql GPA - Reprocessarintegração相关的知识,希望对你有一定的参考价值。

declare @retailstoreid varchar(18),
		@taskId numeric(10,0);

set @retailstoreid = 'S1357';
select @taskid = min(taskid) from tm.task where actionid = 14 and AlertConfigId is not null and PriceChangeDate > getdate() - 1;

update stra.ItemPriceChange 
   set integrationstatus = 'A' 
 where pricechangedate > getdate() -1 
   and retailstoreid = @retailstoreid
   and itemid not in (select distinct itemid 
                        from tm.taskitem
					   where taskid >= @taskId 
					     and retailstoreid = @retailstoreid);

以上是关于sql GPA - Reprocessarintegração的主要内容,如果未能解决你的问题,请参考以下文章

sql GPA - PriceAnalysisChange - RelatórioporLoja

sql GPA - PriceAnalysisChange - Produtos fora dos Alertas

PL/SQL 如何比较触发器中的表达式?

比较 SQL 中的两个关系

第3天SQL快速入门-高级查询(SQL 小虚竹)

带有聚合函数的PL / SQL触发器