How to create tables and relationship between ?

Hello everybody,<o:p></o:p>
I have three table with structures as follow:<o:p></o:p>
<o:p> </o:p>
Table1
contains information on ledger accounts,and
Table2 contains Groups of the detailed
accounts.
When defining ledger
accounts , we must associated them with
groups of detailed accountsthat
are
set
by the
Check
boxes. groups of detailed accounts are three
levels, At each level, there are fifteen
groups as follow:
1_others ,2_People ,3_companies ,4_
Cost centers ,5_projects ,6_
Letter of Credits ,7_ Current
Accounts ,8_
Banking facilities ,9_
Commodity ,10_ Branches
aggregation ,11_ Purchase
Contract
Services ,12_
Sales Contract
Services ,13_
Export Products ,14_
Control account ,15_
Months.Table3 contains detailed accounts information that should associated with groups of detailed accounts(fifiteen groups).
In addition, we
have in our program four combobox,
detailed accounts must be
linked to the detailed groups
so that, by selecting one ledger account in combobox1 it should display detailed accounts of level1 in combobox2 ,detailed accounts of level2
in combobox3 and detailed accounts of level3 in combobox4.<o:p></o:p>
<o:p> </o:p>
How
to design tables and the relationships between them, so
with select the ledger account I can see the detailed
accounts of per level in other comboboxes?<o:p></o:p>
<o:p> </o:p>
I've
spent
a lot of time
on this
subject
but
I have
not been able
to
solve this problem.<o:p></o:p>
Please help me,<o:p></o:p>
Best regards.<o:p></o:p>

I am guessing....I hope it is helpful...
>1_others ,2_People ,3_companies ,4_
Cost centers ,5_projects ,6_
Letter of Credits ,7_ Current
Accounts ,8_
Banking facilities ,9_
Commodity ,10_ Branches
aggregation ,11_ Purchase
Contract
Services ,12_
Sales Contract
Services ,13_
Export Products ,14_
Control account ,15_
Months.
Setup a table for each.
>Table3 contains detailed accounts information that should associated with groups of detailed accounts(fifiteen groups).
Setup the AccountDetail(1,2,3 level) tables with 15 NULLABLE FOREIGN KEYs. If some group is not applicable for an FK, keep the value NULL, otherwise enter a valid PK value.
>Table1
contains information on ledger
accounts,and Table2 contains
Groupsof the detailed
accounts
Setup LedgerAccount tables.
Setup LedgerDetailXref table with FOREIGN KEYS to LedgerAccount & AccountDetail(1,2,3) tables.
FOREIGN KEY examples: http://www.sqlusa.com/bestpractices2005/bankdatabase/
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

