Query to find previous Activity in STM

I have a database to reflect a State Transition Machine (STM). It contains 3 tables: Activity, Node and Transition.
The Node and Transition tables are the configuration of the STM. They define the different possible states and the possible transitions between states.
The path I take through the STM is recorded in the Activity Table. A record is created for every Node visited.
I need a query that uses the id of my current Activity to find my previous activity, i.e. the activity that directly preceded me. The following rules apply:
- My Id is meaningless
- It has to work for different configurations of the transition and node tables, but:
- The Start Node is always Node 'A'.
- There are no recursive transitions, e.g. ('B','B');
- There are no circular transitions, e.g. ('B','C') and ('C','B')
- The transition and node tables will never change between the creation of the first activity and the execution of the query.
- The path reflected by the Activity table is always a valid path.
- My current activity is always the last activity.
For the dataset below, find the previous activity of activity with id=4. The correct answer is 'C'.
DROP TABLE Transition;
DROP TABLE Activity;
DROP TABLE Node;
CREATE TABLE Node
     Id VARCHAR2(1) PRIMARY KEY
CREATE TABLE Activity
     Id Number(8,0) PRIMARY KEY,
     Node_Id VARCHAR2(1)
CREATE TABLE Transition
     FromNode_Id VARCHAR2(1),
     ToNode_Id VARCHAR2(1)
ALTER TABLE Activity
ADD FOREIGN KEY
(Node_Id) REFERENCES Node(Id);
ALTER TABLE Transition
ADD FOREIGN KEY
(FromNode_Id) REFERENCES Node(Id);
ALTER TABLE Transition
ADD FOREIGN KEY
(ToNode_Id) REFERENCES Node(Id);
INSERT INTO Node VALUES ('A');
INSERT INTO Node VALUES ('B');
INSERT INTO Node VALUES ('C');
INSERT INTO Node VALUES ('D');
INSERT INTO Transition VALUES ('A','B');
INSERT INTO Transition VALUES ('B','C');
INSERT INTO Transition VALUES ('B','D');
INSERT INTO Transition VALUES ('C','D');
INSERT INTO Activity VALUES (1,'A');
INSERT INTO Activity VALUES (2,'B');
INSERT INTO Activity VALUES (3,'C');
INSERT INTO Activity VALUES (4,'D');Desired output:
ID
C

Hi,
Assuming Activity_id tells us nothing about the path, but that all the rows in Activity together form a single, complete path, we can get the desired results this way:
WITH     all_paths    AS
     SELECT     'A' || SYS_CONNECT_BY_PATH (a.Node_id, '/')
              || '/'     AS node_id_path
     FROM     Transition  t
     JOIN     Activity    a  ON  a.Node_Id  = t.ToNode_Id
     WHERE     LEVEL             = (
                            SELECT  COUNT (*)
                         FROM     activity
                         ) - 1
     START WITH  t.FromNode_Id  = 'A'
     CONNECT BY  t.FromNode_Id  = PRIOR t.ToNode_Id
