Sept 2001 cylauFoxpro Chapter 41 Chapter 4 Accessing Database Tables.

Slides:



Advertisements
Similar presentations
Browse the codebook - to see the list of variables on which you can do statistics select the “Browse codebook in this window” option and then click “Start”
Advertisements

Citavi – Adding References – Articles from EBSCOhost Databases
1 After completing this lesson, you will be able to: Create a database. Create a table using the Table Wizard. Create and modify a table in Design view.
Importing and linking through Access Please use speaker notes for additional information!
Online Search Mehdi Osooli M.S.C in Epidemiology Department of Epidemiology & Biostatistics School of Public Health Tehran University of Medical Sciences.
Student Manager Catalog Builder An ACEware Webinar.
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
Access Lesson 2 Creating a Database
Chapter 6: Pivot Tables Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
4.3 Searching for Patient Information 4-12 Medisoft offers two options for conducting searches for information: 1.Search for and Field boxes 2.Locate buttons.
Chapter 12: Using ADO.NET 2.0 Programming with Microsoft Visual Basic 2005, Third Edition.
Access Tutorial 3 Maintaining and Querying a Database
Access Tutorial 1 Creating a Database
European Computer Driving Licence
1 CA202 Spreadsheet Application Creating Dynamic Lists with PivotTables Lecture # 9.
Overview Importing text files Creating Forms Creating Reports.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
Using Microsoft Word’s Mail Merge Features Lunch and Learn: March 15, 2005.
Chapter 3 Maintaining a Database
Introducing Access Lesson 1. Objectives Start Access and explore the Database window Explore database objects Enter, edit, and delete records in a datasheet.
Interacting with Databases Chapter 10. VB and Databases u It is often useful to have a VB program access data stored in a file other than a text file.
Chapter 1 Databases and Database Objects: An Introduction
Oct 2001 cylauFoxpro Chapter 91 Chapter 9 SQL Structural Query Language.
Sept 2001 cylauFoxpro Chapter 61 Chapter 6 Searching Records in a Table.
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
Chapter 6 Generating Form Letters, Mailing Labels, and a Directory
Introduction To Microsoft Word C Apply intermediate skills in utilizing word processing software Word processing programs make the writing process.
Exploring Microsoft Access 97 Chapter 1 Introduction to Microsoft Access: What Is A Database? Office graphic copyright by Microsoft Corp.
1 By: Nour Hilal. Microsoft Access is a database software where data is stored in one or more Tables. A Database is a group of related Tables. Access.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
Chapter 17 Creating a Database.
Access Manual 2 By Dhawala Kovuri Elham S.Khorasani Ismail Guneydas.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
Oct 2001 cylauFoxpro Chapter 71 Chapter 7 Multiple Tables.
Visual FoxPro Ch5 by CHANG YU 1 Chapter Five Index and Search The concept of index. Create, open and close index file. Type of index files. Set the master.
Copyright 2002, Paradigm Publishing Inc. CHAPTER 12 BACKNEXTEND 12-1 LINKS TO OBJECTIVES Mail Merge Concepts Mail Merge Concepts Mail Merge Wizard Mail.
1 Revision on Foxpro Commands Print command (?) e.g.? 6/2 * 3 9 SET DECIMAL TO integer e.g.SET DECIMAL TO 4 ? 2 / SET( ) function e.g.? SET (‘DECIMAL’)
A Guide to MySQL 3. 2 Introduction  Structured Query Language (SQL): Popular and widely used language for retrieving and manipulating database data Developed.
Unit 5, Lesson 1 Working with Databases. Objectives Identify the parts of the Access screen. Identify the parts of the Access screen. Understand the purpose.
1 After completing this lesson, you will be able to: Change the format of a table. Sort records in a table. Find records in a table Use filters with a.
XP Chapter 2 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Building The Database Chapter 2 “It is only the farmer.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
® Microsoft Office 2013 Access Maintaining and Querying a Database.
Access Forms and Queries. Entering Data in Your Table  You can add data to your table in Datasheet view, by typing in the columns and rows.  This.
Microsoft Office 2003: Advanced 1 ADVANCED MICROSOFT ACCESS Lesson 10 – Analyzing Data.
What are queries? Queries are a way of searching for and compiling data from one or more tables. Running a query is like asking a detailed question of.
Visual FoxPro Ch2 By CHANG YU1 Chapter Two Database Management Part one Database definition Record and Field Type of columns Expression.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Chapter 24 I’m Suffering from Information Overload (Access Databases) Clearly Visual Basic: Programming with Visual Basic nd Edition.
CPSC 203 Introduction to Computers T97 By Jie (Jeff) Gao.
THE C PROGRAMMING ENVIRONMENT. Four parts of C environment  Main menu  Editor status line and edit window  Compiler message window  “Hot Keys” quick.
10.1Retrieving a Database File – In the last chapter, we have created a database file and several tables for that database. – In order to view and modify.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
1 Working with MS SQL Server Beginning ASP.NET in C# and VB Chapter 12.
Chapter 28. Copyright 2003, Paradigm Publishing Inc. CHAPTER 28 BACKNEXTEND 28-2 LINKS TO OBJECTIVES Table Calculations Table Properties Fields in a Table.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
ACCESS CHAPTER 2 Introduction to ACCESS Learning Objectives: Understand ACCESS icons. Use ACCESS objects, including tables, queries, forms, and reports.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
Access Maintaining and Querying a Database
Practical Office 2007 Chapter 10
Access Tutorial 3 Maintaining and Querying a Database
Tips for Importing References from
Updating Records in a Table
Chapter 1 Databases and Database Objects: An Introduction
Grauer and Barber Series Microsoft Access Chapter One
Tutorial 8 Sharing, Integrating, and Analyzing Data
Browse the codebook - to see the list of variables on which you can do statistics select the “Browse codebook in this window” option and then click “Start”
Presentation transcript:

Sept 2001 cylauFoxpro Chapter 41 Chapter 4 Accessing Database Tables

Sept 2001 cylauFoxpro Chapter 42 Create a table zFields in Visual FoxPro yCharacter(254 bytes) yNumeric/Float(20 bytes) yDate/DateTime(8 bytes/8 bytes) yInteger(4 bytes) yLogical(1 byte) yCurrency(8 bytes) yMemo(4 bytes + unlimited)

Sept 2001 cylauFoxpro Chapter 43 USE and CLOSE zUSE file1&& file1 is used zUSE file2&& file2 is used, file1 closed zUSE&& file2 is closed zCLOSE DATABASES&& close all files note: you may open 2 or more files at the same time see chapter 7

Sept 2001 cylauFoxpro Chapter 44 MODIFY STRUCTURE zFields in a table can be modified using the MODIFY STRUCTURE Command yAdding new fields yDeleting existing fields yChanging name, type or length of fields zData in the table may be lost if you ydelete a column ychange the type of a column zWhat about change name or length?

Sept 2001 cylauFoxpro Chapter 45 How to Recover the Original File? zSave File1 for the first time File1.dbf zWhen File1 is revised and saved File1.bak (original) and File1.dbf (revised) zWhen File1 is revised and saved again File1.bak (original) and File1.dbf (revised)  COPY FILE File1.bak TO File1.dbf

Sept 2001 cylauFoxpro Chapter 46 SET DEFAULT TO zSET DEFAULT TO c:\aFox yFiles will be searched under this directory (c:\aFox) yNewly created files will be placed here (c:\aFox) zSET PATH TO a:\ yFiles not found in c:\aFox will be searched under the directory specified by the path (a:\) zSET PATH TO u:\student\olc06145 yWhere will newly created files be saved? yWhat about original file?

Sept 2001 cylauFoxpro Chapter 47 LIST, BROWSE, EDIT... zLIST&& all records and fields zSET FIELDS TO yrestrict columns to be displayed zSET FILTER TO yrestrict rows to be displayed zLIST/BROWSE/EDIT FIELDS … FOR … yFIELDS - restrict columns to be displayed yFOR - restrict rows to be displayed

Sept 2001 cylauFoxpro Chapter 48 Accessing a Specific Record Suppose a file has 3 records BOF EOF Let Rptr = record pointer zGO TOPRptr --> 1recno()=1 zGO BOTTOMRptr --> 3recno()=3 zSKIP -3Rptr --> BOFrecno()=1 not 0 zSKIPRptr --> 1recno()=1 zSKIP 3Rptr --> EOFrecno()=4 not 3

Sept 2001 cylauFoxpro Chapter 49 Useful Functions RECCOUNT() EOF() BOF() Suppose a file has 3 records BOF EOF zRECCOUNT()=3total number of records zGO TOPBOF()=.F.EOF()=.F. zGO BOTTOMBOF()=.F.EOF()=.F. zSKIP -3BOF()=.T.EOF()=.F. zSKIPBOF()=.F.EOF()=.F. zSKIP 3BOF()=.F.EOF()=.T.

Sept 2001 cylauFoxpro Chapter 410 Accessing the Memo Field zDouble click the “memo” field of a record zA text editing window will appear zPress Control-W to close the window

Sept 2001 cylauFoxpro Chapter 411 Displaying Contents of a Record ClassName 7AChan 7SWong GO BOTTOM ?Name&& Wong ?Name=‘Cheung’&& a variable ?Name&& Wong ?m->Name&& Cheung

Sept 2001 cylauFoxpro Chapter 412 Exercise zP.121 yQ.1, Q.2, Q.3, Q.4 zP.122 yQ.11 zP.123 yQ.13 zP.124 yQ.15