freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

酒店住宿及消費管理系統(tǒng)概述(參考版)

2025-06-21 02:32本頁面
  

【正文】 報告評分:X 指導教師簽字:XXX。以上心得體會是小組所有成員共同交流所得。在本課程設計中,我們一直是共同完成,并在一些小的細節(jié)上進行一定的任務分配,這一次合作的很愉快且較為高效,在整個過程中,我們不斷的發(fā)現(xiàn)問題,提出問題,并及時交流心得,共同尋找解決問題的方案。在最后的物理設計中,問題較少,較之前做出了進一步的完善。在這個過程中,由于我們對酒店管理系統(tǒng)并不十分了解,在進行業(yè)務流程圖和ER圖的繪制時出現(xiàn)了不少的問題,最終我們小組克服了困難,做出了初步的需求分析和概念模型設計。我們首先計劃了酒店入住及消費管理系統(tǒng),通過查找大量資料以及詢問專業(yè)人士,確定了基本框架,在抽絲剝繭后,我們畫出了本課程設計所需要的業(yè)務流程圖,并分析業(yè)務流程圖畫出數(shù)據(jù)流圖。)rollbackEnduse 酒店住宿及消費管理數(shù)據(jù)庫 go create trigger trigdays2on Check_inafter insert,updateasif exists(select days_2from Check_in where days_27)Begin print(‘入住單天數(shù)一次不可超過7天’)rollback六、課程設計總結(jié)及心得體會:數(shù)據(jù)庫的建立過程是一個結(jié)構(gòu)化的方法,也就是說技術要一步步實施,要從過程中分離數(shù)據(jù)。use 酒店住宿及消費管理數(shù)據(jù)庫go create trigger trig_Roomon Roominfofor insert, update as if exists(select count(*)from RoomInfo having COUNT(*)16)begin Print(39。where Rno=39。update RoomInfoset Rtype=39。deletefrom OtherCwhere OtherC_price20修改語句:update RoomTypeset Rprice=998where Rtype=39。,NULL)刪除語句:deletefrom Reservewhere Cno=39。,39。,39。,39。,39。,360)use 酒店住宿及消費管理數(shù)據(jù)庫insert into Customer(Cno,Cname,Ctype,Csex,Ctel,Cnote)values(39。 視圖查詢5:use 酒店住宿及消費管理數(shù)據(jù)庫 select 證件號,房間號,SUM(其他消費金額) from Consumptionview group by 證件號,房間號order by sum(其他消費金額) 插入語句use 酒店住宿及消費管理數(shù)據(jù)庫insert into Roomtype (Rtype,Rprice)values(39。視圖查詢3:use 酒店住宿及消費管理數(shù)據(jù)庫 select * from Consumptionview where 其他消費金額30視圖查詢4:use 酒店住宿及消費管理數(shù)據(jù)庫 select * from Roomview where 房間類型=39。)),Primary key(CNO,Rno),constraint RE_k1 foreign key (Rno)references RoomInfo(Rno),constraint RE_k2 foreign key (Cno)references Customer(Cno))(6) 入住表create table Check_in(Cno char(30),Rno char(10),Sno char(20)not null,Prepay float(8),Indate date not null,Days_2 int not null,Note char(500),intime time not null,Primary key(CNO,Rno),constraint IN_k1 foreign key (Rno)references RoomInfo(Rno),constraint IN_k2 foreign key (Cno)references Customer(Cno),constraint IN_k3 foreign key (Sno)references Reception(Sno))(7) 結(jié)算表create table Fee(Cno char(30),Rno char(10),Sno char(20)not null,Rate float(8),Outdate date not null,outtime time not null,Primary key(CNO,Rno),constraint FEE_k1 foreign key (Rno)references RoomInfo(Rno),constraint FEE_k2 foreign key (Cno)references Customer(Cno),constraint FEE_k3 foreign key (Sno)references Reception(Sno))(8)其他消費表create table OtherC(Cno char(30) ,Rno char(10), Sno char(20)not null,OtherC_date Date not null,OtherC_time time not null,OtherC_name char(20) not null,OtherC_price float(8) not null,Primary key(CNO,Rno,OtherC_date,OtherC_time),constraint OC_k1 foreign key (Rno)references RoomInfo(Rno),constraint OC_k2 foreign key (Cno)references Customer(Cno),constraint OC_k3 foreign key (Sno)references Reception(Sno))3. 建立測試初始數(shù)據(jù) (1)Roomtype(2) RoomInfo(3) 顧客表(4) 前臺表(5) 預訂表(6) 入住表(7) 結(jié)算表(8) 其他消費表 建立房間視圖create view Roomview(房間號,房間名稱,房間類型,房價,房間位置,房間備注)as select Rno,Rname,Rprice,Rpostion,Rnotefrom RoomInfo,Roomtype where = and Rprice=8002. 建立消費視圖create view Consumptionview1(證件號,房間號,折扣率,其他消費日期,其他消費時間,其他消費名稱,其他消費金額,折扣后其他消費金額)as select ,*from Fee,OtherCwhere = AND =視圖查詢1:use 酒店住宿及消費管理數(shù)據(jù)庫 select 房間號,房價 from Roomview where 房價=400視圖查詢2:use 酒店住宿及消費管理數(shù)據(jù)庫 select 證件號,房間號,其他消費時間,折扣后其他消費金額 from Consumptionview
點擊復制文檔內(nèi)容
試題試卷相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1