Table I build

I create a table of 'Class' to collect information of training for my business class. Some courses are held on a single date. Others are taking place on several dates as 5/12 - 5/16. Some are held over a period of two weeks. All take place weekdays, no end of week date. How should I save this? At first I thought to put in marked fields Date1, Date2, etc., but then I had doubts that may not be the best way. Can someone give me some advice on this? I'm using CF8 and SQL Server 2000.

The areas that I have in my table of 'Class' to date are:

ClassID
VendorID
InstructorID
...



Thank you very much.

The more flexible approach would be a Class_dates table with two fields, Class_id and date. Add a record for each day racing class.

Alternatively, you can consider for maintainig an array of dates, since "working days" usually excludible holiday.

Tags: ColdFusion

Similar Questions

  • Table of Build using Pseudo-file of waiting

    I'm moving to use a queue by simply creating a table.  I writing to a write DAQmx values in a loop at 50 ms, but I won't update the chart every 50 ms (for obvious reasons).  I use a global functional for transmitting data from a slower loop to 500 ms.

    Problem is that I get that each point of the tenth.  Y at - it an easy way to build an array and pass (without overwrite or skip data) to the slower without having to queue loop?

    Thanks for the help.

    Why not use a queue?  It is by far the most effective way to do what you want.

    What you have run in with the FGV is a race condition.  They you used it, it might as well be a local variable or a global variable.  FGVs do NOT prevent the race conditions in the way that you use it.  Here's a good article about the race conditions in the field of LabVIEW log:http://labviewjournal.com/2011/08/race-conditions-and-functional-global-variables-in-labview/

  • Find a 1 d table and build a new

    Hey... im pretty new in LV.

    My 'grand' problem is:

    I have table 1 d of numbers:

    • 10
    • 10
    • 20
    • 20
    • 20
    • 10
    • 10
    • 30
    • 45
    • 10
    • 10

    and I want to build and collect numbers in new table 1 d

    Like this:

    • 10
    • 20
    • 30
    • 45

    TNX so much

    "The simplest solution is often the best.

  • Creating Tables of Builder Service

    Hello

    We have different dashboards created from services Service Builder.  These dashboards contain tables of guests in the generator service, created by dragging the host of data entry. Services | All Services | on the dashboard and selecting create a table...

    This works very well and did exactly what we want, but...

    If we add all hosts on the generator to Service, they do not appear in the table, i.e. it is not dynamic.  In order to appear, it must delete the table and create a new.

    Is it possible to have arrays dynamic, built from Service Builder and if so, how can it be done?

    Thank you

    Brian

    In fact, it seems as if they are dynamic - you will need to sign out and then sign back in again to make the change take effect.

    Brian

  • Table Vision Builder & features of the calculator

    Hello

    I have a question about VBAI. I couldn't find these features in the software and I couldn't be sure if the software did these features or not. So, I just wanted to ask here, and if these features do not exist, I'll post to the exchange of ideas of Vision.

    -When I'm on tables in VBAI, on the stage of the calculator, I don't see the results of all computations of element tab measures. Only a few of them are visible, and there is no way to scroll left and right to see the other.

    Also, when I try to use these results table on the custom recovery stage, I can only use them as a whole, without any choice of format string.

    Are there other ways to do this or not?

    I see the same behavior on my end with digital pictures. I want to play with it some more, but I will probably be filling a CAR for that.

    To work around the problem, you can convert the digital table in an array of strings. It seems that tables of channels is displayed correctly the decimal parts after the conversion. I suggest using the fractional string function number, located in the String-> String Conversion/number. This will allow you to input a table 1 d of slna and specify the precision.

  • Cascade of two functions of table build - what happens?

    I found the code indicated in the attachment in a very complex VI that I'm rehabilitated.  Could someone explain what is happening with the functions of table build "cascade".

    I see that the first function to build array built a table 1 d of integers that passes to the second function to build table that shows a table 2D of integers, but since there is no element or second input array, I don't see how it works.

    This is part of a Subvi, which is not incorporated into a loop.

    All the examples have at least two entries.  There is no option to concatenate entries with a single entry. There is an implicit operation here that I don't understand.

    If someone explain how it works?

    You're taking a scalar value and creating a table 1 d with exactly 1 element.

    So you're taking 1 d table and build in a 2D, with exactly 1 Item table.

    Since you can't concatenate something with nothing, only logical mode for the table build would be to build in a table of the next larger size.

    You could add a third, then you'd have a table 3D with exactly 1 element.  And so on.

  • Simply extract the unique rows in table 2d

    Hello, I'm sorry for my English. I have a chart 2D with thousends of rows and 2 columns. I want to extract only the unique rows in the table. So I need to exclude all lines have that / which (?) duplicate (s) and exclude the duplicate (s) too.

    Simple example:

    Input array:


    0 0 ---> single

    0 1 ---> D1

    1 0 ---> single

    1 1 ---> D1

    0 1 ---> D2

    2 0 ---> single

    1 1 ---> D2

    2 0 ---> D1

    1 1 ---> D3

    2 0 ---> D2

    2 2 ---> unique

    Desired output table:


    0 0

    1 0

    0 2

    2 2

    Can someone help me?

    Hi Werty,

    To do this is to compare each line with the entire table and count the number of matches.

    If there is only a single match, then the line is unique.

    Here is an example:

    Outside for the index of the loop through each line.

    Inside of the loop compares each line with the entire table and counts the matches.

    Then, a check is made to see if this line is unique.

    The case statement adds unique lines in the output array.

    Note: Use a table function build in a loop like this could cause problems if there will be a large number of unique lines.

  • Table 1 d of dynamic data index

    Hello.

    I have 2 son of dynamic data. Basically, I want to access each item of two, with a single function (module) in a moment.

    I use table to build, and with a probe, I see for wire 1 (items: x 1, y1, z1,...) and for the 2 wire (items: x 2, y2, z2,...).

    Now, I want to use a function (module) good enough to choose for example to y2 2 and wire1 z1.

    Thank you.

    Hei, I got it!

    I used the table of generation 3 and 1 index table 2D. Innitialy, I put merger signals instead of build table, so I was stuck there.

    Thank you for being around.

    Here's a vi. My project is more complex, so I made an example for you. (LV 2010)

    Can it get any easier?

  • FFT of XY table

    Hi, I can't manage with table 2d FFT. I convert the data from excel. In labview, it is a 2 columns with array of 10000 lines. Then I traced chart XY in this table (using "build the graph XY") and it is well marked. Now I need to use FFT on this and I really can't understand it. When I use the spectral measures it shows something like one noise, or other random * beep *. How my VI looks like is attached below. Sorry for my English

    I added a power spectrum in your VI. The result looks like what you would expect.

    See you soon

    Edgar

  • Table 3D: cannot replace the 2D subset?

    Hey guys,.

    I discovered a rather strange event (if any). In debugging my code, I stumbled upon my function replace table subset to find that it was the source of my frustration. Either I don't understand how it works for 3D arrays (I use it a lot for 2D, 1 d) or there is a bug. I have attached a picture of the code examples here. I can't replace a 2D picture into my table 3D. I would like to take a page from the 3D and replace it with a page of update / different. The example image is sure to strongly the oddity.

    Any thoughts?

    Regardless of the size of the input array, the result of the table replace never increase the number of items.  You try to grasp the first page, add a line, then replace the first page.  The result is that the replacement is cropped to the initial first page size, if you have a developed NOP (no operation).  Move the entries in your table to build on it and see what happens.

    You can't replace an item that does not exist in the input array.

  • Make a different .txt 3 1 d-table file

    Community salvation OR

    I looked a decent solution for this problem, but I can't understand how do.

    So I have a Subvi, which calculates the different images 3D coordinates. Each image contains about 200 points which will be calculated. The output of the Sub - VI are 1 d 3-tables, one for each dimension. I want to make a .txt file where the coordinates are written as follows:

    x 1; Y1; Z1

    x 2; Y2; Z2

    x 3; Y3; Z3

    ...; ...; ...

    XN; Yn; Zn

    The coordinates of each image entering the VI calculation should be added in this .txt file regarding the described structure.

    Is there anyone who got experience with this and know a good solution? If something is not clear to you, please ask me to explain.

    Kind regards

    Ruts

    I don't know how your photo in the upper part compares with what you did until now.

    You can combine several tables 1 d without knowing how they are.  You put the version table in a loop For.  Maintain the 2D range in a shift register and add each new table 1 d with the table to build inside the loop For.

  • Two questions in table "While loop"

    Hello

    I have two questions about creating tables in while loops. I'm using LabView 8.5.1.

    In its simplest form, my current while loop (delay set to 0, 2 s) has 3 variables that have been changed by moving a slider. They are each sent to a line in a block of 'Building the table' (data type is DBL 1 d) - this table is then written to a spreadsheet file, such as the three values are written to a new line (one value per column) whenever the while loop runs.

    Question 1

    How can I add a column 'Time' in this worksheet? In other words, get at the present time the loop works since then, from 0 seconds in the spreadsheet, via the table block building.

    I can think of how to do this with a loop For, but given that the While loop runs through an unknown number of iterations, I can't figure out how to get the counter to work.

    Question 2

    How can I text column headings on the worksheet?

    Thanks for the help and if you need anything anyone stating, please let me know

    To answer question 1:

    There is a function of 'Elapsed Time' you can put as the first colum of the data.

    This then reformatted your spreadsheet as
    Time Data1 Data2 Data3

    Time Data1 Data2 Data3

    Time Data1 Data2 Data3

    etc...

    To answer question 2:

    Build a table of positions, then write this table in the file only once, outside the loop.

    Your table with the data and time will write inside the loop.

  • Problem adding values to a table with the state machine architecture

    Hello

    I currently have a problem that I have to build a program using state machine architecture and now I want to add a value in a table whenever you press a button, but I would like the table to add the new value, rather than deleting the last value. I can't seem to figure out how to make this work without using while loops and similar. It doesn't seem to work properly.

    It is in the case of measurement.

    The idea is I draw several lines then it records the length of the lines in a table and then I'll take one average this so I can convert pixels into real life SO units. But right now I can't seem to add the information in the table.

    There is a little screw Sub, but I think that they should not be important for this question please!

    What's the problem with just the table help build?

  • Table of loop one

    Hi all

    How can I change this VI to have the output array update with each iteration of the loop rather than wait the program exit the loop and then update all?

    Thank you

    You must use a shift register to table and table to build inside the loop.  Move the terminal indicator inside the loop.

  • read the elements and index of a table

    Hello

    I use the function buildArray to build a table 1 d of 1024 items.

    Aferwards I want to extract all items + index of all the elements in another goal.

    I mean if e.g. the 1st element of my table is 10, the second is 45, the third is 65 and I want to have (0.10), (1: 45), (2, 65).

    Can you please help me.

    Use a loop FOR.  AutoIndex your table.  Use the table to build inside the loop TO create a table of the index (starting from the terminal i) and your indexed element.  Connect the new array to the output of the loop FOR (again, use autoindexing) to create a 2D array.

Maybe you are looking for