SIngle query for table Update

In a procedure I have a CURSOR FOR_LOOP
  FOR CUR_CONTO in
     (SELECT TO_NUMBER(lpad(nvl(ltrim(K_DRG),'0'),3,'0')   ) K_DRG,
         CASE
        WHEN K_MDC  = 'NA' THEN 0
         WHEN K_MDC <> 'NA' THEN TO_NUMBER( lpad(nvl(ltrim(K_MDC),'0'),2,'0')   )
         END K_MDC,
                 TO_NUMBER(substr(PAZIENTE,     instr(PAZIENTE,'@')+1, 4) ) KCODET, 
                 substr(PAZIENTE,     instr(PAZIENTE,'@')+5, 1)           TIPORDT,  
                 TO_NUMBER(SUBSTR(N_CCLINICA,1,4) )                      ANNOT
            FROM table_g)
     LOOP
     UPDATE table_dm SET K_DRG = CUR_CONTO.K_DRG , K_MDC = NVL(CUR_CONTO.K_MDC,0)
                    WHERE  K_CODE  = CUR_CONTO.KCODET
                    AND    TIPORD  = CUR_CONTO.TIPORDT
                    AND    ANNO    = CUR_CONTO.ANNOT ;
     end  LOOP;
  I want change it in a single query, how can I do?
I write
UPDATE table_dm SET K_DRG , K_MDC =
    (SELECT     TO_NUMBER(lpad(nvl(ltrim(K_DRG),'0'),3,'0')   ) K_DRG,
         CASE
        WHEN K_MDC  = 'NA' THEN 0
         WHEN K_MDC <> 'NA' THEN TO_NUMBER( lpad(nvl(ltrim(K_MDC),'0'),2,'0')   )
         END K_MDC FROM table_g )
            but I don't know how insert in the where the variable KCODET, TIPORDT ,ANNOT get from table table_g
WHERE K_CODE = CUR_CONTO.KCODET
AND TIPORD = CUR_CONTO.TIPORDT
AND ANNO = CUR_CONTO.ANNOT ;
And How can I lock table_dm because it has some trigger in updating?
Thanks in advance

