取公斤星巴克金卡姓名怎么填需填的表格

金卡办理登记表_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
金卡办理登记表
上传于|0|0|暂无简介
阅读已结束,如果下载本文需要使用1下载券
想免费下载本文?
定制HR最喜欢的简历
你可能喜欢一个非常常见的报表,分析会员组成比例 以及最新增长情况 和上月同期会员增长情况。
比较特殊一点的是 报表中的 普通会员 和 金卡会员 临时会员 银卡会员 等列 都是根据会员等级配置表动态生成的(即我是不知道会有多少个vip等级的)。
sql如下(有点挫的感觉 应该会有更优雅的方式实现):
select& N=1, AgentID, AgentBigArea,& AgentName,CusALevel,CusCreateDate into #temp from Customer inner join CusAccount on &CusAVIPNo = VIPNo inner join Agent on AgentID = CusAgentID where CusStatus = 1 and CusCreateDate&' 23:59:59'--插入区域小计insert into #temp select SUM(N),-1,AgentBigArea+'_小计',AgentBigArea+'_小计',CusALevel,'' from #temp group by AgentBigArea,CusALevel--插入总计insert into #temp select SUM(N),-1,'总合计','总合计',CusALevel,'' from #temp where AgentBigArea not like '%小计%' group by CusALevel&declare @sql nvarchar(max)
-- 空格这么多是因为不能设置字符串长度& 很挫 暂时这样处理吧set @sql = 'select ''&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& '' as ''增长率'', Agentname as ''分销商'',agentid,AgentBigArea as ''区域'', SUM(case when CusCreateDate&'''' and CusCreateDate&'''' then N else 0 end) as ''本期'' ,SUM(case when CusCreateDate&Dateadd(MONTH, -1, '' 0:00:00'') and CusCreateDate&Dateadd(MONTH, -1, '' 0:00:00'') then N else 0 end) as ''上期'',SUM(N) as ''总会员数'''--动态行转列SELECT @sql = @sql + ',SUM(case CusALevel when ' +CAST(CusLevelID as nvarchar(10))+' then N else 0 end) as [' +CusLevelName+']'&& &FROM& (SELECT TOP 10000 CusLevelID,CusLevelName&&&&&&&&&&&&&&&& &&& FROM CusLevel &&&& ) AS aprint @sql&SET @sql = @sql + ' into ##temp1 from #temp group by agentname,agentid,AgentBigArea order by AgentBigArea ' &&EXEC (@sql)&
--个人觉得比较挫的地方 用到了全局临时表&select * into #temp2 from ##temp1 &drop table ##temp1 &&&--计算区域小计行的本期和上期&update #temp2 set 本期=bq,上期=sq from #temp2 inner join (select 区域+'_小计' as AgentBigArea,& SUM(上期) as sq,SUM(本期) as bq from #temp2&where 区域 not like '%小计%' group by 区域 ) as t on t.AgentBigArea = #temp2.区域& where #temp2.区域 like '%小计%' &&--计算总合计的本期和上期&update #temp2 set 本期=(select SUM(本期) from #temp2 where 区域 like '%小计%' ),上期=(select SUM(上期) from #temp2 where 区域 like '%小计%' ) where 区域 = '总合计'& & --计算增长率& update #temp2 set 增长率 = (case 上期 when 0 then '' else convert(varchar(30),cast((本期-上期)/convert(decimal(10,2),上期) *100 as decimal(18,2)) )+'%' end)& from #temp2 & & select * from #temp2& &&&& &
阅读(...) 评论()[不要叫我雷锋我叫红领巾]貌似很多新人问关于金卡奖励的事,之前的贴子不知道哪去了。来分享一下之前收藏的一个金卡奖励全表
[img]./mon_/422_52e3c75abb172.jpg[/img]可怜我之前最想要的是金色工程师学徒,苦练小德。结果还没拿到就惨遭削弱[del]法师满级了,奖励的都是什么垃圾东西,构筑800年的冷板凳金卡有毛用![/del]
感谢分享!
[s:ac:呆]全职业60 这辈子我都玩不到 一个职业60不知道有希望没
全职需要六十跪下了!
全职业60级,遥不可及啊
暂时牧师盗贼60了,骑士正在冲级,目标是金色老瞎眼
盗贼奖励金色软泥?小软不是基本卡啊,是不是打错了
为了金卡我要去练盗贼和圣骑吗....
[quote][pid=40891,1]Reply[/pid] [b]Post by [uid=499149]fatdo[/uid] ( 06:39):[/b]盗贼奖励金色软泥?小软不是基本卡啊,是不是打错了[/quote]你记错了小软是基本卡
多谢楼主,回去看看
有没有冲级的好方法呢.. [s:6]
基础卡不能分解啊。。
至今没有一个60级,掩面。。。
用想要金色学徒啊,结果惨遭削弱,当初为了学徒把钓鱼哥都拆了,气哭。
[quote][pid=40891,1]Reply[/pid] [b]Post by 十六夜斋祀 ( 09:26):[/b]用想要金色学徒啊,结果惨遭削弱,当初为了学徒把钓鱼哥都拆了,气哭。[/quote]。。。。。这
[b]Reply to [pid=40891,1]Reply[/pid] Post by [uid=589034]fruitsalad[/uid] ( 09:33)[/b]后来又合了一张,结果再后来又开出来了。。。
[quote][pid=40891,1]Reply[/pid] [b]Post by [uid=]十六夜斋祀[/uid] ( 09:26):[/b]用想要金色学徒啊,结果惨遭削弱,当初为了学徒把钓鱼哥都拆了,气哭。[/quote]mm不哭
用开包无法完成的壕有了新的追求啊……
居然没有两眼放金光的老徐!
还是盗贼的奖励好啊,小软+森金,都是热门卡

我要回帖

更多关于 ds160表格填写样本 的文章

 

随机推荐