viw_price_history.sql

来自「工厂采购系统,DELPHI+SQL SERVER,三层技术」· SQL 代码 · 共 13 行

SQL
13
字号
if object_id('dbo.viw_Price_History') is not null
drop view dbo.viw_Price_History
go

create view viw_Price_History
as
select hpn,unitprice as  Unit_Price ,curunit as Currency,max(created_dt) as Creation_dt,max(last_upd_dt) as Modify_dt
from ord_item  where isnull(hpn,'')<>''
group by hpn,unitprice,curunit



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?