It should be something like this
UPDATE table_dm dm
    SET (K_DRG, K_MDC) = (
                SELECT k_drg, NVL(k_mdc,0)
                  FROM (SELECT TO_NUMBER(lpad(nvl(ltrim(K_DRG),'0'),3,'0')   ) k_drg,
                         CASE
                              WHEN k_mdc  =  'NA' THEN 0
                              WHEN k_mdc  != 'NA' THEN TO_NUMBER( lpad(nvl(ltrim(k_mdc),'0'),2,'0'))
                         END k_mdc,
                         TO_NUMBER(substr(paziente, instr(paziente,'@')+1, 4)) kcodet, 
                         substr(paziente, instr(paziente,'@')+5, 1) tipordt,  
                         TO_NUMBER(SUBSTR(n_cclinica,1,4)) annot
                       FROM table_g) t
                 WHERE t.kcodet  = dm.k_code
                   AND t.tipordt = dm.tipord
                   AND t.annot   = dm.annot
  WHERE EXISTS (
           SELECT null
             FROM (SELECT TO_NUMBER(lpad(nvl(ltrim(K_DRG),'0'),3,'0')   ) k_drg,
                    CASE
                         WHEN k_mdc  =  'NA' THEN 0
                         WHEN k_mdc  != 'NA' THEN TO_NUMBER( lpad(nvl(ltrim(k_mdc),'0'),2,'0'))
                    END k_mdc,
                    TO_NUMBER(substr(paziente, instr(paziente,'@')+1, 4)) kcodet, 
                    substr(paziente, instr(paziente,'@')+5, 1) tipordt,  
                    TO_NUMBER(SUBSTR(n_cclinica,1,4)) annot
                  FROM table_g) t
            WHERE t.kcodet  = dm.k_code
              AND t.tipordt = dm.tipord
              AND t.annot   = dm.annot
            )Note: Code not tested

Similar Messages

  • How can I update the table with a single query for...

    I have a table with columns C1 and C2.
    C1 C2
    A1 null
    A1 null
    A1 null
    A1 null
    A2 null
    A2 null
    A2 null
    A3 null
    A4 null
    A4 null
    I want to update my table with a single query so that I would have data like
    C1 C2
    A1 1
    A1 2
    A1 3
    A1 4
    A2 1
    A2 2
    A2 3
    A3 1
    A4 1
    A4 2
    The updated column C2 has the values like serial no grouped on the column C1.

    SQL> create table mytable
      2  ( c1 varchar2(2)
      3  , c2 number(2)
      4  )
      5  /
    Tabel is aangemaakt.
    SQL> insert into mytable (c1)
      2  select 'A1' from dual union all
      3  select 'A1' from dual union all
      4  select 'A1' from dual union all
      5  select 'A1' from dual union all
      6  select 'A2' from dual union all
      7  select 'A2' from dual union all
      8  select 'A2' from dual union all
      9  select 'A3' from dual union all
    10  select 'A4' from dual union all
    11  select 'A4' from dual
    12  /
    10 rijen zijn aangemaakt.
    SQL> select * from mytable
      2  /
    C1                                     C2
    A1
    A1
    A1
    A1
    A2
    A2
    A2
    A3
    A4
    A4
    10 rijen zijn geselecteerd.
    SQL> merge into mytable t1
      2  using (select c1
      3              , row_number() over (partition by c1 order by null) rn
      4              , rowid rid
      5           from mytable
      6        ) t2
      7     on (t1.rowid = t2.rid)
      8   when matched then
      9        update set c2 = rn
    10   when not matched then
    11        insert values (null,null)
    12  /
    10 rijen zijn samengevoegd.
    SQL> select * from mytable
      2  /
    C1                                     C2
    A1                                      1
    A1                                      2
    A1                                      3
    A1                                      4
    A2                                      1
    A2                                      2
    A2                                      3
    A3                                      1
    A4                                      1
    A4                                      2
    10 rijen zijn geselecteerd.Regards,
    Rob.

  • Single query for querying three tables

    Hi All,
    We are trying to construct a sql query(a single query), which can perform the below functionality.
    Assume, that there are three tables,
    TABLE1: 3 Columns
    1) ID -> PRIMARY KEY
    2) TYPE -> Allows only values 'A' or 'B'
    3) REF_ID(this can refer to TABLE2(ID) or TABLE3(ID)).
    TABLE2: 2 Columns
    1) ID -> PRIMARY KEY
    2) DETAILS -> Any normal text
    TABLE3: 2 Columns
    1) ID -> PRIMARY KEY
    2) DETAILS -> Any normal text
    We need to come up with a query that, given TABLE1's(ID), we need to fetch the corresponding record in TABLE1, and we need to fetch the corresponding record from TABLE2 or TABLE3, depending on the below conditions.
    If the TYPE for the TABLE1's(ID) is 'A'
    Then get the details from TABLE2's by mapping TABLE1.REF_ID = TABLE2.ID
    If the TYPE for the TABLE1's(ID) is 'B'
    Then get the details from TABLE3's by mapping TABLE1.REF_ID = TABLE3.ID
    We need to accomplish all these tasks in a single query.
    Thanks for your kindly help,
    Sreenivasan

    SQL> select * from test_qry1;
    ID T REF_ID
    1 A 100
    2 A 200
    3 B 300
    SQL> select * from test_qry2;
    ID DETAILS
    100 Human Resources
    200 It Services
    300 Relationships
    SQL> select * from test_qry3;
    ID DETAILS
    100 Human Beings
    200 Conference
    300 Used things
    SQL> SELECT t1.ID,
    DECODE(t1.type,'A',( SELECT t2.details FROM test_qry2 t2 WHERE t1.ref_id = t2.id
    'B',( SELECT t3.details FROM test_qry3 t3 WHERE t1.ref_id = t3.id
    ) details
    FROM test_qry1 t1;
    ID DETAILS
    1 Human Resource
    2 It Services
    3 Used things
    Try with this query.
    Thanks,
    Vissu......

  • Calling Batch input from Web Dynpro - any alternatives for table updates?

    Hi!
    I am asked to create a screen in Web Dynpro for the GJ30 transaction (JV Cutback mapping of WBS' elements). I created a remote enabled function module which call batch input for GJ30 . Testing the Function modules direclty goes fine, but not calling the function module from WD. then I get the same error message as when I once tried to call SAP GUI from Web Dynpro ( Call transaction /submit program).
    My next step is to try to create a batch input session (instead of call transaction) and run it using rsbdcsub, and then check the result of the run. But maybe this will fail of the same reason as well, and I suppose this will make the user waiting longer for the response .
    I read somewhere that Web Dynpro does not support batch Input. But what can you do when there are no standard BAPI's for the update you want to do in SAP ?  We are not supposed to do direct table updates.  
    Anyone who have struggled with the same issues and found a solution??
    regards, Tine

    Hi,
    as BDC is calling screens and in Webdynpro ABAP you cannot use SAP GUI sceeen, you are getting short dump.
    Refer CNTL_SYSTEM_ERROR in webservices from r/3 system
    Thanks,
    Chandra

  • Single Query for getting total no of records N getting records from a selected range

    Hi,
    Got the below query:
    SELECT a.*, rowid FROM (SELECT name, postcode FROM Tbl ORDER BY name asc)a WHERE ROWNUM <=30
    MINUS
    SELECT b.*, rowid FROM (SELECT name, postcode FROM Tbl ORDER BY name asc) b WHERE ROWNUM <= 10
    Though I got the results right, I also want to know the total no of records from "SELECT name, postcode FROM Tbl ORDER BY name asc". Does anyone knows how to do it in a single query?
    Thanks.

    hi Carol
    The following output may help you.
    SQL> l
    1 select * from emp where (rowid,0) in (select rowid,mod(rownum,10)-rownum from emp)
    2 minus
    3* select * from emp where (rowid,0) in (select rowid,mod(rownum,6)-rownum from emp)
    SQL> /
    EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
    7839 KING PRESIDENT 17-NOV-81 5000 10
    7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
    7876 ADAMS CLERK 7788 12-JAN-83 1100 20
    7900 JAMES CLERK 7698 03-DEC-81 950 30
    The above query fetches the 6,7,8,9th records only.
    Well my suggestion would be not to use ROWNUM directly in where clause since it changes dynamically. it is not a fixed value. for example pls see the result.
    SQL> select rownum,empno,ename,sal,job from emp where sal > 3000;
    ROWNUM EMPNO ENAME SAL JOB
    1 7839 KING 5000 PRESIDENT
    SQL> select rownum,empno,ename,sal,job from emp where sal > 1000;
    ROWNUM EMPNO ENAME SAL JOB
    1 7566 JONES 2975 MANAGER
    2 7654 MARTIN 1250 SALESMAN
    3 7698 BLAKE 2850 MANAGER
    4 7782 CLARK 2450 MANAGER
    5 7788 SCOTT 3000 ANALYST
    6 7839 KING 5000 PRESIDENT
    7 7844 TURNER 1500 SALESMAN
    8 7876 ADAMS 1100 CLERK
    9 7902 FORD 3000 ANALYST
    10 7934 MILLER 1300 CLERK
    10 rows selected.
    SQL> select * from emp where rownum = 1;
    EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
    7566 JONES MANAGER 7839 02-APR-81 2975 20
    The record of employee KING is getting the rownum differently.
    My understanding (out of my little knowledge) is the rownum values are assigned to the records only after the records are read physically and after applying the conditions(without rownum). Then the row numbers (rownum) is assigned to the records. Hence the rownum is not constant to a record since it is a dynamic value.
    Well i would like to know the suggestions of the ORACLE EXPERTS here in the discussion forum.
    If my finding is correct then OK if not Pls excuse me and pls give the correct solution
    Regards
    Prakash Eranki
    [email protected]

  • Single query for displaying all but 1 column values for all tables

    Hi,
    All the tables have SYS_CREATION_DATE column.
    But I dont want to display this column value
    Can someone suggest some way in which i could achive this?
    Oracle version:11gR1
    OS:SunOS
    Cheers,
    Kunwar
    Edited by: user9131570 on Jul 6, 2010 7:57 PM

    user9131570 wrote:
    @Tubby
    I *want to display table-wise the values of all but 1(SYS_CREATION_DATE) columns in my database.*
    I need this in order to compare it to another database for all these values .Let me make a wild guess at what you are getting at.
    Given these two tables
    create table emp
       (empid number,
        empname varchar2(15),
        empaddr   varchar2(15),
        sys_creation_date date);
    create table dept
       (deptid number,
        deptmgr varchar2(10),
        sys_creation_date date);you want to somehow combine
    select empid,
             empname,
             empaddr
    from emp;with
    select deptid,
             deptmgr
    from dept;into a single sql statement?

  • Query for Software Updates Reports Install Date for only Some of the Installed Updates

    We use the following query to retrieve a list of software updates for a specific collection and software update group.  There are many cases where the installation status of a software update is 'installed' but there is no corresponding 'install
    date'.  Can anyone tell me why?
    declare   @AuthListLocalID as int
    declare @CollID as varchar(8)
    Select @CollID=CollectionID
    from v_Collection
    WHERE CollectionID='ZSV0000A'
    select @AuthListLocalID=CI_ID from   v_AuthListInfo
    where    CI_UniqueID='ScopeId_EAD5EB80-CC39-4EA2-B08F-A45BB84F1D76/AuthList_4DEAD110-5740-495E-8BD8-467A55C50A0C'
    select
    rs.Name0 as ServerName,
    catinfo.CategoryInstanceName as Vendor,
    catinfo2.CategoryInstanceName as   UpdateClassification,
    ui.BulletinID as BulletinID,
    ui.ArticleID as ArticleID,
    Case ui.Severity WHEN 10 THEN 'Critical' WHEN 8 THEN 'Important' ELSE LTRIM(ui.Severity) END as Rating,
    ui.Title as Title,            
    Targeted=(case when ctm.ResourceID is not   null then '*' else '' end),
    Installed=(case when css.Status=3 then   '*' else '' end),
    IsRequired=(case when css.Status=2 then   '*' else '' end),
    Deadline=cdl.Deadline,            
    CAST(CASE   IsNull(AddRem.InstallDate0,CAST('1/1/1900' as smalldatetime)) WHEN   CAST('1/1/1900' as smalldatetime) THEN AddRem64.InstallDate0 ELSE   AddRem.InstallDate0 END as Date) as 'Install Date',
    ui.InfoURL as InformationURL
    from v_UpdateComplianceStatus css
    inner join v_UpdateInfo ui on   ui.CI_ID=css.CI_ID
    inner join v_CIRelation cir 
    on ui.CI_ID=css.CI_ID and cir.ToCIID =   ui.CI_ID -- add this
    inner join v_CICategories_All catall on   catall.CI_ID=ui.CI_ID 
    inner join v_CategoryInfo catinfo on   catall.CategoryInstance_UniqueID = catinfo.CategoryInstance_UniqueID and   catinfo.CategoryTypeName='Company' 
    inner join v_CICategories_All catall2 on   catall2.CI_ID=ui.CI_ID 
    inner join v_CategoryInfo catinfo2 on   catall2.CategoryInstance_UniqueID = catinfo2.CategoryInstance_UniqueID
    and   catinfo2.CategoryTypeName='UpdateClassification'
    left outer join v_CITargetedMachines ctm   on ctm.CI_ID=css.CI_ID
    and ctm.ResourceID = css.ResourceID
    left outer join v_GS_ADD_REMOVE_PROGRAMS   AddRem on css.ResourceID = AddRem.ResourceID and ui.Title =   AddRem.DisplayName0
    left outer join   v_GS_ADD_REMOVE_PROGRAMS_64 AddRem64 on css.ResourceID = AddRem64.ResourceID   and ui.Title = AddRem64.DisplayName0
    left outer join (select atc.CI_ID
    ,CreationTime=min(a.CreationTime)
    ,ExpirationTime=min(a.ExpirationTime)
    ,StartTime=min(a.StartTime)
    ,EnforcementDeadLine=min(a.EnforcementDeadLine)
    ,LastModificationTime=min(a.LastModificationTime)
    ,Deadline=min(a.EnforcementDeadline)
    from v_CIAssignment a
    inner join v_CIAssignmentToCI atc on   atc.AssignmentID=a.AssignmentID
    group by atc.CI_ID) cdl  
    on cdl.CI_ID=css.CI_ID
    left outer join v_R_System rs ON   css.ResourceID=rs.ResourceID
    where    css.ResourceID in (
    Select vc.ResourceID
    FROM v_FullCollectionMembership vc
    WHERE vc.CollectionID=@CollID)
    and cir.FromCIID=@AuthListLocalID
    and cir.RelationType=1  
    order by
    catinfo.CategoryInstanceName
    , catinfo2.CategoryInstanceName
    , ui.ArticleID

    Hi Mate,
    Its really difficult to do get the installed date of the patches as there is no table available in SCCM  DB to pull this info i had a requirement in the past but i was unable to do had done it via work around.
    This can be done after editing of sms_def.mof file or else using the power-shell script in windows server 2008 where the powershell is a feature by default.
    H/W inventory: 
    For the 2000 servers this has to be installed but if we enable this its mentioned it may utilize upto 100 % of the Memory during the h/w inventory you can check that in your SMS_DEF.MOF  -
    QuickFixEngineering you can see the warning.uickFixEngineering
    http://support.microsoft.com/kb/279225/en-us
    Powershell script:
    http://msmvps.com/blogs/richardsiddaway/archive/2011/10/23/1760058.aspx
    the warning for the quick fix engineering is not there on 2012 but there on 2007 hope the info help you to achieve your output.
    Kamala kannan.c| Please remember to click “Mark as Answer” or Vote as Helpful if its helpful for you. |Disclaimer: This posting is provided with no warranties and confers no rights

  • Need a single query for all IF conditions

    I have the following requirements which looks at two parameter p_batch and p_frequency and frames a select to query from the Employers table.
    Can I achieve all these in a single select statement? If so how to do it?
    Please help.
    Thank you.
    IF p_batch = 1 and p_frequency = 2 then
    SELECT er.employer_id
    FROM employers er
    WHERE SUBSTR (er.name, 1, 1) BETWEEN 'A' AND 'M'
    AND er.freq_flag = 2
    ORDER BY er.name asc;
    ELSIF p_batch = 2 and p_frequency = 2 then
    Open cursor for processing employer starting with N to Z
    SELECT er.employer_id
    FROM employers er
    WHERE SUBSTR (er.name, 1, 1) BETWEEN 'N' AND 'Z'
    AND er.freq_flag = 2
    ORDER BY er.name asc;
    ELSIF p_batch = 1 and p_frequency = 1 then
    Open cursor for processing employer starting with A to M for all ER
    SELECT er.employer_id
    FROM employers er
    WHERE SUBSTR (er.name, 1, 1) BETWEEN 'A' AND 'M'
    ORDER BY er.name asc;
    ELSIF p_batch = 2 and p_frequency = 1 then
    Open cursor for processing employer starting with N to Z for all ER
    SELECT er.employer_id
    FROM wweb.ptei_employers er
    WHERE SUBSTR (er.name, 1, 1) BETWEEN 'N' AND 'Z'
    ORDER BY er.name asc;
    ELSE
    -- Return as no need to send any mails
    END IF;

    Hi,
    Sure, you can do that in a single statement. Here's one way:
    SELECT       employer_id
    FROM       employers
    WHERE       SUBSTR (name, 1, 1) BETWEEN  CASE p_batch
                                 WHEN  1  THEN  'A'
                                 WHEN  2  THEN  'N'
                               END
                         AND      CASE p_batch
                                 WHEN  1  THEN  'M'
                                 WHEN  2  THEN  'Z'
                               END
    AND       (     (     p_frequency = 2
              AND     freq_flag   = 2
           OR     p_frequency  = 1
    ORDER BY  name
    ;

  • Need Help To Create a Single  Query For it

    I am Making an Oracle Report
    Which Include 4 Formulae Columns,Each of Them Represent
    1) Qty_inWarehouse(Whose Location_code=1)
    2) Value_inWarehouse(cost_price*qty)
    3) Qty_inlocation(This will Populate Based On Used Entered Value,Means the user will enter a particular Location,Location_code is other than 1)
    4) Value_inlocaiton
    Now All these Values are Coming From Inv_stores Tables.If I use Formula for each Column Then I have to Select This
    Table 4 Times(inv_stores)
    The Structure Of Inv_stores Table is
    location_code Varcha2(3), pk
    Department_Code Varchar2(2), pk
    Product_code Varchar2(15), pk
    Qty_instock Number(6)
    I have Written Query Like This
    In This Query i Have Directly used Location_code as '1' and Another Location as '22' (Which is of One Showroom) and Tried By Testing With Department No.'10'.It is Selecting Cost Price from inv_product Table.
    Now This inv_product is Product MAster Table.Each Product is uniquely identified by Department_code and
    Product_code in this table.
    Now in this Query i Want The Value per department Wise....
    Select A.department_code,Sum(Nvl(A.qty_instock,0) - nvl(A.qty_reserved,0) + nvl(A.qty_delv_retn,0))
    STK_QTY_INLOC,
    Sum((Nvl(A.qty_instock,0) - nvl(A.qty_reserved,0) + nvl(A.qty_delv_retn,0))) STK_VALUE_INLOC,
    SUM(nvl(inv_product.qty_backorder,0)) as Qty_BO,
    Sum(Nvl(B.qty_instock,0) - nvl(B.qty_reserved,0) + nvl(B.qty_delv_retn,0)) STK_QTY_INWH,
    Sum((Nvl(B.qty_instock,0) - nvl(B.qty_reserved,0) + nvl(B.qty_delv_retn,0))*nvl(inv_product.cost_pricekd,0)) STK_VALUE_INWH
    from inv_stores A,inv_product,inv_stores B
    where B.location_code(+) = '1' and
    B.Department_Code(+) = '10' and
    A.department_code = B.department_code(+) and
    A.product_code = B.product_code(+) and
    A.location_code = '22' and
    inv_product.department_code = A.department_code and
    inv_product.product_code = A.product_code
    Group By A.department_code
    But it is Giving Useless Results
    now The 4 Diffrent Queries Which i am Uising is This
    This Will Give me Stock quantity in Location
    Select sum((nvl(qty_instock,0) - nvl(qty_reserved,0)) + nvl(qty_delv_retn,0))
    into var_qty
    from inv_stores
    where department_Code = :department_code and
    location_code = :location_code;
    This will Give me Value For That Location
    Select sum(((nvl(inv_stores.qty_instock,0) - nvl(inv_stores.qty_reserved,0)) +
    nvl(inv_stores.qty_delv_retn,0))*nvl(inv_product.cost_price,0))
    into var_stk_value
    from inv_stores,inv_product
    where inv_stores.department_Code = :department_code and
    inv_stores.location_code = :location_code and
    inv_product.department_code = inv_stores.department_Code and
    inv_product.product_code = inv_stores.product_code;
    This Will Give me Qty in W/H
    Select sum((nvl(qty_instock,0) - nvl(qty_reserved,0)) + nvl(qty_delv_retn,0))
    into var_qty
    from inv_stores
    where department_Code = :department_code and
    location_code = '1';
    This Will Give me Value in W/H
    Select sum(((nvl(inv_stores.qty_instock,0) - nvl(inv_stores.qty_reserved,0)) +
    nvl(inv_stores.qty_delv_retn,0))*nvl(inv_product.cost_price,0))
    into var_stk_value
    from inv_stores,inv_product
    where inv_stores.department_Code = :department_code and
    inv_stores.location_code = '1' and
    inv_product.department_code = inv_stores.department_Code and
    inv_product.product_code = inv_stores.product_code;
    These 4 Queries is Selecting Data from inv_stores Table,I want to Combine Them Into One........
    Suppose if we take for location 22 whose name is 'SHL'(It is s showroom)
    Sample Data Will Be Something Like
    Dept W/H(qty) W/h(Value) SHL(qty) SHL(Value)
    00 3 90 1 30
    10 0 0 2 50
    12 5 100 1 20

    This forum is for issues with the SQL Developer tool. You'd get more response in the SQL And PL/SQL forum (where you cross-posted already).
    Regards,
    K.

  • Table borders in Dreamweaver cs4 design view too big, I would like to have a single line for tables

    Hi All,
    I design email templates using only tables but the design view options in cs4 only provide a huge 3px border in order to display the tables. In older versions of macromedia etc the table view is only 1px wide which makes designing a whole lot easier.
    When I add tables within tables it adds more spacing and looks way off and it also looks off in browsers, causing me to have to increase and decrease padding sure this is no way to create table even if they have no borders and the table width is already fixed?
    I have tried turning borders off in visual aids but there is no option to have just a single line to demonstrate a border!!
    I can't work like this, can anybody help me or is this just the way borders are displayed in cs4 for the pc???

    Hi Guys, thanks for getting back to me.
    the problem is purely about design view display and not about coding.
    Below is how CS4 displays borders with two lines which I find difficult to decipher:
    Then below is Macromedia DM 8 and this how I want the borders to look, with single lines to display the tables.
    This may just be the way Abobe have decided to display tables in design view and there may not be any option to change it but if you know any way to change it I would be most greatful.
    Thanks again.
    G

  • Creation of a Single button for both Update and Insert

    Hi,
    I want to create a button which performs both Insert and Update function. As of now i have 2 seperate buttons. Can I combine them in to one by writing a procedure which checks for the data in the database...If the record exists, then it should update the record, if not it should insert...Please guide me
    Regards,
    Pa

    Hi,
    If I am inserting in to the table a new record, how do I check for that column in the table...
    It should work this way..
    I have a list of users in a page, if I click on any user name, it will redirect me to another screen which will allow me to create a record for the selected user name. I want to check the selected user name in the table. If it is already existing then need to update, else insert.
    Regards,
    Pa

  • Plz help, A select query for table giving foll o/p

    A table has a single column with following data
    Col1
    170
    10
    140
    520
    20
    60
    70
    The select query should return the data in the following format
    Col1 Col2 Col3 Col4
    170 3 1 0
    10 0 0 1
    140 2 2 0
    520 10 1 0
    20 0 1 0
    60 1 0 1
    70 1 1 0

    Using my awesome puzzle solving brain I note that Col2 = 50 Col3 = 20 Col4 = 10.
    But you should be telling US that.
    select col1, floor(col1/50) col2, floor(mod(col1,50)/20) col3, floor(mod(mod(col1,50),20)/10) col4
    from mytable.
    I win the internets!
    Edited by: Dave Hemming on Dec 19, 2008 11:35 AM

  • EA3: Bug in dependencies query for table tab

    SQL Developer 1.5EA3, JDK 1.6.0_04
    I have just noticed a problem with the dependencies query on the table tab - it only shows dependencies where the referencing object is owned by the table owner and for any object with the same name as the table owner.
    The query is:
    sselect owner, name, type, referenced_owner, referenced_name, referenced_type ,owner sdev_link_owner, name sdev_link_name, type sdev_link_type from ALL_DEPENDENCIES where owner = :OBJECT_OWNER and referenced_name = :OBJECT_NAME
    Instead of restricting owner to :OBJECT_OWNER, it should be restricting referenced_owner to :OBJECT_OWNER.
    theFurryOne

    I think the arrow keys could be used for navigating the grid, and Alt-Down Arrow and Alt-Up Arrow could be used for viewing the drop-down list.
    How about instead of allowing someone to type in the value, have them select from a list? The index columns can only be columns on the table, and if a column is already chosen for the index, remove it from the list.
    I think the behavior of Microsoft's Table Designer is similiar.
    What do you think?

  • Data dictionary for table updates

    Hi,
    I want to know which audit tables are to be looked into to see a particular transaction done on a db table.
    For ex:- I've updated a table(say Tab1) and I want to know when,by whom and what changes they have done Tab1.
    Thanks in advance

    For information on Oracle Auditing refer to :
    http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76956/audit.htm#1108

  • Query for Tables used in a Schema

    I need to know that how many tables in the schema has been used by Proceudres/Functions, Packages Triggers etc.
    Please give me the query if someone has it.
    Thanks and Regards,
    Kapil Uppal

    Hi kapil wher do u stay......do u stay at UPPAL....grt,mine location is also uppal

Maybe you are looking for

  • Runtime error in Visual C++ 2008 and 10.2.0.1.0 Express with getString()

    Hi, My configuration: Database: 10.2.0.1.0 Express Libs: OCCI 10.2.0.3.0 (patch 13) libraries for Microsoft Visual C++ 8 IDE + Compiler: Visual C++ 2008 - 9.0.30729.1 SP I run into trouble with the following piece of code: stmt = con->createStatement

  • Class file missing from war file deployment

    I have a web application that is being deployed to a war file. I have deployed several times successfully. Then with the latest changes, there is a class file that does not get included into the war file. It does get compiled and does exist in the pr

  • Flash site not showing in Internet Explorer

    Please can some one help, I have been asked to get a website up and running.  It is a Flash site, which works fine in Firefox and Safari, but its just a white screen in IE.  Does anyone know why? the website is www.vortex-cae.co.uk and the scrip is :

  • Mystery HDD usage

    hello all, I haev an old Powermac G4/533 that i use as a file server, and it also does some light local stuff ( runs scanner etc.) Has 10.3.latest on it. Two internal HDDs - 40 GB main; 80 GB backup.  Plus an external FW 2 TB that is used as a NFS. H

  • Solve error message when uploading to youtube

    Does anyone know how to upload videos to youtube?  I never had a problem with the Premiere Elements 11, but on Premiere Elements 12, I get an error message that is not very helpful.  I've scoured every online forum I can think of for an answer and ca