Create a two dimensional table in Acess

Hi,
I am working with a database and the toolkit "the database connectivity tooset". I know how to create a new table from labview, but is it possible to create a "two dimensional" table from labview, i.e, where one table in Microsoft Access is linked to another one. I know how to do it in access, but it should be possible in program to crate a new table and this one has to be linked to another one then, just like the others. Does someone know how to do it??
Thank you!

Hi
I assume you are not so familiar with databases, are you?
First I want to comment your previous post:
well I have a table for a product that contains, say different data for the product, i.e. the date of the test, who is responsible for the test, where it was performed. Also, linked to the date (I guess it is the primary key), there are also some data related. so in my table in the database, next to the date, there is a "+"-sign, so I can open up the page of all the data related to the date.
Well, did you create this database on your own? So you must have created two tables (table one with fields Datum, Responsible & Cost and table two with fields Place1, Place2, Place3 & Place4). Then you must have dragged on field from one table to another field in the other table in the "Relations" view of access. Doing so, you created a relation. Due to this, access now knows how this date is related and displays the "+"-sign. You can not assume that the date is the primary key.
In fact you do not have a "2D" table, but just different datasets from two tables connected to each other. This connection is created by relations.
So, if I know would like to create a new table in my program (each product has its own table, so a new product=a new table), I would also like to create this "data" sheet that is connected to the data. Bu how do I do that?
I can easily just create a new table (i.e. a new product), just using the "DB Tools Create Table.vi". But I guess it is when I actually want to add the data to the database, where I create the "data" sheet? Using the "DB Tools Execute Query" and a SQL statement with INSERT INTO, is that the way to go?
As mentioned before, this "datasheet" is just a dataset from a second table which is made displayable by the relation. So if you're question is "how to create a relation using LV", you are quite on the right way. First create two tables one of which has to contain a field where the primary key from the other table is linked to. Then you have to set a PK in one table (using SQL statements) and then build the relation (also using SQL statements). I can't tell you, if you have to define the foreign key in the second table too.
Have a look at the MS-Access help on how to assign relations and how to define primary keys. There may be something to take care off. Basically standard SQL should do - but using MS you never know .
As this is somehow complicated, I always create the database structure in MS Access and that's it - afterwards all is done programatically (write and read data). Usually I don't open the database again with Access unless there is a special task.
Hope this helps you a little bit otherwise come and ask again.
Thomas
Using LV8.0
Don't be afraid to rate a good answer...

