Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Field values from 4 tables to 1 table

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Field values from 4 tables to 1 table

    I have four tables in which the values of a few fields in each table need to be copied to table 5 so that I can use table 5 as the basis of a report.
    I've looked at the Post in field rules but it will not allow character values to be added. I also looked at the intersect and copy operations but ran into snags with them was well.

    Can this be done?

    Thanks for the suggestions.

    kenn
    TYVM :) kenn

    Knowing what you can achieve will not become reality until you imagine and explore.

    #2
    Re: Field values from 4 tables to 1 table

    I believe a "Join" operation should do that.
    Alternatively, you could write a simple xbasic script, or
    Join the tables in a set that makes all tables available then create a calc field that concatenate those fields.

    Comment


      #3
      Re: Field values from 4 tables to 1 table

      I am new to th alpha, but another choice will be similar to above post.
      Create four appending operations to fill a 5th form, as part of the button to process of printing, of couse adding required criteria to match. You may have to have an operation to clear the 5th form before starting, in case ther 5th form is only for reporting. It is cumbersome, but easy to operate and fix in case of problems. Hope this will help.

      Comment


        #4
        Re: Field values from 4 tables to 1 table

        Originally posted by MikeData View Post
        I am new to th alpha, but another choice will be similar to above post.
        Create four appending operations to fill a 5th form, as part of the button to process of printing, of couse adding required criteria to match. You may have to have an operation to clear the 5th form before starting, in case ther 5th form is only for reporting. It is cumbersome, but easy to operate and fix in case of problems. Hope this will help.
        I explored several ways prior to my post and this is the method I was leaning towards. However, more research is needed.

        Thanks,

        kenn
        TYVM :) kenn

        Knowing what you can achieve will not become reality until you imagine and explore.

        Comment


          #5
          Re: Field values from 4 tables to 1 table

          Originally posted by G Gabriel View Post
          I believe a "Join" operation should do that.
          Alternatively, you could write a simple xbasic script, or
          Join the tables in a set that makes all tables available then create a calc field that concatenate those fields.
          I don't think a Join Operation will work because the same common field or linking field is not in all tables. However, a Calculated field just might do the trick.

          Thanks Gabe,

          kenn
          TYVM :) kenn

          Knowing what you can achieve will not become reality until you imagine and explore.

          Comment


            #6
            Re: Field values from 4 tables to 1 table

            Won't consecutive append operations simply add more records? This would be fine if the same fields are being updated in each result (Master table) record, but if you were trying to store, in a single record, fields from all 4 source tables, then consecutive appends won't do it. Or, am I missing something here? Kenn, maybe you need to tell us more about what the result table should look like.

            Comment


              #7
              Re: Field values from 4 tables to 1 table

              Tom is right.
              Perhaps you meant:
              One append, then 3 subsequent updates.

              Comment


                #8
                Re: Field values from 4 tables to 1 table

                My recommendation was based on the assumption that the 5th table could hold data in different way as it was stored originally in their tables.
                That is the reason, I suggest to have an operation in the clicked button to delete prior loads and start fresh.
                Again this only one idea. Perhaps more clarification of the project is needed.

                Comment


                  #9
                  Re: Field values from 4 tables to 1 table

                  MIke, that's right Kenn's description of the problem he faces can be interpreted in two ways. In one, the selected fields from each source table occupy separate records in the target (master) table. In one, the selected fields from each source table get combined with selected fields from all source tables and occupy a single record in the target (master) table. In the former case consecutive appends will work. In the latter it won't.

                  Comment


                    #10
                    Re: Field values from 4 tables to 1 table

                    Exactly...

                    Comment


                      #11
                      Re: Field values from 4 tables to 1 table

                      Originally posted by Tom Cone Jr View Post
                      MIke, that's right Kenn's description of the problem he faces can be interpreted in two ways. In one, the selected fields from each source table occupy separate records in the target (master) table.
                      The idea is to take the field value of the master tables and place them into one record of the target table. Then the report can be based on the target table as outlined in Tom's 2nd scenario. Since that won't work, perhaps Gabe's suggestion of a calculated field might work. I haven't explored that at this time. However, before I do, I'd like to layout a hopefully clearer picture.

                      I handle a work load from 3 agencies. Each Agency1 has 12 workers; Agency2 has 14 workers and Agency3 has 19 workers. A worker will make a referral concerning one person. Sometimes that worker will make a 2nd or 3rd (or more) referral on the same person. Thus, to start, there must be two tables, one to hold the person info and the other to hold the referral info. So far, this is pretty straight forward.

                      More will follow.
                      TYVM :) kenn

                      Knowing what you can achieve will not become reality until you imagine and explore.

                      Comment


                        #12
                        Re: Field values from 4 tables to 1 table

                        Additional Info.

                        Because people move around, there are times when a different worker will make a referral on a person for which one or more referrals already exist. Also, due to HIPPA, each worker can only have access to their own referrals. Since each worker has an ID and each person has an ID, I should be able to isolate the referrals a worker makes to that particular worker.

                        Once the referral is made, I do may part and issue a case number. Upon completion, the referral is returned to the worker who, based on my findings, takes action on the case and reports that action in SectionC and returns the referral to me for final data analysis (SectionD).

                        So, there are four sections to each referral, Worker (SectionA), Investigator (SectionB), Worker (SectionC), Investigator (SectionD). Table1 and Table2 are utilized for SectionA; Table1 and Table3 for SectionB; Table1 and Table4 for SectionC and Table1 and Table5 for SectionD.

                        The report will include fields (not all fields) from each of the tables.

                        When I initiated this post, I was working with Table1 and Table2 which contained the fields of Tables 3, 4 & 5. I have now broken table2 into 4 tables (2, 3, 4, 5) so creating the report may be not as difficult as originally thought. I will know the answer to that after few more hours of work.

                        I appreciate all suggestions and insight.

                        kenn
                        TYVM :) kenn

                        Knowing what you can achieve will not become reality until you imagine and explore.

                        Comment

                        Working...
                        X