- 浏览: 51375 次
- 性别:
- 来自: 南京
文章分类
最新评论
version1:
declare @budgetIdmax int,@curBudgetId int; select @budgetIdmax=max(budget_id) from budget; set @curBudgetId=1; while @curBudgetId<=@budgetIdmax begin INSERT INTO FY_BUDGET_W (FK_FISCAL_YEAR_ID) (select distinct fk_fiscalyear_id from EFFORT_ESTIMATION where fk_budget_id=@curBudgetId ) set @curBudgetId=@curBudgetId+1; end
Version 2: declare @budgetIdmax int,@curBudgetId int; select @budgetIdmax=max(budget_id) from budget; set @curBudgetId=1; while @curBudgetId<=@budgetIdmax begin INSERT INTO FY_BUDGET_W (FK_FISCAL_YEAR_ID,fk_budget_id) (select distinct fk_fiscalyear_id,fk_budget_id from EFFORT_ESTIMATION where fk_budget_id=@curBudgetId ) set @curBudgetId=@curBudgetId+1; end
-------------------------------------------------------------------------
Version 3 : test passed
declare @budgetIdmax int,@curBudgetId int,@FYbudgetStatus varchar(20); select @budgetIdmax=max(budget_id) from budget; set @curBudgetId=1; while @curBudgetId<=@budgetIdmax begin select top 1 @FYbudgetStatus=BUDGET_plan_STATUS from budget where budget_id=@curBudgetId INSERT INTO FY_BUDGET_W (FK_FISCAL_YEAR_ID,fk_budget_id,FY_BUDGET_STATUS) (select distinct fk_fiscalyear_id,fk_budget_id,@FYbudgetStatus from EFFORT_ESTIMATION where fk_budget_id=@curBudgetId ) set @curBudgetId=@curBudgetId+1; end
ALTER TABLE dbo.BUDGET ADD RECORD_FY_ID bigint NULL, RECORD_BUDGET_STATUS nvarchar(50) NULL; ALTER TABLE dbo.BUDGET ADD CONSTRAINT DF_BUDGET_RECORD_BUDGET_STATUS DEFAULT 'DRAFT' FOR RECORD_BUDGET_STATUS;
UPDATE BUDGET SET RECORD_FY_ID = 0, RECORD_BUDGET_STATUS = 'DRAFT';
EFFORT_TRACE_ID:BudgetId_EffortEstimationId ( ProjectId_EffortEstimationId) :
ALTER TABLE EFFORT_ESTIMATION ADD [EFFORT_TRACE_ID] [nvarchar] (50) NULL ;
Update EFFORT_ESTIMATION set EFFORT_TRACE_ID=str(FK_BUDGET_ID)+'_'+str(EFFORT_ESTIMATION_ID);
RECORD_BUDGET_STATUS, RECORD_FY_ID:
发表评论
-
PRT maintainence
2015-09-23 20:33 0jjjeeee -
Migration Prepration & Notice
2011-07-28 10:25 0Problem1: some ee=0 should d ... -
BUDGET & FY_BUDGET_W 一起处理
2011-07-12 13:54 719Version 1 declare @budgetI ... -
BUDGET,FY_BUDGET_W
2011-07-08 13:48 0Version1: SELECT ee.*, BUDGE ... -
Set IS_ALIGNED='1' for EEs of all budgets in process&Delete sw's RS
2011-04-15 13:31 645Final sql script version : ... -
Align Traffic light //Batch update EffortEstimation set IS_ALIGNED value =1 or 0
2011-04-14 15:04 0string effsAligned = (p ... -
你看错了吧?!
2011-04-13 10:12 692SELECT BUDGET.BUDGET_ID, BUDGET ... -
DataMigration script
2011-03-24 11:14 9771. not keep the budget plan his ... -
temp store
2011-03-18 15:14 0SELECT RESOURCEASSIGNMENT.RESOU ... -
temporay note
2011-03-04 16:04 767declare @projectidmax int,@curp ... -
Migrate budget table,MemberResource table
2011-03-04 15:57 704Add two column set default val ... -
Delete Script
2011-03-04 15:16 732declare @projectidmax int,@curp ... -
Delete Top n-1 from a groud of records of a table
2011-03-04 14:35 715Test successfully! decla ... -
Import data from ResourceAssignment into Resource_Assign
2011-03-04 14:29 944insert into RESOURCE_ASSIGN( MA ...
相关推荐
DBTables_BM_Prj_Budget_Lock.xml DBTables_BM_Prj_Budget_Lock.xmlDBTables_BM_Prj_Budget_Lock.xml
**Python库 django_pj_budget-2.3.0-py2.py3-none-any.whl** 在IT行业中,Python是一种广泛使用的高级编程语言,以其简洁、易读的语法和丰富的库生态系统而闻名。`django_pj_budget`是这样一个Python库,它是专为...
GPS_Power_Budget计算,计算GPS信号功率
《Python库django_budget_backend-0.2-py3-none-any.whl详解》 在Python的世界里,库扮演着至关重要的角色,它们为开发者提供了丰富的功能和便捷的工具,极大地提升了开发效率。今天我们要讨论的是一个名为`django_...
V1.0.9.29-sp3_20221110_02_YSYTH_FISCAL_BUDGET_PRO_调整调剂处理现有财政端数据的流程.sql
该压缩包包含了MATLAB编程实现的两个脚本,即"C_linkbudget_my.m"和"SL_budget.m",以及一个详细说明文档"航天任务分析与设计.docx"。这些文件旨在帮助我们理解如何为中轨通信卫星的C波段和S/L波段的馈电链路进行...
Programme de gestion budget
标题 "bep_budget_public_body" 暗示我们可能在讨论一个与预算管理或公共财政相关的项目,可能是某个软件系统的一部分。"PLSQL美化"标签则指出这涉及到Oracle数据库的PL/SQL编程语言,可能涉及代码美化、格式化或者...
资源分类:Python库 所属语言:Python 资源全名:django_kanban_budget-0.0.13-py2.py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源分类:Python库 所属语言:Python 资源全名:cdk_budget_notifier-0.3.16-py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源分类:Python库 所属语言:Python 资源全名:lazy_budget-0.5.1-py2.py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
"margin_Budget_卫星通信链路预算_卫星通信_卫星参数MARGIN_matlab_源码.zip"这个压缩包文件提供了卫星通信链路预算的MATLAB源代码,用于计算和分析卫星通信系统的性能指标。下面我们将深入探讨链路预算的基本概念、...
为了保证不同设备之间的兼容性和数据传输的可靠性,USB协会针对USB 3.1接口的高速模式SuperSpeed(包括Gen1和Gen2)制定了相应的信号损耗预算(Loss Budget)。损耗预算文档详细描述了在主机、电缆和设备各部分之间...
hbib数据库设计
其中,“offline_budget_tracker”是一个专注于离线操作的预算追踪工具,尤其适用于网络条件不稳定或者完全无网络的环境下。本文将深入探讨这个应用的核心技术——JavaScript,以及它如何实现离线预算追踪功能。 ...