home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / dbase / acessq_a.zip / WX0635.TXT < prev    next >
Text File  |  1992-10-12  |  7KB  |  134 lines

  1. ======================================================================
  2.   Microsoft(R) Product Support Services Application Note (Text File)
  3.             WX0635: DATABASE STRUCTURE QUESTIONS & ANSWERS
  4. ======================================================================
  5.                                                   Revision Date: 10/92
  6.                                                       No Disk Included
  7.  
  8. The following information applies to Microsoft Access(TM) version 1.0.
  9.  
  10.  --------------------------------------------------------------------
  11. | INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY    |
  12. | ACCOMPANY THIS DOCUMENT (collectively referred to as an            |
  13. | Application Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY      |
  14. | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO    |
  15. | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A     |
  16. | PARTICULAR PURPOSE. The user assumes the entire risk as to the     |
  17. | accuracy and the use of this Application Note. This Application    |
  18. | Note may be copied and distributed subject to the following        |
  19. | conditions: 1) All text must be copied without modification and    |
  20. | all pages must be included; 2) If software is included, all files  |
  21. | on the disk(s) must be copied without modification [the MS-DOS(R)  |
  22. | utility DISKCOPY is appropriate for this purpose]; 3) All          |
  23. | components of this Application Note must be distributed together;  |
  24. | and 4) This Application Note may not be distributed for profit.    |
  25. |                                                                    |
  26. | Copyright 1992 Microsoft Corporation. All Rights Reserved.         |
  27. | Microsoft and MS-DOS are registered trademarks and Microsoft       |
  28. | Access and Windows are trademarks of Microsoft Corporation.        |
  29. | 1-2-3 and Lotus are registered trademarks of Lotus Development     |
  30. | Corporation. Btrieve is a registered trademark of SoftCraft, Inc., |
  31. | a Novell Company. dBASE III PLUS and dBASE IV are registered       |
  32. | trademarks of Ashton-Tate Corporation. Paradox is a registered     |
  33. | trademark of Ansa Software, a Borland company.                     |
  34.  --------------------------------------------------------------------
  35.  
  36. 1. Q. What foreign data formats does Microsoft Access support?
  37.  
  38.    A. Microsoft Access can link to Btrieve(R), dBASE III PLUS(R), dBASE
  39.       IV(R), and Paradox(R) versions 3.x data, including indexes.
  40.    
  41.       Microsoft Access can import data from Btrieve, dBASE III PLUS,
  42.       dBASE IV, FoxPro versions 2.x, Lotus(R) 1-2-3(R) versions 2.x and
  43.       3.x, Lotus 1-2-3/W, Microsoft Excel for Windows versions 2.x and
  44.       later, Paradox 3.x, and fixed-length and delimited ASCII text.
  45.    
  46.       Microsoft Access also supports the Open Database Connectivity
  47.       (ODBC) specification for connectivity to data on database
  48.       servers. ODBC drivers for Microsoft SQL Server are included with
  49.       Microsoft Access. Microsoft SQL Server ODBC drivers are the only
  50.       drivers certified for Microsoft Access version 1.0.
  51.  
  52. 2. Q. What are primary and foreign keys in a relational database?
  53.  
  54.    A. Primary keys uniquely identify a specific row in a table. They
  55.       are usually composed of a single field or column whose data is
  56.       unique to each row of information (for example, a customer
  57.       identification number, employee social security number, or order
  58.       identification number). Primary keys also can be composed of more
  59.       than one field. For example, the fields Company Identification
  60.       and Contact Name could be combined to form a primary key for a
  61.       table that contains information about companies that have more
  62.       than one contact.
  63.    
  64.       Foreign keys identify rows in one table that match the primary
  65.       key of another table. For example, if the field Employee ID is
  66.       the primary key in the Employee table, in the Orders table,
  67.       Employee ID is the foreign key. The relationship between primary
  68.       and foreign keys enables you to access related data in multiple
  69.       tables.
  70.  
  71. 3. Q. Which FieldSize setting should I select for the Number data
  72.       type in order to use a Counter field of another table as the
  73.       foreign key in the current table?
  74.  
  75.    A. To use a Counter field of another table as the foreign key in the
  76.       current table, select the Long Integer setting.
  77.  
  78. 4. Q. How do you change the starting value of a Counter column to
  79.       a number other than 1?
  80.  
  81.    A. To set the starting value of a Counter column to a number other
  82.       than 1, use the following four-step procedure:
  83.       
  84.       1. Create an additional single-column temporary table. Give
  85.          the Number column the same name as the Counter column in the
  86.          original table.
  87.       
  88.       2. Create a new row in the temporary table by inserting a
  89.          value in the Number column. This value should be 1 less than
  90.          the desired starting value for the original table.
  91.       
  92.       3. Create an Append query to append the single row from the
  93.          temporary table to the original table.
  94.       
  95.       4. Once you append the single row, delete the temporary
  96.          table. You can then delete the dummy row from the original
  97.          table.
  98.         
  99.        NOTE: Do not compact the database before you add the first row
  100.        to the original table. If you do this, the counter value is
  101.        reset to start at 1.
  102.  
  103. 5. Q. Is data in tables stored in a sorted order? How can I view
  104.       my data in sorted order?
  105.  
  106.    A. Data in tables is not stored in sorted order. Data is stored in
  107.       the order in which it was entered. To view data in sorted order,
  108.       create either a query, or a form based on a query, that uses the
  109.       Sort field on the query grid. By default, if the table includes a
  110.       primary key, the Datasheet view of the table will display the
  111.       data sorted by the primary key. To view the data sorted by
  112.       something other than the primary key alone, use a query, as
  113.       previously described.
  114.  
  115. 6. Q. How can I delete the primary key from a table?
  116.  
  117.    A. You can delete the primary key for a table by opening the Table
  118.       Properties dialog box and deleting the entry for the Primary Key
  119.       field. Please note that the primary key cannot be deleted from a
  120.       table that is the primary table in a relationship.
  121.  
  122. 7. Q. How can I create computed columns in tables?
  123.  
  124.    A. You can create computed columns or expressions with queries.
  125.       Within the query, create a column that is defined as an
  126.       expression. In general, it is helpful to think of queries as
  127.       virtual tables; you can use a query wherever you can use a table.
  128.       If you're familiar with SQL terminology, this is very similar to
  129.       creating a view. Unlike most implementations of views, however,
  130.       Microsoft Access views can be updated even if they involve joins
  131.       from different data sources, such as Paradox, Btrieve, or
  132.       separate Microsoft Access data sources.
  133.  
  134.