原创 在明細表中做彙總

;WITH T AS (SELECT ROW_NUMBER() OVER(ORDER BY [SalesDate] DESC) AS ROWNUM ,Amount ,[SalesDate] FROM Te

原创 OVER(PARTITION BY)函數用法

轉自:http://www.cnblogs.com/lanzi/archive/2010/10/26/1861338.html

原创 ETL Architecture: 03 Create ProcessRecord Table

CREATE TABLE [dbo].[ETLSourceDataProcessRecord]([RecordID] [int] IDENTITY(1,1) NOT NULL,[SourceSystemK

原创 ETL Architecture: 01 Create BathPool Table

CREATE TABLE [dbo].[ETLBatchPool]([BatchID] [bigint] IDENTITY(1,1) NOT NULL,[BatchStatus] [tinyint] NU

原创 轉:SQL Server 查詢性能優化——創建索引原則(一)

文章地址:http://www.cnblogs.com/chillsrc/archive/2012/09/19/2694313.html

原创 包執行情況

select b.source as package,a.source as task,a.starttime,a.endtime,right(convert(varchar(19),a.endtime

原创 SQL Server相關學習資料地址

1、SQL Server 2014新聚合columnstore索引介紹 http://news.cnblogs.com/n/189427/ 2、SQLServer索引的四個高級特性 http://blog.csdn.net/yzsind/

原创 應聘互聯網公司的簡歷應該是怎麼樣的?

轉自:http://kb.cnblogs.com/page/505105/ http://kb.cnblogs.com/page/505583/

原创 轉:rebuild索引

declare @objectid int,@indexid int,@partitioncount bigint,@schemaname sysname,@objectname sysname,@ind