最新更新

工作備忘錄
紀錄這一次所寫的SQL語法以及Excel Vlookup注意事項
About Excel Function
Vlookup所選擇的Table Array不能超過65536免得底下的資料會變成#N/A

About SQL
#1
select a.dept_key,sum(convert(int,session))
from
(
select session,left(dept_no,2) as dept_key,dept_no from token_usage
where dept_no <> '#N/A'
)as a
group by a.dept_key
需注意欄位的屬性,免得無法總計欄位中的數值
#2
select a.Dep_key,sum(a.token)
from
(
select left(Dept_No, 2) as Dep_key,Dept_no,Count(*) as token
from token_asset
where ID_NO <> 'null' and Dept_No <> 'null'
group by Dept_No
) as a group by a.Dep_key

Long-term plan:
1.Reporting by Schedule
2.auto send report to director level
3.constructing......

Posted by rayting at 痞客邦 PIXNET Comments(1) Trackback(0) Hits(87)

open trackbacks list Trackbacks (0)

Comments (1)

Post Comment
  • 訂作一個夢想中的自己!

    你給自己打幾分呢?
    覺得自己身材不夠好嗎?
    覺得自己的皮膚不夠好?
    你相信自己可以與眾不同嗎?
    形象顧問免費依照你的需求設計美麗計畫,
    即刻上網報名 http://fantalife.okk.tw
  • 謝謝
    詢問免費,我更期望計畫也是免費的
    計畫包含規劃、執行、驗收
    不含付款^^

    raytingreplied on 2008/09/17 09:27

Comment Permissions: Allow commenting

Leave Comment

*Name/Nickname
E-mail
Personal Website
Comment Title
*Comment
* Private Comment