版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、Extended Learning Module J (Office 2007 Version)Implementing a Database with Microsoft AccessSOLOMON DATABASEThe steps to creating a database areDefine entity classes and primary keysDefine relationships among the entity classesDefine fields for each relation (file)Use a data definition language to
2、create the database, which is the focus of this Module SOLOMON DATABASEIn Figure J.1 (p. 2) on the following 3 slides, weve recreated the correct database structure from Extended Learning Module CRevisit Module C if you need a refresher SOLOMON DATABASESOLOMON DATABASESOLOMON DATABASECreating Solomo
3、ns DatabaseData dictionary - contains the logical structure for the informationTo create the Solomon Enterprise database:Start Microsoft AccessClick on Blank Database in the upper left corner of the screenEnter Solomon Enterprises.mdb as the database nameClick on Create Creating Solomons DatabaseCli
4、ck on Blank DatabaseEnter a database name and click on CreateCreating Solomons DatabaseOur recommendation: Create a relation (table) in Design view:Must switch from Datasheet View to Design ViewClick on View in the upper left corner and then Design ViewEnter a table nameUse the Design View to enter
5、the specifications for the table Creating Solomons DatabaseTo switch to Design View, click on View and then Design ViewThis is Design View our recommendation for creating the tables in a databaseCreating the Raw Material RelationEnter the four fields of the Raw Material relationRaw Material IDRaw Ma
6、terial NameQOHSupplier IDClick on the Raw Material ID row and then the key button to designate Raw Material ID as the primary key Creating the Raw Material RelationPrimary key identifier and the Primary key buttonIntegrity constraints for Raw Material IDCreating the Concrete Type RelationCreating th
7、e Bill of Material RelationWe created (in Extended Learning Module C) the Bill of Material relation to eliminate the many-to-many relationship between the Concrete Type and Raw Material relations Creating the Bill of Material RelationThe Bill of Material relation has a primary key composed of two fi
8、elds (composite primary key):Concrete Type Raw Material IDComposite primary key - consists of the primary key fields from the two intersecting relations Creating the Bill of Material RelationComposite primary keyDEFINING RELATIONSHIPS WITHIN SOLOMONS DATABASEThe final structural task is to define ho
9、w all the relations relate to each otherThat is, link primary and foreign keysForeign key - a primary key of one file (relation) that appears in another file (relation) Primary and Foreign Key Logical TiesDefining Relationships between RelationsTo create relationshipsClick on Database Tools in the m
10、enu area and then click on the Relationships button Make each relation appear on the palette by highlighting each relation name and clicking on AddThen click on the Close button Defining Relationships between RelationsRelationship paletteSelect tables and click on AddDefining Relationships between R
11、elationsENTERING INFORMATION INTO SOLOMONS DATABASETo enter information, you simply double-click on the appropriate relation nameSupplier relation structureEntering InformationReferential IntegrityReferential integrity ensures consistency. For example, that you dont put a non-existent Supplier ID in
12、to the Raw Material relationThe relationships we set up for referential integrity guard against bad informationIntegrity constraints rules that help ensure the quality of the information Enforcing Referential IntegrityChange the Structure of a RelationClick on View and then Design View and make the
13、necessary changesCREATING A SIMPLE QUERY USING ONE RELATIONQuery-by-example (QBE) tool - helps you graphically design the answer to a question Suppose we wanted to see a list of raw materials that showsRaw Material NameSupplier ID Creating a Simple Query Using the Raw Material RelationFirst, click o
14、n Create and then Query DesignSecond, select the table, click on Add, and then close the box.Creating a Simple Query Using the Raw Material RelationThe result of the queryDrag and drop the appropriate field names and then click on the exclamation point (Run).Creating a Simple Query with a ConditionS
15、et the condition hereCREATING AN ADVANCED QUERY USING MORE THAN ONE RELATIONSuppose we want a query that showsAll order numbersDate of ordersWhere the goods were deliveredThe contact personThe truck involved in each deliveryThe truck driver in each delivery Steps to Create an Advanced QueryClick on
16、Create in the menu area and then Query DesignIn the Show Table dialog boxSelect and Add the relation names Close the Show Table dialog box Tables linked appear are joined by lines with 1 beside the table with the primary keyThe infinity sign by the table with the foreign key Steps to Create an Advan
17、ced QueryDrag and drop the fields that you want from the appropriate relation into the QBE grid in the order that you want Click on the exclamation point (Run) in the button bar to see the results of the query Steps to Create an Advanced QuerySteps to Create an Advanced QuerySteps to Create an Advan
18、ced QueryGENERATING A SIMPLE REPORTClick on Create in the menu area and then the Report Wizard buttonChoose tables and/or queries: Lets you choose which table/query you wantChoose fields: Lets you choose the fields you want Grouping, Sorting, Layout of ReportGrouping: Lets you specify grouping of in
19、formation (we chose the default)Sorting: Allows you to specify sorting (we chose the default)Layout and orientation: Allows you to select layout and page orientation (we chose the default) Style and Header of ReportStyle: Allows you to choose from among predefined report styles (we chose the default
20、)Report header: Allows us to enter a title for the report. The Report: Shows all customers and phone numbers. Choose Table/Query and Fields1. Start to create a report2. Choose tables and/or queriesChoose Table/Query and Fields3. Choose fields4. GroupingGrouping, Sorting, Layout, Style, and Title5. S
21、orting6. Layout and orientationGrouping, Sorting, Layout, Style, and Title7. Style8. Report HeaderGrouping, Sorting, Layout, Style, and TitleREPORT WITH GROUPING, SORTING, AND TOTALSSay we want to create the Supply Chain Management report from Extended Learning Module CFirst, create a queryThen, put
22、 the query into the report generator Steps for Creating a Report with Grouping, Sorting, and TotalsClick on Create in the menu area and click on the Report Wizard buttonChoose tables/queries: Query: Supply Chain QueryChoose fields: Select all fields by clicking on the double greater-than sign () Spe
23、cify Table/Query FieldsGrouping and Sorting Information Top-level grouping: Allows you to choose ordering. Since we created a query, Access has defaulted to the first fieldFurther grouping: Lets you specify groups within the top grouping of Concrete Type, but we dont want any further groupingSorting
24、: Next we have a chance to sort our information Steps for Grouping InformationSteps for Sorting InformationTotaling Information in a ReportTotaling: The sorting screen also has a Summary Options buttonWithin Summary Options you can choose what type of summary you want Totaling Information in a ReportFormatting the ReportOverall structure of re
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年度專業(yè)項目協(xié)議范例集錦
- 保安員2024專屬勞動協(xié)議范本
- 《聽聽聲音》課件教學(xué)實踐
- 南京信息工程大學(xué)《政治學(xué)專題研究》2021-2022學(xué)年第一學(xué)期期末試卷
- 保育員政治業(yè)務(wù)工作計劃
- 企業(yè)單位招標(biāo)合同工作職責(zé)
- 制糖產(chǎn)品市場品牌推廣策略考核試卷
- 2024年VB程序設(shè)計課程教案:塑造編程未來
- 2024年全民(燃?xì)馐褂冒踩碍h(huán)保)知識應(yīng)知應(yīng)會考試題庫與答案
- 城市社區(qū)中心公共設(shè)施管理考核試卷
- 第8講+隋唐的文化
- 管網(wǎng)設(shè)計分析報告
- 珍愛生命拒絕危險游戲
- 高中數(shù)學(xué)教師的專業(yè)發(fā)展路徑
- 《地球是怎樣形成的》課件
- 建筑機(jī)電系統(tǒng)全過程調(diào)試技術(shù)及工藝
- 六西格瑪之控制階段詳解
- 《領(lǐng)導(dǎo)梯隊:全面打造領(lǐng)導(dǎo)力驅(qū)動型公司》解讀
- 護(hù)理質(zhì)量安全與風(fēng)險管理的案例分析
- 工程流體力學(xué)課后習(xí)題答案-(杜廣生)
- AI智能客服應(yīng)用實踐
評論
0/150
提交評論