Data Base Design

Hi,
well there is a list of tour guides i have who can be provisionally allocated, not allocated or allocated to tours. the dates on which they are allocated is going to be stored in the database. this data is to be retrieved from the database and then graphically represented on a JSP page.
what should the design of the database be? if i store the name of the guide and the days allocated,not allocated or provisionally allocated as fields, would the query become and take a long time to retrieve? The other option was to make the dates as the primay key field and put the name of resources that are allocated, not allocated or provisionally allocated as the fields. but if i have many guides then this option does not seem to viable.
please advise.
thanks.

Let me try:
1. table: guide
key: guide_id
data: name, ...
2. table: guide_date
key: 2 columns: guide_id + tour_date
data: state (allocated, not allocated, ...)
Each record in guide_date represents the information about a special guide on a special date.
evtl.
3. table: tour
key: tour_id
data: route, ...
So possible functions:
To get all dates when a special guide is allocated:
select tour_date from guide_date where guide_id = <searched guide_id> and state = <value for allocated>
To get all guides' names who are available for a special date:
select name from giude, guide_date where guide.guide_id = guide_date.guide_id and tour_date = <searched date> and state = <value for available>
Does this fit to your task?

Similar Messages

  • Data base designs

    hai,
        his is a basic design model but i need to know abt it ,i nned to do a data base design on a time table for an educational institution such yhat
    1)teachers
    2)students
    3)classes
    4)sections
    5)periods
      are my diff objects how can i shedule a time table such that i can allocate each teacher to each class(means 1sem,2sem,3 sem...) and for each class i have 4 sections so that i have perday 8 periods so that how can i assign a teacher to a sction to aclass to a sem.help me in creating this data base design using<b> oops</b>

    you are doing this for which version of SAP i.e. 4.7/ECC-5/ECC-6?
    in order to meet industry specific typical requirements, SAP releases add-ons which are called as IS. Similarly for education SAP has released add-on which is called as "IS-HER (Higher Education & Research)" which has got more functionalities to address the requirements of educational institutions. you may have look at this.

  • Data base design tutorails

    dear gurus can any body point me to some good database design tutorial as i m designing a data base and i dont think it is good actually i m looking for some sit having sample database designs
    any help
    thnx in anticipitation

    me too do some body kind enough to point us
    thanx

  • Derby data base designer

    someone know if exist a software to desing a derby database like db4designer for mysql, power designer or anything
    (Sorry if my english is bad)

    Thomas,
    I have not tried this but have you seen this link:
    http://db.apache.org/derby/docs/dev/adminguide/cadminsslclient.html
    Could you try using something like
    jdbc:derby://myhost:1527/db;ssl=basic as the jdbc url? And set the
    system properties for the keystore?
    System.setProperty("javax.net.ssl.keyStore","clientKeyStore.key");
    System.setProperty("javax.net.ssl.keyStorePassword","qwerty");
    Jason
    On 7/22/2011 2:39 AM, Thomas.K.Hill wrote:
    > no answer after quite some time - would the next step be to raise a
    > feature request based on the assumption that this is NOT possible?
    > Tx

  • Tool to Design data base

    Excuse... but I install Oracle8i Enterprise Edition. In platform
    Windows and he does not leave the option Enterprise Manager Console
    there!
    Yajaira

    The Tools that appear available despues of the installation are:
    Database Configuration Assistant, Oracle Administration for Assistant
    Windows NT, for Oracle Windows NT Performance Monitor. But these are
    attending... I I need a grafica tool that allows to see the objects me
    of the data base... asi as it has MS SQL Server 2000. Thanks...

  • Creating a Crystal Report from a non-SAP data base

    I have the following scenario
    server1\myDataBase
    server1\SAP\sapDataBases
    in sapDataBases I have about 30 company databases. I am trying to create a report, that gets informatino from a table/view/SP from server1\myDataBase, when I try to PREVIEW or SAVE such report on SAP Business One, I always get errors as
    I understand that this eerror means taht I can't invoke the data from out of SAP; it needs to be inside SAP (at least the SP, incoking some other data bases and stuff..)
    Some bodies have told me that it is beacuase I can only create a report from a table/view/sp that resides in the running/currently SAP company database. Is this right?
    Also, If this is the case, this means that If I have an SP taht I use for a crystal report, and 30 companies, I have to create such SP in the 30 companies?
    This is my software details:
    SQL Server 2012
    SAP Business One 9 PL 11
    SAP BusinessObjects Crystal Reports 2013 Support Pack 2 version 14.1.2.1121
    What I want to do is to create a non-SAP data base to create all the SPs/Views for reports, to centralize it, and the just create one reporte and do the 30-imports in each company database, without the need of creating such sps/views in each company-database. Is this possible?
    Thanks

    Moved to Integration Kit forum.
    The people in this forum will know more about the data structure than the CR Design forum which typically doesn't know much about the SAP Data sources Structure.
    Don

  • Creating a Single Report from Oracle Data Base and BI Answers

    Hi,
    I wanted to create a single report by using a BI Report where in we have project and Activity columns,now I want to add column with Program to see the results.Program data is in Oracle Database.
    Can some one help me how to create the report.
    ii.How to edit a pivot table in BI word designer.What I am doing present is creating every time a new report.
    Thx In Adv.
    From Sravan

    Hi Pivot table was a general question.Is is nothing to do with the qus 1.
    See I have a report which have a programme and Activity.So I need to get the data of Prject from Data base how to do this in BIP.....I am not using any pivot table here.

  • Installer data base is corrupt

    I downloaded Photoshop and In Design CS 4.0 for Windows from https://helpx.adobe.com/creative-suite/kb/cs4-product-downloads.html and when I extract the .exe file it says the Installer data base is corrupt. Anyone out there that can help? Thanks!

    You may refer below link  :
    https://helpx.adobe.com/creative-suite/kb/error-installer-database-corrupt-install-1.html
    Please make sure that if you have any other version Adobe applications installed like CS 3, CS 5  or CS 6 .
    make sure that you have serial numbers for the same.

  • Adobe offline form with capablity to read data from a local data base.

    Hi ,
            We have customer requirement for a offline Adobe form which will be used by Sales rep, this form when saved to the local hard disk is required to read data from another local data base available in the laptop  and prefill a few fields in the form . 
    Is this requirement technically feasible using Adobe forms?
    Thanks
    Srikanth S

    Well may be it's possible because if you go to the Data View in ALD and create a new Data Connection --> OLEDB database --> Build --> It gives you various options for connecting to different DBs but frankly speaking I have never tried it.
    Check the ALD help for more information on the topic.
    Using LiveCycle Designer > Working with Data Sources > Connecting to a data source > To create a data connection to an OLE database
    Chintan

  • What is logical data base and how it is differfrom DDIC AND DATABASE

    HI ,
    CAN ANY BODY HELP ME TO FIND THIS

    Hi
    A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
    LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
    Less coding s required to retrieve data compared to normal internel tables.
    Tables used LDB are in hierarchial structure.
    Mainly we used LDBs in HR Abap Programming.
    Where all tables are highly inter related so LDBs can optimize the performance there.
    Check this Document. All abt LDB's
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
    GO THROUGH LINKS -
    http://www.sap-basis-abap.com/saptab.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Re: **LDB**
    www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
    www.sap-img.com/abap/abap-interview-question.htm
    www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
    Gothru the blog which provides info on LDB's:
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Logical data base

    hi experts!!
    i am working on the LDb  report and i have created a LDB zaxxx in se36 and using the same LDB to code in se38 and in attributes i have mentioned the name of LDB.
    when i code follwoing:
    GET ZAXXXX  FIELDS INVOICE_NUM CUST_NAME CUST_PO_NUM INV_DATE.
    ITS GIVING ERROR THAT ZAXXX IS NOT SPECIFIED FOR FIELD SELECTION.
    when i use only
    GET ZAXXXX  . when i debug valuse are comming but when process the report its giving no valuse.
    plz suggest me on the same..
    mahesh

    hi this may be of some help.
    A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
    LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
    Less coding s required to retrieve data compared to normal internel tables.
    Tables used LDB are in hierarchial structure.
    Mainly we used LDBs in HR Abap Programming.
    Where all tables are highly inter related so LDBs can optimize the performance there.
    Check this Document. All abt LDB's
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
    GO THROUGH LINKS -
    http://www.sap-basis-abap.com/saptab.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Re: **LDB**
    www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
    www.sap-img.com/abap/abap-interview-question.htm
    www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
    Gothru the blog which provides info on LDB's:
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Sample code
    TABLES: SPFLI,
    SFLIGHT,
    SBOOK,
    SCARR.
    START-OF-SELECTION.
    GET SPFLI.
    WRITE:/ ’SPFLI: ’, SPFLI-CARRID, SPFLI-CONNID,
    SPFLI-AIRPFROM, SPFLI-AIRPTO.
    GET SFLIGHT.
    WRITE:/ ’ SFLIGHT: ’, SFLIGHT-CARRID, SFLIGHT-CONNID, SFLIGHT-FLDATE.
    GET SBOOK.
    WRITE:/ ’ SBOOK: ’, SBOOK-CARRID, SBOOK-CONNID,
    SBOOK-FLDATE, SBOOK-BOOKID.
    GET SFLIGHT LATE.
    WRITE:/ ’ GET SFLIGHT LATE: ’, SFLIGHT-FLDATE.
    with regards,
    Hema SUndara.
    pls reward if helpful.

  • Logical data base and work process

    I have some questions on the above topics.
    if some have an answer, let me know .
    1. How many logical data bases can we use in our
    report program
    2.  How to design our own selection screen when
    using
    logical database
    3. How mnay update workprocesses can u have.
    Thanks in advance.
    Regards,
    Roberts.K

    Welcome to the forum!
    In response to question 1:
    You can designate only 1 LDB on the Attribute screen of the program.  You can however, also invoke a LDB program using Function Module LDB_PROCESS.  There is some good documentation associated with it.
    In response to question 2:
    If you specify a LDB on your program attributes, the LDB will present a selection screen.  Any parameters/select options that you specify in your program are added to the selection screen that the LDB presents.  If you use the Function Module mentioned above, then you alone will control the selection screen and have to pass selection information to the function module.
    In response to question 3:
    I am not quite sure what you mean by this one, but if some of the other SDNers have answered your question, then no need to clarify for me.

  • RE: Customized Auditing of Data base Tables

    Dear experts
    I really need your help.
    We have a requirement to do auditing on customized Data Base tables.  I know there is a tick in the table to keep a log and you can then use SCU3 to check it. But this uses alot of resources that we can not afford.  We need to design our own customized table to update any data changes to any of our customized tables.
    Now we need this table to show us the user. the date and time, the old value of the field, the new value of the field, the field name, and  the table name.  However there will also be a report to check who changed, edited added or deleted what entries on any of the customized tables.  So my problem is that when updating my customized table that holds the data. The logical flow of data does not make sense.  Please see example below;
    Z_SELLING_PRICE Table (the client does not want to use standard pricing that is why we use customized tables)
    MANDT         MATNR        PRICE         VALID_TO       VALID_FROM          CURRRENCY
    100               TYRES         200             20100201        20100228               ZAR   - (user changes price to 100)
    100               TYPES         250             20100301        20100331               ZAR   - (user changes valid_to to 20100302)
    100               RIMS            150             20100301        20100331               ZAR
    Z_AUDIT Table
    MANDT       TABLE                      FIELD           OLDVALUE              NEWVALUE          CHANGE_TYPE   USER       DATE         TIME
    100             Z_SELLING_PRICE   PRICE           200                           100                       Modified               PETER     20100202   121216
    100             Z_SELLING_PRICE   VALID_TO   20100301                  20100302            Modified               JANE       20100301   154553
    My problem here is how will my report know that the price (for example) that was changed wat the price changed on Types as suppose to rims?
    Maby my logic is too complicated.  And if i save all the fields regardless if they were changed so that my report of this table (Z_AUDIT) can make logical sense. how will i know what the logical flow of field names is to be combined to make up the record that was changed.
    Please help.
    Kind regards

    Hey Thomas
    Thanks for your quick response. Yes the resourses (in my opinion would probably be the same) but unfortunatly we have a couple of basis consultants that convinced the business other wise. I get the idee that they are carefull of the fact that if they open the system to this function and someone adds a log to a standard table that the system might not have suffiecient memory.
    So business decided that they wil not take this "risk" and asked the ABAP team to design our own updates.
    Another option that was presented was to add a USER DATE and TIME Field to every Customized table that needs to have logging on. But in some cases we cannot allow for duplicate keys and if i make these fields keys the logic behind that will be bypassed as the same user can then enter a "duplicate key" the next day because it is not seen as a duplicate entry in the DB because the date would then differ.
    So by adding a section to the user exit behind SM30 and calling the same function module (that has to stil be written) we will  be able to do this "the ABAP" way. I was just wondering if there is (hopefully) someone that had a similiar situation so that we can maby duplicate the logic.??
    Kind regards

  • Getting past the primary key in a data base

    I mentioned this in another discussion but want to try it again here.
    ID fields with auto numbering in data base tables seem to hinder adding new records to a table. There must be a way to have say the number of a record display in a field in a form but then not interfere with adding a new record. But I'm not figuring it out.
    Steven

    Hi,
    After we export an Access table to SharePoint list, the “ID” field of the SharePoint list will be starting at 1, this is a behavior by design and it will not be able to modify.
    A workaround is that you can take use of the “_OldID” field of this SharePoint list, this field will retain the original ID from the Access table.
    Records in Access table:
    After export it to SharePoint list:
    Best regards
    Patrick Liang
    TechNet Community Support

  • Data base in to a Vector.

    Hi folks,
    I'm writing a program using JDBC with a data base that holds details of stock held by a company, my intention is to write a till system for it. I've got the JDBC part working now.
    However I am left with one or two questions.
    One of my initial ideas was to have another table called ShoppingList, but I felt that would be too much trouble, so my thought was to create a GUI with a grid of buttons, that would execute SELECT statements from the data base for the stock that it has stored within it, and add the output to a Vector of stock objects. (item quantity, item description, item price.)
    I'm not sure that I'm making things over complicated in doing this or not. But i felt it would provide a better way for me to then yse the Quantity fields, and price fields, and make it easier to total up their numbers.
    My intention is that the "shopping list" appears in a JTable, which to me presents another possible problem (I'm new to all this). I want to have a total cost of the shopping basket. My intention is to make this appear in a JTextArea at the bottom of the "list" Is it possible to have the sum of the values of a certain column in a seperate JTextArea? I know it sounds a dumb question, but I'm asking because I honestly don't know.
    I know I've put a lot of questions on here, but please be patient with me. I'm learning slowly.
    Emyr

    Well I gotta be honest with you here when someone says instead of a DBtable I would like to use a Vector/some GUI component it's a sign to me that their design is mixed up when it comes to seperating out the different components of their application.
    There are basically three parts to your application
    - the persistence storage level (the database)
    - your business logic etc (Vectors or Lists)
    - you interface (GUI)
    Each one of these should be independent of the other.
    Now. In reality when you are starting off this can seem overwhelming to think of it like this... but you really should. Or if you want to do just do as you like for now while you get the hang of a few things that okay too but you must keep in mind that in many ways it's so very wrong.
    A couple of suggestions targeted at what you did post.
    1) Write to interfaces and not implementations.
    For example
    List list = new Vector();and not
    Vector list = new Vector();This will allow you to change the implementation later if needs be with a minimum of headache.
    2) It is preferable to use another List implementation (like ArrayList) to Vector
    3) How much do you know about TableModels (with JTables?)
    4) The ShoppingList table sounds like a good idea to me. But it's hard to say what you are doing. The table should probably have a key based on the id of the shopper (or user) and the product id.

Maybe you are looking for