Similar Messages

  • Creating a Two Dimensional Array in Xcode and populating it with a values f

    Whats the easiest way to declare a two dimensional array in Xcode. I am reading an matrix of numbers from a text file from a website and want to take the data and place it into a 3x3 matrix.
    Once I read the URL into a string, I create an NSArray and use the componentsSeparatedByString method to strip of the carriage return line feed and create each individual row. I then get the count of the number of lines in the new array to get the individual values at each row. This will give mw an array with a string of characters, not a row of three individual values. I just need to be able to take these values and create a two dimensional array.

    I'm afraid you are in the wrong place. Look here for the last two forums on programming. However, XCode support is mostly found at developer.apple.com. You can access their forums by registering. Registration is free.

  • Two dimensional table

    Hi all,
    I need to know about two dimensional structure in pl/sql?
    And how many level of sub queries are optimum for a query?

    Note the name of this forum is SQL Developer *(Not for general SQL/PLSQL questions)* (so for issues with the SQL Developer tool). Please post these questions under the dedicated SQL And PL/SQL forum.
    Regards,
    K.

  • How many heirachies can be created using one dimensional table

    Hi,
    I have one dimension table and one fact table, how many heirachies can be created, is it only one?
    Thank you.

    Hi,
    One dimension can have only one hierrarchy for sure.But create dimension in a such a way(columns should be included in one dimension,example: Year and FYear in Time Dimension) that we can create two branches on Total level.
    Refer this blog..Will solve your doubt....http://gerardnico.com/wiki/dat/obiee/hierarchy#defining_multiple_hierarchies_for_the_same_dimension_logical_table
    Regards,
    Srikanth
    http://bintelligencegroup.wordpress.com

  • I am unable to create my two dimensional objects

    suppose if
    class MyObject
    int i;
    MyObject [][]o;
    how to create this kind of objects
    pls help me for this

    why don't you try answering the question? I'm pretty sure the OP just posted a generic example that is not supposed to compile okay, '.....' is also an invalid keyword.
    OP:
    google is your friend. Just search for "java 2d array" and you'll get plenty of answers.

  • Creating one and two Dimensional array

    Hi guys my problem is as follows
    (1)I want to create a two dimensional array of 10 rows and 20 columns
    (2)Populate the array with random integers
    (3)convert the two dimensinal array into one dimensional array int[]nums
    (4)print the content of one and two dimensional arrays to the screen

    You don't learn much about coding if you don't write any code. Without seeing the code that was written it's very difficult to assist a person, since your solution may not be anywhere close to their solution. If the poster just wants the code to hand in or use as is then there is no learning happening.
    So, step 1 - post your code, step 1a - ask a clear question.
    Just my opinions
    Lee

  • How to create an Object array(two dimensional) from a properties file..

    Hi All..
    I have a typical problem..
    I have a properties file with key/value pairs . Now what I want to do is.. I need to read all the keys and the values corresponding to that keys and then create a two dimensional array.. Like..
    Properties props;
    Object[][] contents;
    My contents should be like
    contents = {{key1,value1},{key2,value2},{key3,value3},...};
    Can someone tell me how to do this.. asap...
    TIA
    CK

    Just because something is difficult for you does not qualify it as an "Advance Language Topic"... And it certainly doesn't allow you to multi-post.

  • Formatting a two-dimensional list...

    Is there a way to create a two-dimensional ArrayList of Integers with all cells containing certain values, for example zeros? -I will be storing changing Integer values in certain x- and y-coordinates!!
    Something like:
    ArrayList<ArrayList<Integer>> list = new ArrayList<ArrayList<Integer>>();But my problem is that the .get commands cause an Exception if a cell value is not set:
    list.get(x).get(y) and list.get(x).set(y,int)How could I get around the "null" values without Exceptions? Would you first replace the null values with zeros? (Or is there some other way to store such information?)

    If you want to a fill a List up with values, use java.util.Collections.fill().
    But do you really want it full of some kind of value, or do you just want to indicate "no value filled in" for a bunch of positions in the grid? What percentage of positions will not be filled in, or will be filled in with the default?
    Here's a simple sparse grid:
    public class Pair {
      final int x;
      final int y;
      public boolean equals(Object o) {
        Pair p = (Pair) o;
        return p.x == x && p.y == y;
      public int hashcode() {
        return x + y;
    public class SparseGrid {
      private Map<Pair, Integer> grid = new HashMap<Pair, Integer>();
      public Integer get(Pair p) {
        Integer i = grid.get(p);
        if (i == null)
          return 42; // the default.  or just skip this test if you don't want a default
        return i;
      // also a put method, left as exercise
    }That's all untested.

  • Lgical table from two physical table

    Hi,
    I am trying to design a logical fact table from two physical table. One table has transaction data and another has accounting data. The requirement is, I need to merge the rows between these two tables, where were it matches. If the keys are not matching between these two table then also I need to bring those rows from both tables as separate rows. How can i do this? Also can i have a logical table as source for my fact table.

    You'll need outer joins in your physical layer and you can drag the columns from both physical tables to a single logical table and you will see in the BMM layer it will create the two logical table sources.

  • How to create a foreign key for the table from two different tables?

    Hi All,
    I have a three table like below. In the below table SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK will be having the primary key for NAME column. The same SAMPLE_CONS3_CHECK table also having the primary key for NAME column and forieign key for SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK tables. See the below code 2
    code 1:
    CREATE TABLE SAMPLE_CONS_CHECK
            (NAME VARCHAR2(10),
            SERIES  VARCHAR2(5)
    CREATE TABLE SAMPLE_CONS2_CHECK
            (NAME  VARCHAR2(5),
             MODEL  NUMBER
    CREATE TABLE SAMPLE_CONS3_CHECK
            (NAME  VARCHAR2(5),
             MODEL_NO  NUMBER
            )code 2
    alter table SAMPLE_CONS_CHECK
    add constraint SAMPLE_CONS_CHECK_pk primary key (NAME)
    alter table SAMPLE_CONS2_CHECK
    add constraint SAMPLE_CONS2_CHECK_pk primary key (NAME)
    alter table SAMPLE_CONS3_CHECK
    add constraint SAMPLE_CONS3_CHECK_pk primary key (NAME)
    ALTER TABLE SAMPLE_CONS3_CHECK ADD
    CONSTRAINT SAMPLE_CONS3_CHECK_FK1 FOREIGN KEY
         NAME
    ) REFERENCES SAMPLE_CONS_CHECK
        NAME
    ) ON DELETE CASCADE;
    ALTER TABLE SAMPLE_CONS3_CHECK ADD
    CONSTRAINT SAMPLE_CONS3_CHECK_FK2 FOREIGN KEY
         NAME
    ) REFERENCES SAMPLE_CONS2_CHECK
        NAME
    ) ON DELETE CASCADE;From the above schenario i am able to insert the data to SAMPLE_CONS3_CHECK table. But the parent data is already available in the parent table. The problem is here two different constarints from two different tables. While inserting, it is checking from both the tables whether the parent is exist or not.
    How can i solve this problem? Can anyone halp me about this?
    Thanks
    Edited by: orasuriya on Aug 8, 2009 2:02 AM

    Actually the design is completely incorrect.
    What you say is
    I have
    'foo', 'foo series'
    'foo','foo model'
    'foo',666
    By virtue of table3 referring to both table1 and table2.
    This means you actually need to have 1 (one) table:
    'foo','foo series','foo model', 666
    And the 'problem' disappears.
    Sybrand Bakker
    Senior Oracle DBA

  • Can we create a hierarchy based on two logical table in 10g RPD

    Hi,
    I have a question, please give me some clarity, about creating hierarchy,
    I know we can create a hierarchy based on one logical table which is form by two physical table...
    Can we create a hierarchy based on two logical table? If yes, and how?
    Thanks in advance!
    anne

    Use preffered drill paths...
    -suman

  • How to create a ROLAP Cube that has two fact tables.

    I want to know if it is possible to create a ROLAP Cube with two fact tables.
    Suppose that I have these two star schemas:
    The first star schema has only a measure and a time dimension. The time dimension has three levels (Year -> Month -> Day)
    The second star schema has the same measure of the first schema and a time dimension. In this schema the time dimension has only two levels (Year -> Month). The values of the measure of this schema come from the first schema, this is, the value of the measure for a defined year and month results of the sum of all fact values of the first schema, that have the same year and month.
    I want to know if is possible to create a ROLAP cube that can get the information of the two star schemas, according to the level that the user are consulting.
    For example, if the user consults the cube with "OracleBI Spreadsheet Add-In", and if the user is consulting the first two levels (Year and Month), then the ROLAP cube would get the information of the second star schema.
    But if the user does a drill down in a month to get information of the days, then the ROLAP cube would get the information of the first star schema.
    Is it possible to do this?
    Regards,
    Rui Torres

    I'm not exactly sure what you want to do. Sorry if I get this wrong.
    You have two fact tables, one with data values at the day, month and year levels and a second fact table with data values at just the month and year levels. If this is the case, in the CWM2 APIs or OWB Paris, you would create a view that joins the two tables together and then map this view to the ROLAP cube.
    For CWM2 details, please refer to the Oracle OLAP Reference.

  • Create Lookup[Taxonomy] field for same taxonomy in two main tables

    In MDM 7.1 SP03, 
    1) We have two main tables MTable1 and MTable2 in repository
    2) One Taxonomy table Taxo1
    3) In MTable1, Created a Lookup[Taxonomy] field for Taxo1 table
    4) In MTable2, not able to create Lookup[Taxonomy] field for Taxo1
    table.
    Why is it not allowed to use Lookup[Taxonomy] in multiple main tables?
    Thanks,
    Rajesh
    Edited by: Rajesh Penagalapati on Nov 12, 2009 4:53 AM
    Edited by: Rajesh Penagalapati on Nov 12, 2009 4:54 AM

    Hi,
    Thats a limitation .Multiple Main tables cannnot share  the same Taxonomy table.
    You can refer the features of MDM 7.1 at
    http://help.sap.com/saphelp_nwmdm71/helpdata/en/43/D7AED5058201B4E10000000A11466F/frameset.htm
    Regards
    Nisha

  • Creating BAM report using data of two database tables. Say "EmployeeTable" and "DepartmentTable

    I want to populate data from two database tables into a BAM report. I have created two data objects for the tables and want to create 3rd data object so that it can take the data from the other data objects automatically. Is there any such facility within BAM?

    Hi
    1. I am not sure if you have option to combine multiple DataObjects like that.
    2. For your scenario, on Database side itself, I would recommend Create a VIEW that joins these 2 Tables and pull the required Columns and add required conditions. Verify the VIEW has all the rows expected.
    3. Then create DataObject for this View. Once you have DataObject, create the Report.
    Thanks
    Ravi Jegga

  • Two dimensional Grouping

    Hi 2 all,
    I'm trying to build a report starting from two complex PL/SQL query like this(simplified):
    SELECT SUM(x),SUM(y),SUM(z),Name,type,product
    FROM DESC A, STORE1 B, STORE2 C, store3 D, store4 E
    WHERE b.ID=c.ID(+)
    AND b.ID=d.ID(+)
    AND b.ID=e.ID(+)
    AND a.code=b.code
    AND a.product='oneproduct'(...another query with !='oneproduct')
    group by b.Name,b.type
    I need to have on each report page the results of the two queries grouped by type, one page for each (Name).
    how can I have the content of Name field on the header/margin (as a title) and the remainder data below grouped by the same Name?
    =&gt; In the end I should have one page for each Name
    thanks
    Matteo

    On the other hand I do recall having read somewhere
    that the "new" operator
    is very costly and should strictly be
    avoided in loops.Not that expensive performance-wise. It could potentially suck up a lot of memory if you are creating LOTS of objects
    Now for the concrete case of reading some user's
    datasets from a database
    and then processing them further, is it advisable
    to instantiate a new user object for each row, or
    where is the alternative
    to be found?I think you should create an object to represent each row.
    two dimensional collections (any favourites in java)I always create my own. I try to use Vectors and Hashtables exclusively, depending on my needs re: ordering and lookup. Mixing and matching these could result in Vectors of Hashtables, Vectors of Vectors, Hashtables of Vectors, and Hashtables of Hashtables.
    synchronized one dimensional collections each
    representing one field in a
    table ? (is this really more performant than simple
    classes)Doubtful - any gain that you get by avoiding the constructor call would be obviated by the overhead of iterating through multiple lists and keeping them synchronized.
    a Collection of Collections (here comes the new
    operator again)Same as two-dimensional collections.
    I remember having seen inner classes used for the
    purpose of holding just a
    couple of attributes, is there some performance
    advantage like "the class
    loader does not have to look for the class".No advantage - the only reason to create an inner class is to prevent other classes from using those objects. The inner class still compiles to a separate class object that needs to be loaded separately.

Maybe you are looking for

  • How Can I Enable "Creative S/W Synth" in Windows

    I have a "Sound Balster Li've! 5." sound card and I'm using Windows XP. When I was using Windows ME before, the MIDI output devices that were available in WinME were:- A: SB Li've! MIDI Synth2- B: SB Li've! MIDI Synth3- Creative S/W Synth4- MIDI Mapp

  • How to change moving average price with movement type 501

    Hi Gurus,                      Our client procures stock item with P-Card and use the movement type 501 to receive into the stock. The value of these items are updated with the moving average price, most of the time the current purchase price is diff

  • Auto updated from 7.1 to 7.2 now it wont open OS X

    did an auto update this morning for various applications that were available and now neither itunes or quick time will even load up. please help

  • International characters getting mangled

    Hi all, All of this character set stuff is new to me. I have the following bit of code which, when it encounters a non-english character, substitutes with a question mark. For example, the spanish �. The data comes from an XML file which, when opened

  • More than one line in a JToolTip

    Hi, Is it possible to have more than one line in a JToolTip? I think I've seen it done with HTML but I cant remember. I did a search but no luck. Can anyone help? Cheers, Jim