Similar Messages

  • Data model - is tables and relationships between them are graph or tree

    Hello
    I want to ask if tables in database are nodes of graph what should this graph looks like - like real graph (with
    cycles) or tree ?
    Let the tables are nodes of graph and the relationships between the tables are edges in the graph.
    10x all
    Edited by: user10860289 on Apr 2, 2009 1:37 PM
    Edited by: user10860289 on Apr 2, 2009 1:37 PM
    Edited by: user10860289 on Apr 2, 2009 1:39 PM
    Edited by: user10860289 on Apr 2, 2009 2:04 PM

    You can put the \ tag before and after text to preserve white space.  That likely makes things easier to read if you're trying to post ASCII graphs.
    I wouldn't hesitate to use the proper set of tables and relationships for the entities I was trying to model.  Would I be concerned if my data model were full of loops?  Sure, that might cause me to double-check that I hadn't done something silly.  Would I be concerned if my data model had a loop if that was the best way to model something?  Not at all.
    There is no theoretical answer because the quality of a data model has nothing to do with whether it is more tree-like or more graph-like. 
    Justin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to create table and digital signature ?

    Hello,
    I would like to ask two questions regarding SAP interactive forms by adobe.
    1st question:
    How to create table in interactive form?
    Table that i can add rows and column and will show it in the form.
    Example the rows and columns that i want:
    <u><b>ID:</b></u>                <b><u>Name:  </u>  </b>               <u><b>DOB:</b></u>
    1                  Jack                      01/02/80
    2                  Ivy                         10/12/82
    2nd question:
    How to create digital signature ?
    I'm creating a adobe forms which need employee to sign on the form. I use signature field at my form. However, i don't know how to create a new signature and insert in the signature field.
    Can any one provide the answer with step by step guide?
    Thanks a lot

    Hi Pradeepa,
    you said you have your digital signature in
    BMP format? That means Bitmap and would mean you are actually talking about a picture! THIS IS NOT A DIGITAL SIGNATURE!
    A digital signature is a cryptographic key (aka public key cryptography) that is used to digitally sign a document, or at least a hash value derived from the document. Digitally signing means, applying the key in a well defined way (this is the algorithm used) to the document or hash value. You do this with your private key and the receiver of the document can then use your public key (which you can distribute in any way you want, even unsecure) to unencrypt the hash value. If this succeeds the receiver knows that the document was signed by you.
    This is because both keys are mathematically related in such a way, that what one key encrypted can only be decrypted by the corresponding other key and by no other key. You even can´t decrypt a document with the same key it was encrypted with, this is the difference to symmetric encryption - please have a look at help.sap.com and search for digital signatures.
    The named formats (afs, pfx and p12) are ways of coding the key, together with information about your person, such as email address and information about validity of the key into a
    certificate. This type of certificate is then called a x.509 certificate and is the same you might have seen when connecting to a secure webserver such as the one of your bank website. 
    Signing a form with such a certificate provides for mathematically and therefore business related proove of a users identity.
    In case you are really using a bitmap, this cannot work and would not serve you any good.
    Ask yourself this question: I want to make sure that the form was signed by a specific person. How can I make sure that the signing can only be done by the person pretending to have done so?
    A bitmap contains a picture, probably of the persons handwritten signature. How can I make sure that this picture was NOT recreated in MS Paint or Photoshop by someone else?
    The answer is:
    you can't! Therefore this way of prooving identity is useless. 
    You need to provide your users with digital signatures, put these in the certificate cache of your IE.  If a user then clicks on the signing field, the private key is used to digitally sign the form - create a hash value of the form and encrypt it with the private key. After the form is send back to the server or you, you use the corresponding public key to decrypt the hash value and, as said above, if this succeeds, identity of the signer is proven.
    THIS IS AN OVERSIMPLIFICATION! You might want to take a look at Adobe Reader Credentials.
    Regards,
       Christian

  • How to create tables and views and procedures in other users as one

    HI to all,
    I am having a user named vijay and i am trying to create the tables in user srini as user vijay
    in user vijay i'm having tables
    1. company
    2. department
    i wrote one procedure
    create or replace procedure sp_createobjects{short_name in varchar2}
    {my openbracket key is not working so that i put open braces here}
    as
    cursor table_name is select object_name from dba_tables where object_type = 'TABLE';
    var_table_name varchar2{1000};
    begin
    open table_name;
    loop
    fetch table_name into var_table_name;
    execute immediate 'create table ' || short_name || '.' || var_table_name || ' as select * from '||var_table_name;
    end loop;
    end;
    the procedure is created sucessfully. but when i am trying to execute the procedure it is throwing the error as insufficient privileges.
    my 2nd question is how to create the procedures into the other user?
    Thanks in advance

    First of all, your query "from dba_tables where object_type = 'TABLE'" returns all tables, not just the tables of the user vijay.
    So there are two possibilities, you may be getting the error because you cannot select from another user's table or you may be getting the error because you cannot create a table under the user srini. To create tables in another schema you need the "create any table" privilege.

  • How to create Tables and Fields in Java DI API?

    I have the problem to get the handle for IUserTabledMD.
    userTablesMD = (IUserTablesMD) getCompany().getBusinessObject(SBOCOMConstants.BoObjectTypes_oUserTables);
    does not work as in VB (getCompany() gets the ICompany handle).
    and
    userTablesMD = SBOCOMUtil.getUserTablesMD(getCompany(),"");
    needs an additional String!?!?!?!?
    How to get the handle to create new user defined tables?
    I think Fields needs the same methods.
    Regards, Frank.

    could you send me code for creating table using java

  • How to create table and insert images and audio files ...

    hello to all , i am doing my b.e cse .
    at current v r studing DB and pl/sql codes ....
    i just need to know simple way of code to insert images and audio files in a table .
    i tried some of these ,
    CREATE TABLE myTable(Document varbinary(max))
    INSERT INTO myTable(Document)
    SELECT * FROM
    OPENROWSET(BULK N'C:\Image1.jpg', SINGLE_BLOB)
    but not workiing
    it shows some errors.
    i use oracle 10g. thank u :) and also i tried using blob and bfile datatypes , table created but cannot insert values !
    ROBOK

    hello to all , i am doing my b.e cse .
    at current v r studing DB and pl/sql codes ....
    i just need to know simple way of code to insert images and audio files in a table .
    i tried some of these ,
    CREATE TABLE myTable(Document varbinary(max))
    INSERT INTO myTable(Document)
    SELECT * FROM
    OPENROWSET(BULK N'C:\Image1.jpg', SINGLE_BLOB)
    but not workiing
    it shows some errors.
    i use oracle 10g. thank u :) and also i tried using blob and bfile datatypes , table created but cannot insert values !
    ROBOK

  • Depicting tables and relationships

    Hi all. I need a tool that can display the tables and relationships between the tables of an Oracle Database in a specific way. Let me explain.
    Prehistory
    We have an Oracle Database :-). It has a lot of tables, many foreign keys etc. The relationships between the tables are quite intricate.
    Purpose
    The purpose of this is to create a "scheme" of the data (the tables and relationships we have) which is simple to understand. We are going to use this scheme to help new employees understand the data structure. I tried to create such a scheme with the help of Oracle Designer but I found Server Model diagrams and ERD diagrams not satisfactory.
    Data scheme description
    I want the scheme to display tables like in a server model diagram. But there is one major problem I encountered with server model diagrams. The server model diagram shows everything: column names, column data types, relationships. But there is one thing it does not show (or I couldn't find how to make it show it). I want the diagram to show comments for columns together with the column names (for example in square brackets after the column name). It is obvious that the column name usually does not tell much about what the column contans. It is only comments or descriptions that usually contain a lot of information about the column's contents. And I want comments to be shown on the diagram because I think this will be the simplest way for the new employee to get used to the data structure, understand it and get involved with real projects faster. I.e. make the new employee's "learning curve" much shorter :-). And I want descriptions (comments are short, they can be shown on the table, descriptions are long, they cannot be shown) to be easy to access on the diagram. For example "Right click -> description menu item". Actually the tool I'm looking for should be able to customize the view of the diagram, show and hide some elements (for example show comments, hide types etc). View customization capabilities are what I'm looking for. I think Oracle Designer lacks these capabilities.
    Server model diagram disadvantages
    The server model allows to add comments for columns but it cannot display them(comments) on the diagram. Comments are really difficult to access in the server model diagram. One can access only one comment for the column at a time.
    ERD diagram disadvantages
    I checked out ERD diagram as well. It is a little better at accessing comments. The properties of the table(tab "Attributes") shows column names and comments in one table. It is much more convenient for the new employee. But in the retrofit process (creating ERD diagrams from existing database tables) Oracle Designer deletes all "ID" fields. It places relationship links on the diagram instead of these attributes. In this case I'll have to create these fields manually in order to "reproduce" the exact structure of the database. It is very tedious when we have a hundred tables.
    Question
    Is there a tool that can create the diagram I want from existing tables (not from the scratch)? Or the server model diagram is my best bet? One more thing. I don't need a tool that can only draw diagrams even in the way I want. I need a tool that can create a diagram from existing tables and after this allow me to customize the view of the diagram, add comments, descriptions, show and hide comments, data types for columns etc. Perhaps there is a way to achieve this goal by means of Oracle Designer?
    Additional Info
    Database - Oracle 8i
    Oracle Designer - Oracle Designer 9i.
    Thank you in advance.
    Message was edited by:
    Xaltotun

    Alexandre, could you please provide more details on how you work with PowerAMC? Does this tool has powerful capabilities in reverse engineering? And does it allow the user to customize the view of the diagram as I described? I found only some documents in French regarding PowerAMC but on the Sybase site I found that PowerAMC was "also sold as PowerDesigner". I found this link
    http://www.sybase.com/detail?id=1040802.
    Do you have any documents that describe the reverse engineering capabilities of PowerAMC or manuals? (documents in English of course). It would be very kind of you if you found such documents.
    Unfortunately I couldn't find enough info on the official site.

  • How to create Parent and Children is a tree table / trigger sequence number

    How to create Parent and Children is a tree table when the primary key of the parent is generated via a trigger and a sequence number in the database?
    My problem is when I create a parent and then right away a children. The parent still not have a primary key until the transaction get to the database. I get a error when trying the create the children, cannot insert null in the foreign key field of the children.
    Please help.
    Stephane

    You should have the parent key be marked as a DBSequence type.
    Then you should have the association between the master and detail defined as composite association to make sure that the posting order to the database is correct.
    http://download.oracle.com/docs/cd/E24382_01/web.1112/e16182/bcentities.htm#BABFECDJ

  • How to create User and Database in different Table spaces

    How to create User and Database in different Table spaces using oracle 10g
    Regards
    daya

    I am sorry but your question does not seem to make much sense.
    Can you please rephrase your question?

  • How to create database and table with GUI?

    How to create database and table with GUI?
    for linux can do that?
    or have only way to create table by use sql*plus.
    everyone please help me.
    thanks

    go to www.orasoft.org
    here is a gui tool.
    null

  • How to create table.maint.generator and enduser should use using ztcode

    Hi,
           can any one guide me how to create table maintanence generator and after creating,enduser must use using ztcode.
             any help can be appreciated.
    Thanks & Regards,
    Sandeep.

    Hi,
    Table Maintenance generator is required to do Manual entries in the Table. If the requirement is to update the table only programmatically and not manually then table maint. generator is not required.
    Manual entries in table can be maintained ( New record can be inserted / existing can be modified ) using transaction SM 30, if the table maintenance for the table is generated.
    How to activate Table maint.
    Goto SE11 and open the table.
    Click UTILITIES -> Table Maint. Generator, Enter the details and click on Save. Then activate the table.
    chk a sample 1.
    refer.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc
    some more helps
    Check out this thread:
    table maintenance
    http://help.sap.com/saphelp_erp2005/helpdata/en/a7/513520407a11d1893b0000e8323c4f/frameset.htm - a link for basics on Table Maintenance.
    Also, Check out this weblog on table maintenance:
    /people/sudheer.cheedella/blog/2006/02/20/extracting-data-in-table-maintenance
    <b>how to create a a T-code of that</b>
    Go to se93.
    Then create the new T.code.
    Under that select parameter Transaction.
    Then give the sm30 in the t.code in default values tab.
    check the checkbox skip initial screen.
    in classification tab.
    click checkbox inherit gui attributes..
    Now below..
    In the default values..
    WRITE
    viewname = give ur table name.
    show = X
    save and check it once...
    now u can able to call ur table through ur new t.code...
    rgds
    anver
    if hlped pls mark points

  • How to create table control and link in screen exit

    Hi Friends,
                     I want to create table control in enhancement CONFPP07.  The values entered in table control should be stored in ztable along with some other information.
    But I want to know how to create table control in screen-exit and how and where to write code and how to link all.
                   Kindly send me step-by-step documentation or real time examble prg.
                   Kindly give ur answers for this problem only.
    Thanks in Advance,
    S.Senthil kumar

    If u have a  screen exit..then u will have a option to create a sub screen..in that sub screen u activate the pai and pbo events..it will show u where to write the code..

  • ....how to create table maintanence generator for a z table and how to use

    Hi...
    3....how to create table maintanence generator for a z table and how to use that for transfering a selected records to one server to another server.
    thanks and regards,
    k.swaminath reddy

    Hi,
    Table maintanance Generator is used to manually
    input values using transaction sm30.The Table Maintenance Generator is used to create table maintenance program to add, modify or delete records in the database table. This can be accessed using transaction SE54 or in SE11 using the menu Utilities->Table Maintenance Generator
    <b>
    Follow below steps</b>
    go to se11 check table maintanance check box under
    attributes tab
    utilities-table maintanance Generator->
    create function group and assign it under
    function group input box.
    also assign authorization group default &NC& .
    select standard recording routine radio in table
    table mainitainence generator to move table
    contents to quality and production by assigning
    it to request.
    select maintaience type as single step.
    maintainence screen as system generated numbers
    this dialog box appears when you click on create
    button
    save and activate table
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
    One step, two step in Table Maintenance Generator
    Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
    Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
    please check the link for getting information about table maintenance generator !
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=use%20of%20table%20maintenance%20generator&cat=sdn_all
    http://www.sapdevelopment.co.uk/tips/tips_tabmaint_tcode.htm
    http://www.sap-img.com/abap/create-a-table-maintance-program-for-a-z-table.htm
    Regards,
    Priyanka.

  • How to create table with rows and columns in HTMLB

    Hello All,
    Can any one tell me how to create table in HTMLB?
    Regards,
    Lisa.

    Look at the sample BSP application SBSPEXT_HTMLB
    also you can look at the below Blog..
    /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
    <i>*Reward each useful answer</i>
    Raja T

  • Sap script '' how to create table frame in sap script"""

    i have some problem in sap script''  how to create table frame in sap script"""

    Hi,
    you can use BOX command..
    Syntax
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    Effect: draws a box of the specified size at the specified position.
    Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT and FRAME both a measurement and a unit of measurement must be specified. The INTENSITY parameter should be specified as a percentage between 0 and 100.
    1. XPOS, YPOS: Upper left corner of the box, relative to the values of the POSITION command.
    Default: Values specified in the POSITION command.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    2. WIDTH: Width of the box. Default: WIDTH value of the SIZE command.
    3. HEIGHT: Height of the box. Default: HEIGHT value of the SIZE command.
    4. FRAME: Thickness of frame.
    Default: 0 (no frame).
    5. INTENSITY: Grayscale of box contents as % .
    Default: 100 (full black)
    Measurements: Decimal numbers must be specified as literal values (like ABAP numeric constants) by being enclosed in inverted commas. The period should be used as the decimal point character. See also the examples listed below.
    Units of measurement: The following units of measurement may be used:
    • TW (twip)
    • PT (point)
    • IN (inch)
    • MM (millimeter)
    • CM (centimeter)
    • LN (line)
    • CH (character).
    The following conversion factors apply:
    • 1 TW = 1/20 PT
    • 1 PT = 1/72 IN
    • 1 IN = 2.54 CM
    • 1 CM = 10 MM
    • 1 CH = height of a character relative to the CPI specification in the layout set header
    • 1 LN = height of a line relative to the LPI specification in the layout set header
    /: BOX FRAME 10 TW
    Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
    /: BOX INTENSITY 10
    Fills the window background with shadowing having a gray scale of 10 %.
    /: BOX HEIGHT 0 TW FRAME 10 TW
    Draws a horizontal line across the complete top edge of the window.
    /: BOX WIDTH 0 TW FRAME 10 TW
    Draws a vertical line along the complete height of the left hand edge of the window.
    /: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    /: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
    check the fallowing link also
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803293454211d189710000e8322d00/content.htm
    Mark the points if u find it useful...
    Regards,
    Omkar.

Maybe you are looking for

  • Upgrading MacBook Late 2008

    I've had my MacBook 13″ Late 2008 now for three and a half years, and it has been used every day since I bought it, and with every passing day, it's getting slower and slower. I've checked with every forum out there to find methods for speeding it up

  • Can I upgrade graphics card of my HP Pavilion g6-1301tx Notebook PC?

    Hi folks, I want to know whether I can upgrade graphics card of my laptop. (like AMD to  nvidia graphic card). Now a days most of the high end games are not working in my laptop and I'm pretty disappointed. Please let me know whether I can do that. M

  • How do I insert a 3d pdf file into dreamweaver

    I am using cs5, I have a 3d pdf file that needs to open in dreamweaver when someone is viewing the website not open it in a seperate file.

  • Passing fields from sapr3 to idoc

    Hi,      the sapr3 fields are. OIK01-LIDDTYPE B)OIK01-LIDNO C)OIK01-LIDADDON D)VBAK-VBELN/OIK01-DOCNO E)VBAP-ABGRU F)VBAP-POSNR/OIK01-ITEMNO how to pass these field to idoc segments E1OLL01-LIDTYPE E1OLL01-LIDNO E1OLL01-LIDADDON E1EDK01-BELNER E1EDP0

  • IBook help, 10.2.8, icons showing up on screen.

    My son has encountered a problem that started today. Every time he pushes the Command, Alt, Ctrl or Shift button, a white icon (about 1.5 inches squared) representing the key he just pushed shows up on the screen. It doesn't go away until the same ke