SELECT       REGEXP_SUBSTR ( node_id_path
                 , '([^/]+)/' || (
                                    SELECT  Node_Id
                             FROM    activity
                             WHERE   Id     = 4  -- target_id
                         || '/'
               , 1
               , 1
               , NULL
               , 1
               )     AS prev_id
FROM       all_paths
;This assumes there is some character (I used '/' above) that we know never appears in Activity.Node_Id.
Since there are no loops in Transition, there can not be more than 1 path that involves all the rows in Activity. If there are N rows in Activity, that complete path will be the one that extends to LEVEL = N-1. (That's N-1, not N, because the join between Activity and Transition will always leave out the 1 row in Activity that has Node_Id = 'A'.) Once we have the complete path (which is node_id_path in the 1 row produced by all_paths), we just need to figure out what was the Node_Id that corresponds to the target id (4 in this example), and find the previous node_id from the delimited node_id_path.

Similar Messages

  • Looking for a query to find first/last dates in overlapping dates...

    Hi,
    I'm looking for a query to find the first dates and last dates in a table conaining overlapping dates.
    I have a subscription table which has for each Customer start and end date for different subscriptions.
    I want to know the different ranges of date where there is subscriptions active.
    so if the table has this:
    CustID, Start date, end date
    1, 2008-01-01, 2012-06-06
    1 ,2009-01-01, 2011-01-01
    1, 2011-01-01, 2013-02-02
    1, 2013-01-01, 2013-08-08
    1, 2014-01-01, 2014-04-04
    I want to produce this result:
    custid, range start, range end
    1, 2008-01-01, 2013-08-08
    1, 2014-01-01, 2014-04-04
    the first row is the range identified from the 4 rows in my subscription table.
    thanks :)

    I think I found it...
    http://stackoverflow.com/questions/5213484/eliminate-and-reduce-overlapping-date-ranges
    let me try this method
    Hi,
    m writing to follow up with you on this post. Thanks for you posting a reply to share your workground. Was the problem resolved after performing the above link? If you are satisfied with the above solution, I’d like to mark this issue as "Answered".
    Please also feel free to unmark the issue, with any new findings or concerns you may have.
    Thanks,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • Query to find out which workflow(s) use a particular message ? wf_messages

    Hi guys
    Hoping someone can help.
    I've a list of particular notfication messages, which are stored in the WF_MESSAGES_TL and WF_MESSAGES table, and I need to find out which workflows use them.
    Can anyone tell me what table I can query to find this out ?
    There's no referential integrity which I can use to find this out, and google has turned up nothing so far.
    Any ideas ?
    Thanks a lot
    Scott

    You can use this and tweak it around:
    select p.process_item_type, p.process_name, p.activity_name, a.message
    from wf_process_activities p, wf_activities a
    where p.process_item_type=a.item_type and
    p.activity_name=a.name and
    a.end_date is null;-- means the active/current activity
    Regards,
    Alejandro

  • Query to find all text attachments for items

    I am using the query below to try to find all active items for my org that have an attachment of type 33 (something we have defined I believe) and contain specific text. Some of the items appear to meet all criteria (active, right category, etc) but do not show up in my results. Can someone please take a look and see if there is a join missing, an outer join that should be used, or an overall easier way to do this query and get the text information?
    SELECT i.segment1 "Item Number",
    i.description "Item Description",
    u.user_name || ' (' || ppx.first_name || ' ' || ppx.last_name || ')' "Created By",
    i.creation_date "Created Date",
    to_number(r.revision) "Revision",
    to_char(r.effectivity_date, 'MM/DD/YYYY') "Effectivity Date",
    nvl(tx.short_text, '<No Drawing Info>') "Drawing Info / Attachment"
    FROM apps.mtl_system_items_b i,
    apps.mtl_item_revisions_b r,
    apps.fnd_user u,
    apps.per_people_x ppx,
    apps.fnd_attached_documents ad,
    apps.fnd_documents d,
    apps.fnd_documents_tl t,
    apps.fnd_documents_short_text tx
    WHERE i.organization_id = 90 AND -- for MBE only
    r.organization_id = 90 AND -- for MBE only
    ad.pk1_value = 90 AND -- for MBE only
    ad.entity_name = 'MTL_SYSTEM_ITEMS' AND
    (upper(tx.short_text) LIKE '%DWG%' OR
    upper(tx.short_text) LIKE '%SIZE%' OR
    upper(tx.short_text) LIKE '%DRAW%') AND
    tx.short_text != 'DWG NONE' AND
    d.document_id = t.document_id AND
    t.source_lang = 'US' AND
    t.LANGUAGE = 'E' AND
    to_number(ad.pk2_value) = i.inventory_item_id AND
    t.document_id = ad.document_id AND
    tx.media_id = t.media_id AND
    d.category_id = 33 AND
    i.inventory_item_status_code = 'Active' AND
    i.inventory_item_id = r.inventory_item_id AND
    u.employee_id = ppx.person_id AND
    u.user_id = i.created_by AND
    to_number(r.revision) =
    (SELECT MAX(to_number(r2.revision))
    FROM apps.mtl_item_revisions_b r2
    WHERE r2.inventory_item_id = i.inventory_item_id) AND
    r.effectivity_date =
    (SELECT MAX(r3.effectivity_date)
    FROM mtl_item_revisions_b r3
    WHERE r3.inventory_item_id = i.inventory_item_id)
    GROUP BY i.segment1,
    r.revision,
    i.description,
    u.user_name,
    ppx.first_name,
    ppx.last_name,
    i.creation_date,
    r.effectivity_date,
    tx.short_text
    ORDER BY i.segment1 ASC;
    Thank you!
    Message was edited by:
    matt.schutz

    There is no workbook/worksheet linkage to a business area. So you cannot search for a business area and find all the workbooks "attached" to that business area. The attachment of workbooks is at the folder level. It is actually possible, if you are sharing folders among business areas, to create a workbook with data from 2 or more business areas. I have tested that and it is indeed possible. In Discoverer Administrator you can check on folder dependencies to see what workbooks use the folder. Though in my version of Discoverer, there is a problem with Discoverer Plus, such that the workbook save in Plus is not creating this dependency information like it should. At least I have not found any way to take a business area and determine what workbooks would fall under it. Maybe someone else has found a way.
    John Dickey

  • Query to find out the Activities done against a table

    Hi,
    One table has been truncated and data reloaded into the table by the user. But at latter stage user deny that activity. I believe all these activities stored in any oracle 10g database table.
    Need a query to find out the activities done on a specific date say 6th Sep.
    This is too urgent. Thanks in advance

    Hi,
    Welcome to the forum!
    If you don't have enable table auditing maybe you can see last_ddl_time column of user_objects view:
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL> select * from test2;
          COL1       COL2       COL3
             1          1          3
             1          2          3
             1          3          3
    SQL> select to_char(uo.created, 'DD/MM/YYYY HH24:MI:SS'), to_char(uo.last_ddl_time, 'DD/MM/YYYY HH24:MI:SS') from user_objects uo where uo.object_name = 'TEST2';
    TO_CHAR(UO.CREATED,'DD/MM/YYYY TO_CHAR(UO.LAST_DDL_TIME,'DD/M
    12/09/2009 12:20:26            12/09/2009 12:20:27
    SQL> truncate table test2;
    Table truncated
    SQL> select to_char(uo.created, 'DD/MM/YYYY HH24:MI:SS'), to_char(uo.last_ddl_time, 'DD/MM/YYYY HH24:MI:SS') from user_objects uo where uo.object_name = 'TEST2';
    TO_CHAR(UO.CREATED,'DD/MM/YYYY TO_CHAR(UO.LAST_DDL_TIME,'DD/M
    12/09/2009 12:20:26            12/09/2009 14:01:21
    SQL> Regards,

  • How to wirte a query to fing the active courses in the catalog

    Hi,
    I am new to OLM. I am trying to rite a query to find active courses in a catalog.
    I have seen tables like OTA. OTA_LEARNING_OBJECTS, OTA_OFFERINGS.
    However , i would like to know, how to join these tables or some other tables excatly to get this right.
    Some help please.

    Can I suggest you refer to eTRM_ in MetaLink. This will allow you to see the objects in the OTA (OLM) schema and work out the tables, views and relationships you need to use. The query you are looking to do should be quite straightforward.
    Regards
    Tim

  • Query to find the latest record with respect to the current status

    Dear gurus
    I have the following data in a table
    Customernum
    bkcode
    reqtdate
    Prevstat
    currstat
    The data will be like this
    CustomerNum bkcode reqdate prevstat currstat
    5900 1 03-Aug-12 0 1
    5900 1 06-Aug-12 1 0
    5900 5 22-Jun-12 0 1
    If a customer has an issue to solved, a record is added with bkcode , register date and currstat will be 1
    If the issue is resolved for the bookingcode,a new record is added, the currentstatus will become 0. and prev stat will show 1. Row no 1 and 2 reflects this case
    If this table is queried for finding the unresolved issues. the output should be only the Last row of the above example. since issue with bookingcode 1 has been resolved
    I have trying hard to get this thing confused what to use Lead or Max
    Kindly guide me

    Hi,
    one way here:
    WITH mytable(CustomerNum, bkcode, reqdate, prevstat, currstat)
    AS
       SELECT 5900, 1, TO_DATE('03-Aug-12', 'DD-Mon-YY'), 0, 1 FROM DUAL UNION ALL
       SELECT 5900, 1, TO_DATE('06-Aug-12', 'DD-Mon-YY'), 1, 0 FROM DUAL UNION ALL
       SELECT 5900, 5, TO_DATE('22-Jun-12', 'DD-Mon-YY'), 0, 1 FROM DUAL
    SELECT CustomerNum, bkcode, reqdate, prevstat, currstat
      FROM (SELECT a.*
                 , ROW_NUMBER() OVER (PARTITION BY CustomerNum, bkcode
                                           ORDER BY reqdate DESC) AS rn
              FROM mytable a
    WHERE rn=1
       AND currstat=1;
    CUSTOMERNUM     BKCODE REQDATE     PREVSTAT   CURRSTAT
           5900          5 22-JUN-12          0          1Regards.
    Al
    Edited by: Alberto Faenza on Dec 18, 2012 5:23 PM
    Changed again!! Previous logic was wrong

  • Query to find the Salary table details  HRMS 11i

    I am looking  query to find the persons salary details in Oralce EBS 11i.
    I tried the below query bu it didn'ty work.
    SELECT papf.employee_number
    ,papf.full_name
    ,pj.NAME job
    ,haou.NAME ORGANIZATION
    ,ppp.proposed_salary_n salary
    FROM per_all_people_f papf
    ,per_all_assignments_f paaf
    ,per_jobs pj
    ,hr_all_organization_units haou
    ,per_position_definitions ppd
    ,per_all_positions pap
    ,per_pay_proposals ppp
    WHERE 1 = 1
    AND SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
    AND papf.current_employee_flag = 'Y'
    AND papf.employee_number IS NOT NULL
    AND paaf.person_id = papf.person_id
    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date
    AND paaf.job_id = pj.job_id
    AND paaf.organization_id = haou.organization_id
    AND paaf.position_id = pap.position_id
    AND pap.position_definition_id = ppd.position_definition_id
    AND ppp.pay_proposal_id = (SELECT MAX (pay_proposal_id)
    FROM per_pay_proposals
    WHERE assignment_id = paaf.assignment_id)
    In our case all the below tables have 0 records..
    select count(*) from PER_PAY_PROPOSALS ;
      COUNT(*)
             0
    select count(*) from pay_element_entry_values_f;
      COUNT(*)
             0
    select count(*) from PAY_ELEMENT_ENTRY_VALUES_F;
      COUNT(*)
             0
    select count(*) from PAY_ELEMENT_ENTRIES_F;
      COUNT(*)
             0

    Hi,
    Your results clearly states that there is no salary data which is been captured as well as there are no element entries which are assigned to any assignment.
    Please do the below which will insert records in salary as well as element entries table:
    1. Add a salary proposal to any active employee (People Enter and Maination --> Search for any employee --> Assignment --> Salary) - This will insert a record in PER_PAY_PROPOSALS table
    2. Add an element entry to any active assignment (People Enter and Maination --> Search for any employee --> Assignment --> Entries) - This will insert a record in PAY_ELEMENT_ENTRIES_F and PAY_ELEMENT_ENTRY_VALUES_F table
    Hope this clarifies.
    Thanks,
    Sanjay

  • Keyboard input goes to previously-active app

    Fairly often I'll change focus to a different app by pointing at it and tapping on the trackpad, or command-tabbing to it, the title bar will change to show the app I selected is now active, and I'll start typing...and the typing goes to the previously active app. Say, for example, I'm looking for something in a finder window, then command-tab to firefox, then command-w to close a tab. Instread of the tab closing the finder window closes. Yet, firefox is the active app. It's not a matter of slowness in the interface, either, I can be looking at firefox, see the title bar is active and the traffic lights in the upper left are lit, hit command-w, and something else on my screen disappears. Happens several times per day. I get characters intended for the search field of iTunes instead going to a cell in Excel all the time, or command-h hiding the wrong app, or control-tab doing who knows what rather than changing tabs in firefox, or....
    Anyone else? Any idea why I'd have this trouble? This has been happening since about the time I got a magic trackpad in September 2010 (if I recall), but I can't imagine it's a problem with the trackpad since it happens when I change apps with command-tab, too.

    This has happened twice in the last half hour...
    I copy some text from Excel, then press the (x) button in the search field of iTunes, which makes iTunes active and clears the search field, and command-v to past the text. The text goes into the same cell in Excel that it came from, so no harm but not only is iTunes not active anymore, my text didn't go where it was supposed to go. But the search field did clear and now says "Search Store", so I know iTunes got the (x) button press. I didn't imagine it.
    ETA: make that three times.

  • Where can I find my activation key?

    Hello,
    I am ready to completely reinstall Mac OS 10.9 on my macbook pro in order to clean it up.
    I bought Aperture a long time ago, in a shop (not the online store), and I do not have its box (in which there is the activation key) with me.
    Do you know, before reinstalling Mac OS, where I can find my activation key in the software or in the system. I would copy it on a paper and everything would be solved.
    When I will reinstall Aperture, will it ask the key, or is it someway linked to my apple account, even though I did not initially bought it on the Apple Store?
    Many Thanks,
    Nicolas

    Which Aperture version are you currently running, Nicolas?
    If it is not an AppStore version, you need the installer DVD to reinstall. The earlier Aperture versions are best installed and not migrated.
    As to the registration key:
    Earlier Aperture versions up to version Aperture 3.4.5 will show the registration key in the "About" panel - in the main menu bar: Aperture > About Aperture.
    (added: It will only show the last registration key. If you have an upgrade key, you will need the keys of the previous versions as well).
    If you already updated to Aperture 3.5.1, you do not need your Aperture serial number any longer. Aperture will have been associated with your Apple ID and it will show on the "Purchases" tab of the App Store, when you sign into the Store menu with the Apple ID, that you used, when you updated Aperture. Check the App Store and the Purchases, before you wipe your drive.   I strongly recommend to update to Aperture 3.5.1 and to associate Aperture with your AppleID, if you have not yet done that.  Then you should be able to reinstall from the AppleStore.  But keep a backup copy of Aperture 3.5.1 just in case, since the current version at the AppStore is Aperture 3.6, that will require Yosemite.

  • How to find the active workflows in the system

    Hi,
    we are going for upgrade, we want to find out the active workflows in the system
    please guide me, how to find the active workflows in the system
    is there any standard table to find the active workflows in the system
    please suggest me the step by step process to find the active workflows.
    thanks,
    chandra

    Welcome to the Forums.
    Please go through the FAQ of the Forum.
    You has posted your query in the wrong Forum, this one is dedicated to Oracle Forms.
    Please try {forum:id=1050}.
    Regards,

  • Query to find out the time used by an user for an application

    Hello All,
    I want to know the query to find out the whole time used by the user for an application. Please view the below data
    Employee:
    SNO EMP_ID EMP_NAME EMP_DATE LOGIN_TIME LOGOUT_TIME
    1 10 Visu 21-Nov-2010 06:30:00 07:30:00
    2 10 Visu 21-Nov-2010 06:40:00 07:20:00
    3 10 Visu 21-Nov-2010 06:50:00 07:50:00
    4 10 Visu 21-Nov-2010 07:30:00 08:30:00
    5 10 Visu 21-Nov-2010 09:30:00 10:30:00
    By checking the above data we can say that the total time Visu used the application is
    8.30 - 6.30 (From 1,2,3,4 records) = 2hrs
    10.30 - 9.30 (Based on 5th rec) = 1hr
    So the total time Visu used the application would be 3 hrs = 180 mins.
    Could you please help me in getting the result from that data using a query?

    odie_63 wrote:
    I think it may be solved with analytics too.
    with t1 as (
                select 1 sno,10 emp_id,'Visu' emp_name,'21-Nov-2010' emp_date,'06:30:00' login_time,'07:30:00' logout_time from dual union all
                select 2,10,'Visu','21-Nov-2010','06:40:00','07:20:00' from dual union all
                select 3,10,'Visu','21-Nov-2010','06:50:00','07:50:00' from dual union all
                select 4,10,'Visu','21-Nov-2010','07:30:00','08:30:00' from dual union all
                select 5,10,'Visu','21-Nov-2010','09:30:00','10:30:00' from dual
         t2 as (
                select  emp_id,
                        emp_name,
                        emp_date,
                        to_date(emp_date || login_time,'DD-MON-YYYYHH24:MI:SS') login_time,
                        to_date(emp_date || logout_time,'DD-MON-YYYYHH24:MI:SS') logout_time
                  from  t1
         t3 as (
                select  t2.*,
                        case
                          when login_time < max(logout_time) over(
                                                                  partition by emp_id,emp_date
                                                                  order by login_time
                                                                  rows between unbounded preceding
                                                                           and 1 preceding
                            then 0
                          else 1
                        end start_of_group
                  from  t2
         t4 as (
                select  t3.*,
                        sum(start_of_group) over(partition by emp_id,emp_date order by login_time) grp
                  from  t3
         t5 as (
                select  emp_id,
                        emp_date,
                        min(login_time) login_time,
                        max(logout_time) logout_time
                  from  t4
                  group by emp_id,
                           emp_date,
                           grp
    select  emp_id,
            numtodsinterval(sum(logout_time - login_time),'day') time_spent
      from  t5
      group by emp_id
      order by emp_id
        EMP_ID TIME_SPENT
            10 +000000000 03:00:00.000000000
    SQL> SY.

  • How to use ONE query to find out tree structure?

    ID------------upperID----------Name------------------------isFolder
    1------------ 0---------- Folder
    1------------------------------------1
    2------------ 1------------ Folder 1- Sub
    Folder--------------------1
    3------------ 2------------
    Folder1-Item1-A--------------------------0
    4------------ 1------------ Folder 1- Sub
    Item-----------------------0
    Hi all, if I have a table like above to demonstrate the
    folders and item relationship. This structure allows the user to
    create unlimited folders and items.
    Now I would like to use one query to find out the tree
    structure of this table, how could I do the query.
    Any help on this will be highly appreciated!
    Thanks,
    ez

    Also, see this thread:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=1&catid=7&threadid=12 55788&enterthread=y

  • Query to find the list of users having access to a particular scenario

    Hi,
    I am learning Hyperion Planning 9.2 x version. I wanted to know the query to find the list of users having access to Plan Iteration - 1 scenarion.
    As I am new to Hyperion Essbase and Hyperion Planning, I am assuming these ideas work out to get the desired result.
    1) As Hyperion Planning uses Relational DB to store the User Security information, we can query the list of users who is having access to Plan Iteration - 1 Scenario.
    I am not sure if this solution works. Please correct me If I am wrong.
    2) We can also query from the essbase editor to find out who all having access to this scenario.
    If the above is correct, can you please provide me the query.
    I am really need of this and I will be happy if any one provide the solution.
    Thanks & Regards,
    Upendra. Bestha

    Hi,
    If you are looking for some SQL to retrieve the access rights by member then you can use something like (SQL Server code though can easily be modified for Oracle)
    SELECT usr.object_name as Username,mem.object_name as Member,
    'Access Rights' = CASE acc.access_mode
    WHEN -1 THEN 'None'
    WHEN 1 THEN 'Read'
    WHEN 2 THEN 'Write'
    WHEN 3 THEN 'Write'
    ELSE 'Unknown' END,
    'Relation' = CASE acc.flags
    WHEN 0 THEN 'Member'
    WHEN 5 THEN 'Children'
    WHEN 6 THEN 'Children (inclusive)'
    WHEN 8 THEN 'Descendants'
    WHEN 9 THEN 'Descendants (inclusive)'
    ELSE 'Unknown' END
    FROM
    hsp_access_control acc, hsp_object mem, hsp_object usr
    WHERE acc.object_id = mem.object_id
    AND acc.user_id = usr.object_id
    AND mem.object_name = 'Plan Iteration - 1'
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Query to find out the list of user who have delete access

    Hi,
    I need a query to find out the list of users who have delete access on perticular folder/universe/ reports  in infoview.
    Please advice.
    Regards,
    Neo.

    orton607 wrote:
    thanks for replying guys. But the thing is i am using dynamic sql execute immediate in my package, so i want those tables also and the schema name.
    thanks,
    ortonThis is not possible. The best you could do is to have a good guess.
    Or how would you parse some dynamic statement as this:
       v_suffix := 'loyees';
       v_sql := 'Select count(*) from (select ''nonsense'' col1 from emp'||v_suffix||') where col1 = ''Y'''';
       execute_immediate(v_sql);
    ...What is the table name? How do you want to parse that?
    Better rewrite all dynamic SQL statements into non dynamic ones. Or do the source control logic for those dynamic parts in an extra module. For example implement your own dependency table and force every developer to add there all dynamic parts.

Maybe you are looking for

  • IBooks on iPad and iPhone

    I have an iPad and and iPhone. I have iBooks app on both. I don't have an iMac computer. Can I get the books I purchased on my iPad to show up on my iPhone. I believe I have the settings on both to Sync. I saw on on Apple commercial they showed someo

  • Error while loading shared libraries: /usr/lib/libwebkitgtk-1.0.so.0

    So, I have a sligtly old computer that I use web browsers like midori on, because they are good for slow computers. Whenever I launch dwb or midori or luakit from the launcher in the Gnome shell, nothing happends. When launching from the terminal (dw

  • Result row shows min. value as Blank.

    Hi Guru, I have following scenario in query, Eg. 1.Values in objects in column,                           10,000                                                                         Blank (no value)                                                 

  • Insertion Point vanishes

    Sometimes the Insertion Point in the NOTES app vanishes and I have to quit Notes to gte it back. Anyone else having this problem? Its a bug..

  • Compilation error with geolocation

    I'm getting a strange error when packaging the IPA file with Flash CS5. Compilation fails because of "invalid input". This only occurs when I add the geolocation classes. Could it be that I am compiling against the wrong sdk? Where can I set this in