當前位置:工程項目OA系統(tǒng) > 學校OA管理系統(tǒng) > 相關(guān)系統(tǒng) > 培訓管理系統(tǒng)
應用篇--增加學員生日提醒
Select
StudentID as 學號,
StudentName as 姓名
from Student
where Birthday is not null
and Datepart(month, Birthday) = Datepart(month, getdate())
and Datepart(day, Birthday) = Datepart(day, getdate())
這個查詢是針對sql數(shù)據(jù)庫版的。
然后就可以增加提醒了,在系統(tǒng)-系統(tǒng)提醒-新建,按下圖所示把語法填寫好:
完整的語法:
標 題:生日提醒
提示消息:今天有{0}名學員過生日了
數(shù)量查詢:
Select
Count(*)
from Student
where Birthday is not null
and DATEPART(month, Birthday) = DATEPART(month, getdate())
and DATEPART(day, Birthday) = DATEPART(day, getdate())
展開查詢:
Select
StudentID as 學號,
StudentName as 姓名
from Student
where Birthday is not null
and DATEPART(month, Birthday) = DATEPART(month, getdate())
and DATEPART(day, Birthday) = DATEPART(day, getdate())
這里需要注意的是:
1.提示消息:今天有{0}名學員過生日了 ,括號里的是數(shù)字零。
2.數(shù)量查詢和展開查詢略有區(qū)別。
這樣在系統(tǒng)首頁,我們就可以看到提醒了。
上面講的是sql數(shù)據(jù)庫版的語法,Access數(shù)據(jù)庫版語法只需要改動兩個參數(shù)即可,如下圖:
完整的語法:
標 題:生日提醒
提示消息:今天有{0}名學員過生日了
數(shù)量查詢:
Select
Count(*)
from Student
where Birthday is not null
and DATEPART('M', Birthday) = DATEPART('M', now())
and DATEPART('d', Birthday) = DATEPART('d', now())
展開查詢:
Select
StudentID as 學號,
StudentName as 姓名
from Student
where Birthday is not null
and DATEPART('M', Birthday) = DATEPART('M', now())
and DATEPART('d', Birthday) = DATEPART('d', now())
- 1IBM導師制 資深老人帶新人
- 2企業(yè)年度預算那點事
- 3開發(fā)篇--讓收據(jù)顯示欠費金額
- 4如何向上司提建議并受器重?
- 5中小企業(yè)渠道管理面臨的難題
- 6怎樣使員工對于企業(yè)更忠誠
- 7職場的十大“潛規(guī)則”
- 8為什么價值觀落不了地?
- 9如何決定培訓評估的深度
- 10培訓管理系統(tǒng)V5.0.5升級說明
- 11康佳集團新員工入職培訓
- 12一分為三說考核
- 13顧問工作臺“混合模式”重要更新
- 14職場容易退化的五大能力,你有嗎
- 15史上最牛調(diào)動員工積極性秘笈
- 16中層管理者才是員工培訓的第一責任人
- 17應用篇--SWT2.0 Access版的數(shù)據(jù)備份與恢復
- 18企業(yè)職業(yè)培訓的實施方略
- 19讓培訓費不再承受之貴
- 20企業(yè)與員工的發(fā)展需要高效的培訓
- 21企業(yè)培訓效果評估的相關(guān)問題
- 22企業(yè)員工培訓與發(fā)展
- 23理解80后,多給80后鼓掌
- 24教你如何打造區(qū)域強勢品牌
- 25中小企業(yè)培訓規(guī)劃面臨的困境
- 26企業(yè)培訓應注重實效性
- 27企業(yè)需要更為關(guān)注新員工
- 28摩托羅拉的人才培養(yǎng)之道
- 29有的放矢做好新職工上崗前的培訓工作
- 30如何最大化打造員工忠誠度
成都公司:成都市成華區(qū)建設(shè)南路160號1層9號
重慶公司:重慶市江北區(qū)紅旗河溝華創(chuàng)商務(wù)大廈18樓