Help insert mulitple value using the view

Can anyone help me please with the following text:

I'm trying to create a view that insert multiple (department_id) values based on CUSTOMER_ID in where clause:

CREATE OR REPLACE FORCE VIEWS CUSTOMER_V
(
DEPARTMENT_ID,
CUSTOMER_ID,
CUSTOMER_ADD
)
AS
SELECT
' *'D100 "* DEPARTMENT_ID;
C.CUSTOMER_ID,
C.CUSTOMER_ADD
WHERE
C.CUSTOMER_ID IN (100, 200)

Looking at the example above, it will insert D100 for the two CUSTOMER_ID (100, 200), what can I use to insert D100 as department_id if C.CUSTOMER_ID = 100 and D200 if the C.CUSTOMER_ID = 200?

Thanks for your help!
SMČR
CREATE OR REPLACE FORCE VIEW CUSTOMER_V
(
DEPARTMENT_ID,
CUSTOMER_ID,
CUSTOMER_ADD
)
AS
SELECT
DECODE(C.CUSTOMER_ID,100,'D100',200,'D200') DEPARTMENT_ID,
C.CUSTOMER_ID,
C.CUSTOMER_ADD
--FROM ???
WHERE
C.CUSTOMER_ID IN (100, 200)

Tags: Database

Similar Questions

  • insertion of values using the impl class

    Hi am values inserting data by using the class impl, my problem is when I insert values, it shows that the values must be unique so it cannot be inserted, but when I check in the database, the values are inserted, it seems my loop trying to reinsert the same values twise, am in jdeveloper 11.1.1.6.0
        public Number addOrginisation(OrgDetails orgDetails){
            Number orgid =null;
    
               try{
                      
                      UAMAppModuleImpl am = (UAMAppModuleImpl)ADFUtils.getApplicationModuleForDataControl("UAMAppModuleDataControl1");
                      CreateUserBean cu = new  CreateUserBean();
                      String n = (String)orgDetails.getDpayment().getValue();
                       System.out.println(" n  :"+n );
                      String  newIdAssigned = cu.createAcc(n,orgDetails.getCadastreAccountBean() );
                      System.out.println(" newIdAssigned :"+ newIdAssigned  );
                    this.addmemebres(orgDetails.getAddmember(), orgDetails.getName());
    
    
    
                                    String otype = null;
                String osubtype = null;
            
            DCIteratorBinding it0 = ADFUtils.findIterator("UamOrganisationsView1Iterator");
                      if(it0 != null && it0.size() > 0){      
                         
                          for(Row r : it0.getAllRowsInRange() ){
                          EntityDefImpl accDef1 =UamOrganisationsImpl.getDefinitionObject();     
                          UamOrganisationsImpl org1 =  (UamOrganisationsImpl)accDef1.createInstance2(am.getDBTransaction(),null);
                         
                     
                      otype = (String)r.getAttribute("Organisationtypecode");
                      osubtype = (String)r.getAttribute("Orgsubtypecode"); 
                          org1.setOrganisationtypecode(otype);
                      System.out.println("onsertorgtype " + otype);
                          org1.setOrgsubtypecode(osubtype);
                      System.out.println("insertedsubtype " + osubtype);
                          
                         
                          org1.setCadastreaccount(newIdAssigned);
                          System.out.println("Addedcardaccount " + newIdAssigned);  
                              
                          org1.setOrganisationname(orgDetails.getName());
                          System.out.println("AddedOrganisation " + orgDetails.getName());    
                          org1.setCadastreaccount(newIdAssigned);
                          System.out.println("Addedcardaccount " + newIdAssigned);    
                          org1.setOrganisationemail(orgDetails.getEmail());
                          System.out.println("Addedemail " + orgDetails.getEmail());  
                          org1.setRegistrationnumber(orgDetails.getRegNumber());    
                          System.out.println("Registrationnumber " +orgDetails.getRegNumber());    
                          org1.setRegistrationstatus("Y");
                          org1.setStatus("Y"); 
                          orgid =  org1.getOrganisationid();
                          System.out.println("returnorgid " +orgid);
                          am.getDBTransaction().commit();  
                          System.out.println("after "+ orgid);  
                          orgid =  org.getOrganisationid();
                          
                         
                          
                      }
                          
                          
                      }
                String name = null;
                String surname = null;
                String identitynumber = null;
                String emailaddress = null;
                String contactnumber = null;
                String ownership = null;
                String accountofficer = null;
                Number officeid = null;
    
    
               DCIteratorBinding it = ADFUtils.findIterator("ocompanyofficerdetailsIterator");
                  if(it != null && it.size() >0){                              
                  for(Row r : it.getAllRowsInRange() ) {                                   
                        EntityDefImpl accDef2 =UamCompanyofficerdetailsImpl.getDefinitionObject(); 
                        UamCompanyofficerdetailsImpl comp = (UamCompanyofficerdetailsImpl)accDef2.createInstance2(am.getDBTransaction(),null);
                       
                        
                        name = (String)r.getAttribute("name");
                      System.out.println("offname" +name);
                        surname = (String)r.getAttribute("surname");
                      System.out.println("surnametest " +surname);
                        identitynumber = (String)r.getAttribute("dentitynumber");
                      System.out.println("idtest " +identitynumber);
                        emailaddress = (String)r.getAttribute("emailaddress");
                      System.out.println("emailtest" + emailaddress);
                        contactnumber = (String)r.getAttribute("contactnumber");
                        System.out.println("contatc" + contactnumber);
                        ownership = (String)r.getAttribute("ownership");
                      System.out.println("ownership " + ownership);
                        accountofficer = (String)r.getAttribute("accountingofficer");
                       System.out.println("accountoffice " + accountofficer);
                
                
               
               comp.setName(name);
                      System.out.println("offname " + name);
               comp.setSurname(surname);
                      System.out.println("surnameoff " +surname);
               comp.setIdentitynumber(identitynumber);
                      System.out.println("identitynumber " +identitynumber);
               comp.setEmailaddress(emailaddress);
                      System.out.println("emailaddresscomp " +emailaddress);
               comp.setContactnumber(contactnumber);
                      System.out.println("contactnumbercomp " + contactnumber);
               comp.setOwnership(ownership);
                      System.out.println("ownershipcomp " + ownership);
               comp.setAccountingofficer(accountofficer);
               System.out.println("accountofficer " +accountofficer);
                        officeid = comp.getOfficerid();
                               System.out.println("afterofficeid " + officeid);
                      comp.setOrganisationid(orgid);
                      am.getDBTransaction().commit();
                        System.out.println("***insetead companyofficials****" +  officeid ) ;
    
    
                    }
        }
           }catch(Exception e){
                System.out.println("after "+e.getMessage());
                e.printStackTrace();
            }
           
            return  orgid;
        }
    
    my log error is
    n  :CRC
    *****createAcc  Entity [oracle.jbo.Key[10891 ]]
    *****createAcc  UamCadastreaccounts
    @@@@@@@@@@@@CRC
    @@@@@@@@@@@@10892
     newIdAssigned :10892
    onsertorgtype PRIV 
    insertedsubtype LA
    Addedcardaccount 10892
    AddedOrganisation testnow
    Addedcardaccount 10892
    Addedemail [email protected]
    Registrationnumber 2332434
    returnorgid 2233
    after 2233
    onsertorgtype PRIV 
    insertedsubtype DEA
    Addedcardaccount 10892
    after JBO-ecadastre.gov.za.uam.model.entities.UamOrganisations_Rule_0: Organisation Name Must Be Unique
    oracle.jbo.AttrSetValException: JBO-ecadastre.gov.za.uam.model.entities.UamOrganisations_Rule_0: Organisation Name Must Be Unique
         at oracle.jbo.rules.RulesBeanUtils.createException(RulesBeanUtils.java:381)
         at oracle.jbo.rules.AbstractValidator.createException(AbstractValidator.java:1065)
         at oracle.jbo.rules.AbstractValidator.doRaiseException(AbstractValidator.java:1120)
         at oracle.jbo.rules.AbstractValidator.raiseException(AbstractValidator.java:1109)
         at oracle.jbo.rules.JboAbstractValidator.raiseException(JboAbstractValidator.java:409)
         at oracle.jbo.rules.AbstractValidator.raiseException(AbstractValidator.java:1096)
         at oracle.jbo.server.JboUniqueKeyValidator.validateValue(JboUniqueKeyValidator.java:369)
         at oracle.jbo.server.JboUniqueKeyValidator.validateValueWithContext(JboUniqueKeyValidator.java:84)
         at oracle.jbo.rules.JboAbstractValidator.callValidateValueWithContext(JboAbstractValidator.java:235)
         at oracle.jbo.rules.JboAbstractValidator.validate(JboAbstractValidator.java:386)
         at oracle.jbo.rules.RulesBeanUtils.validateObject(RulesBeanUtils.java:725)
         at oracle.jbo.rules.RulesBeanUtils.validate(RulesBeanUtils.java:696)
         at oracle.jbo.server.AttributeDefImpl.validate(AttributeDefImpl.java:3349)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:3294)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:2012)
         at ecadastre.gov.za.uam.model.entities.UamOrganisationsImpl.setOrganisationname(UamOrganisationsImpl.java:336)
         at uam.cadastre.gov.za.CreateOrganisationBean.addOrginisation(CreateOrganisationBean.java:213)
         at uam.cadastre.gov.za.OrgDetails.getNextStopPayment(OrgDetails.java:689)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
     oracle.jbo.server.ViewRowSetImpl@8f2102
     null
     null
     null
     null
     null
     null
     BDP
     CRA
     CRC
     DRO
     EFT
     OTC
    ************endpayment *********
     but am able to insert the organisation  values in database but it show me that Organisation Name Must Be Unique
    the for loop is re-entering the values again
    Published by: adf0994 on 01/15/2013 13:11

    Published by: adf0994 on 01/15/2013 13:12

    Hello

    a rule in the ADF is still working through the link layer (and that's what you start by before you can join the impl classes). When you have access to a DCIteratorBinding, you have access to the lines it holds. Of the DCIteratorBinding, you can get access to the RowSetIterator (getRowSetIterator()). Here you can now create new lines programmatically by calling

    -Row rw = rowSetIterator.createRow ();
    -fill in the attribute for line
    -rowSetIterator.insertRow (rw);

    You can also use this to simply update the existing lines. With the next commit, these changes will be persistent in the database.

    Frank

  • need help to get the value using the REGEXP_REPLACE function.

    I am trying to extract the value placed between "< listitems >... < / listitems >" but I am unable to get these value using the REGEXP_REPLACE function.
    select REGEXP_REPLACE('<InputParameters></ParamSet><listitems>14545454</listitems></ParamSet></InputParameters>'
    ,'(<InputParameters>.*<listitems>)(.*)(</listitems>.*<InputParameters>)'
    ,'\2') from dual;
    required output:
     1454554
    Can someone please help me achieve this goal.

    Hello

    You forgot the / before the last InputParameters. If fix you that, your code will work.

    Here is a slightly different way:

    SELECT  REGEXP_REPLACE ( '14545454'
                     , '^.*?(.*?).*$'
                     , '\1'
                     )     AS listitems
    FROM    dual
    ;
    

    Least to type, the less likely you will have to make typos.
    If there are 2 (or more) elements of listitmes, 1 will be returned.

    From Oracle 11.1, you can also use REGEXP_SUBSTR. I have Oracle 10.2 avaialable now, so I can test the following, but I think you'd say:

    SELECT  REGEXP_SUBSTR ( '14545454'
                     , '(.*?)'
                     , 1
                     , 1
                     , NULL
                     , 1
                     )     AS listitems
    FROM    dual;
    

    When it comes with the text that is or looks to, XML, consider using XML functions.

  • With the help of data values for the selection of members

    Hello everyone:

    I know there are operating functions, with members, strings, names of members... so that you are able to convert a string to a member (@MEMBER) and vice versa.

    But, is it possible to use a value of Member to select someone else?. For example, if in the account dimension, I'm a member of 'parent' with value '100'. Could I put a value, using the value '100' in the '100' member registered in 'parent' to select this member. So if its value is '200', I should put in '200' member.

    Thank you

    Kind regards

    Javier

    Hello

    First, you insert the CDF, essbase server. in the zip file, you have a small description how draconian make zip archive contains a file bat with a script maxl who do all the work. then restart the essbase server and then a new list of functions should be available on the script calc under Group Editor "functions only the user".

    Here is a small piece of code I created for my current project.

    This store a substring product code number on the cube

    "Produccion_pan"->"Prod_CC_4"->"Referencia"=@JgetDoubleFromString(@SUBSTRING(@NAME(@CURRMBR("CompCosto")),6));
    

    then I read that number and use it again as a member of another Sun name

    "Produccion_pan"->"USD"="Produccion_pan"->"USD" + "Prod_CC_5"->"M3"*"Disponible"->"Total_Puesto"->@MEMBER(@CONCATENATE("PP_",@JgetStringFromDouble(codigo_p,@_false,@_false)))->"Coeficiente_v";
    

    I hope it helps you. concerning

  • Insert some values into the database of field boxes




    I had a similar probem and error when you use the drop-down list instead of a checkbox. It was solved by putting the SELECT name = "CarMake in the menu dropdown.

    But in the box, I don't know?
    I seem that the problem is the action page has the Form.carmake, but the page does not work. What Miss me and where should I put in the entry below page.


    The main objective is to have checked checkboxes to insert some values into the database field carmake based on what is checked.


    If the Honda checkbox is checked then
    It inserts into the carmake field value Honda.

    If the Toyota checkbox is checked then
    It inserts into the carmake field the value of Toyota.

    If both are true then 2 rows are inserted two values
    Honda and Toyota.

    Ditto for the last option.

    Thanks for your help


    Here's the error again

    error:
    Error occurred while processing request
    CARMAKE element is not defined in the FORM.

    12:21:50.050 - term Exception - in C:\CFusionMX7\wwwroot\Author\CarAddAction.cfm: line 16
    CARMAKE element is not defined in the FORM.

    line 16 is:
    "#Trim (Form.carmake), #
    Join the Code


    <! - Here is the form - >
    < html >
    < head >
    < / head >

    < body >


    < h1 > < / h1 >

    < table >
    < action = "CarAddAction.cfm cfform" method = "POST" > "
    < b >
    < td > Honda: < table >
    < td > < Center > < input type = "checkbox" name = "HONDA_MODEL" value = "HONDA" checked > < / center > < table >
    < /tr >
    < b >
    < td > Toyota: < table >
    < td > < Center > < input type = "checkbox" name = "Toyota_MODEL" value = "Toyota" Unchecked > < / center > < table >
    < /tr >
    < b >
    < td > SUBARU: < table >
    < td > < Center > < input type = "checkbox" name = "SUBARU_MODEL" value = "SUBARU" unchecked > < / center > < table >
    < /tr >



    < Tr > < td > < table > Honda model
    < td >
    < input type = "Text".
    name = "Honda_Model".
    Value =""
    size = "22".
    MaxLength = "20" >
    < table >
    < tr > < /tr >
    < Tr > < td > < table > Toyota model
    < td >
    < input type = "Text".
    name = "Toyota_Model".
    Value =""
    size = "22" >
    < table >
    < tr > < /tr >
    < Tr > < td > < table > Subaru model
    < td >
    < input type = "Text".
    name = "Subaru_Model".
    Value =""
    size = "22" >
    < table >
    < tr > < /tr >
    < td > < table >
    < td >
    < input type is 'submit' value is "Take Add to database" >
    < table >
    < /tr >

    < / cfform >
    < /table >

    < / body >
    < / html >



    <!-action page
    --------->
    < cfdump var = "#form #" >
    < name cfquery = "InsertCarInfo."
    DataSource = "#request. MainDSN #">"
    INSERT INTO Car_tab)
    car_Make,
    Honda_Model,
    Toyota_Model,
    Subaru_Model

    )
    VALUES)

    "#Trim (Form.carmake), #
    "#Trim (Form.Honda_Model), #
    "#Trim (Form.Toyota_Model), #
    "#Trim (Form.Subaru_Model) #
    )
    < / cfquery >

    You check in one or more of the boxes before continuing? Remember what I said about the form field box existing only on the page of treatment at least 1 or more checkboxes are checked on your form. Make sure you use to avoid this problem.

    What happens when you take a look at the output of your dump of form? Your fields are present?

  • I lost the toolbar that displays 'file' 'view' 'edit' etc at the top, it is impossible to follow your instructions for using the 'View' option to fix my toolbars.

    I lost the toolbar that displays 'file' 'view' 'edit' etc at the top, it is impossible to follow your instructions for using the 'view' option to fix my toolbars. I have no idea how access toolbars without this toolbar - I can't believe this allows this toolbar to delete (I did accidentally while trying to get an another toolbar restored). Thanks for any help

    Hi toby,.

    on the assumption that you always have access to the navigation bar, right click on the stop button, when the home page is loaded and check the 'Menu Bar' option in the context menu that appears.

    If you need more help see the knowledge base article the Navigation buttons such as back, home, bookmarks and recharge are missing

    Daniel

  • creating a view and use the view in a model

    Hi all

    I'm new to OBIEE, and I have a requirement that I have two fields to be added to a domain. Because we cannot add queries directly to a model, I have to create a view and then put the request in it, and then use the view in this model.
    I did not understand this well, if someone could help me, explaining in detail the view and adding a query in it?

    Thank you
    Gohan

    Hello

    (a) If you want to use your existing DB view please tick box import meta option data - RPD--> file menu
    (b) If you want to create the new view in RPD itself just right click anyof a physical table--> properties--> click the genral--> change the type of array as "Select" then you create/update your sql query, and then click ok that's all
    Once created, you can deploy advice on the database (right mouse button) or you can leave the view cancelled (worst performance).

    Ref steps more to create views
    http://gerardnico.com/wiki/dat/OBIEE/opaque_view
    http://allaboutobiee.blogspot.com/2012/05/OBIEE-11g-deployundeploy-view-in.html

    Thank you
    Deva

  • Inserting data by using the query

    Hello

    In a book, I read the Sub statement:

    Inserting data by using the query (DML)

    If the user wants to transfer data from a table to another table in the insert statement are used independently of data that can be processed or not processed form.

    Can someone clarify what is the significance of this (processed or unprocessed form).


    Thank you.

    Why don't you ask the author of the book.

    How can we know what the author means when you take a quote out of context and don't provide any reference so that we can see exactly what is shown to you.

    I can only imagine that they are referring to data that are queried directly, "like what", another table, or who was interrogated and manipulated before be inserted.

  • Hello, December 22, 2015, I paid € 144,33 on account of Adobesystem (using photoshop). I wonder what for? I got no answer, no program to install etc... Can you help me? I used the demo version with the idea that I could be updated, but

    Hello, December 22, 2015, I paid € 144,33 on account of Adobesystem (using photoshop). I wonder what for? I got no answer, no program to install etc... Can you help me? I used the demo version with the idea that I could update, but nothing.

    Download/install the desktop application, connect and install applications subscription.
    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

    Creative cloud to desktop
    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Sign out, sign in | Creative office cloud app
    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Install, update, or uninstall applications
    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

    Install creative Cloud applications
    http://TV.Adobe.com/watch/CS6-creative-cloud-feature-tour-for-video/installing-desktop-app s-of-creative-cloud.

  • Anyone know why the images using the viewer keep appearing behind the thumbnails?

    Anyone know why the images using the viewer keep appearing behind the thumbnails?

    Can you provide a link?

    Probably your best way to do it would be to create your first "lightbox" like a ToolTip by using the ToolTip Widget, and then that way you nest not viewers.

    But if you can provide a link maybe I can think of a better way to do it.

  • How to use Dreamweaver? (was: how to use the Viewer to dream?)

    Hello, I want to use the Viewer to dream for my site, I'm designing a new Web site, someone told me that dream viewer is a good application for this sort please guide me thank you. When I put the site in the viewer of dream and files by FTP but I receive error message.

    Paid script are you using?

    WordPress is software that is installed directly on your server.

    WordPress websites are built with the built-in WordPress CMS or the dashboard.

    It is unclear if what you use now would be compatible with WordPress.  You may need to start over with a new website.

    Dreamweaver is only useful for the development of WordPress custom themes.  Once the site is deployed and running on your server, you must keep it with WordPress CMS.

    Nancy O.

  • Need help on how to use the conference room in adobe connect

    I need help on how to use the conference room in adobe connect?

    I would recommend you start here: Getting Started with Adobe Connect - Adobe Connect user community

  • How to extract the second sysdate value using the EXTRACT function

    Hello

    I want to extract the second sysdate value using the EXTRACT function.
    When I run the following query I get an error;

    SELECT extract (second OF SYSDATE) FROM dual;

    ORA-30076: field of invalid extract for the source of the extract.

    When I do to extract the month I get the correct result.

    Is there some necessary formatting by specifying the sysdate (or any other date value) in the query. ?


    Thank you.

    You can extract only the year/month / day, day

    SQL> Select extract(year from sysdate) from dual;
    
    EXTRACT(YEARFROMSYSDATE)
    ------------------------
                        2008
    
    SQL> Select extract(day from sysdate) from dual;
    
    EXTRACT(DAYFROMSYSDATE)
    -----------------------
                         20
    
    SQL> Select extract(month from sysdate) from dual;
    
    EXTRACT(MONTHFROMSYSDATE)
    -------------------------
                           11
    
    IF you enter Minute or Seconds
    
    SQL>  Select extract(minute from sysdate) from dual;
     Select extract(minute from sysdate) from dual
                                *
    ERROR at line 1:
    ORA-30076: invalid extract field for extract source
    but with timestamp you can get the seconds
    
    SQL> select EXTRACT(second FROM current_timestamp) from dual;
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                  39.473
    
    SQL> select EXTRACT(second FROM current_timestamp) from dual;
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                  57.474
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                  59.787
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                    .412
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                     .99
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                   1.458
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                   1.896
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                   2.334
    

    Edited by: Viswarayar Maran on November 20, 2008 14:30

  • Errors during insertion and update form using the VIEW.

    Here is my opinion:

    CREATE OR REPLACE FORCE 
    VIEW  "SH_ADD_EMPLOYEES_VW" ("EMP_ID", "DEPT_ID", "JOB_DESC_ID", "EMPNO", "EMP_FIRST", "EMP_LAST", "USER_NAME", "USER_INI", "DEPTNO", "DEPT_DESC", "ROLES_ID", "ADMIN", "CREATES", "APPROVES", "QUALITY", "CUST_SVC", "SH_LOCAL", 
    "SH_OFFICE", "SYSTEM") 
    AS
      select
    "SH_EMPLOYEES"."EMP_ID" as "EMP_ID",
    "SH_EMPLOYEES"."DEPT_ID" as "DEPT_ID",
    "SH_EMPLOYEES"."JOB_DESC_ID" as "JOB_DESC_ID",
    "SH_EMPLOYEES"."EMPNO"  as "EMPNO",
    "SH_EMPLOYEES"."EMP_FIRST" as "EMP_FIRST",
    "SH_EMPLOYEES"."EMP_LAST" as "EMP_LAST",
    "SH_EMPLOYEES"."USER_NAME" as "USER_NAME",
    "SH_EMPLOYEES"."USER_INI" as "USER_INI",
    "SH_EMPLOYEES"."DEPTNO" as "DEPTNO",
    "SH_EMPLOYEES"."DEPT_DESC" as "DEPT_DESC",
    "DOC_ROLES"."ROLES_ID" as "ROLES_ID",
    "DOC_ROLES"."ADMIN" as "ADMIN",
    "DOC_ROLES"."CREATES" as "CREATES",
    "DOC_ROLES"."APPROVES" as "APPROVES",
    "DOC_ROLES"."QUALITY" as "QUALITY",
    "DOC_ROLES"."CUST_SVC" as "CUST_SVC",
    "DOC_ROLES"."SH_LOCAL" as "SH_LOCAL",
    "DOC_ROLES"."SH_OFFICE" as "SH_OFFICE",
    "DOC_ROLES"."SYSTEM" as "SYSTEM"
    FROM "SH_EMPLOYEES" "SH_EMPLOYEES", "DOC_ROLES" "DOC_ROLES"
    where "SH_EMPLOYEES"."EMP_ID" = "DOC_ROLES"."EMP_ID"
    /
    
    

    Here's my trigger (note - I do not use the EXCEPTION clause or (declaration of it) because it throws an error msg = >: 'This is my message'.) Here, any help would be great as well.)

    CREATE OR REPLACE TRIGGER bi_ADD_EMPLOYEES_VW
    INSTEAD OF insert ON SH_ADD_EMPLOYEES_vw
    for each row
    declare
    duplicate_info EXCEPTION;
    PRAGMA EXCEPTION_INIT(duplicate_info, -00001);
    begin
    insert into SH_EMPLOYEES
    (EMP_ID, DEPT_ID, JOB_DESC_ID, EMPNO, EMP_FIRST, EMP_LAST, USER_NAME, USER_INI, DEPTNO, DEPT_DESC)
    values
    (:new.EMP_ID, :new.DEPT_ID, :new.JOB_DESC_ID, :new.EMPNO, :new.EMP_FIRST, :new.EMP_LAST, :new.USER_NAME, :new.USER_INI, :new.DEPTNO, :new.DEPT_DESC);
    insert into DOC_ROLES 
    (ROLES_ID, ADMIN, CREATES, APPROVES, QUALITY, CUST_SVC, SH_LOCAL, SH_OFFICE, SYSTEM)
    VALUES (
    :new.ROLES_ID, :new.ADMIN, :new.CREATES, :new.APPROVES, :new.QUALITY, :new.CUST_SVC, :new.SH_LOCAL, :new.SH_OFFICE, :new.SYSTEM);
    EXCEPTION
     WHEN duplicate_info THEN
      RAISE_APPLICATION_ERROR (
       num=> -20107
       msg=> 'Duplicate employee');
    END bi_ADD_EMPLOYEES_VW;
    /
    
    

    ERROR ON UPDATE:

    ORA-20505: DML error: p_rowid = 1001,.
    p_alt_rowid = EMP_ID, p_rowid2 = 2, p_alt_rowid2 = ROLES_ID. ORA-01779: cannot change
    a column that is mapped to a table not preserved key

    ERROR WHEN INSERTING:

    ORA-01400: cannot insert NULL in
    ("SPICE_HUNTER1". "" "" SH_EMPLOYEES '. "" EMP_ID") ORA-06512: at
    "SPICE_HUNTER1. BI_SH_ADD_EMPLOYEES_VW', line 3 ORA-04088: error during execution
    relaxing ' SPICE_HUNTER1. BI_SH_ADD_EMPLOYEES_VW' ORA-06512: at
    'SYS. WWV_DBMS_SQL', line 549 ORA-06512: at "APEX_040000.WWV_FLOW_DML", line 1121
    ORA-22816: feature not supported with RETURNING clause

    Error Impossible to process line on table SH_ADD_EMPLOYEES_VW

    I see you manage emp_id is null, you must assign a value if null sequence... This column cannot be null, where the error, and "Edit" a column of this table the DML to this id value.

  • Help with a sql using the ASCII value

    Hello

    I have a table with the following data
    DOC_NO     CLIENT_REV
    ------     ----------
    240          A
    240          B
    240          B
    240          C
    240          C
    240          C
    240          0
    240          1
    240          1
    240          1
    240          2
    240          2
    240          2
    241          A
    241          A
    241          B
    241          C
    241          C
    241          D
    The requirement is retur the following values:
    240          2
    241          D
    I tried with the ASCII function, but the necessary result is somewhat complicated. That is to say for a group of doc_no I need as many client_rev if there are numbers, if not then I need the largest letter.

    How can I achieve this requirement?

    Kind regards.

    Hello

    What do you mean by "the decision must be the minor doc_date?
    It would be useful that you posted your desired results.
    I assume you mean you want only the line with the doc_date lowest (for each doc_no).
    in other words, the desired results are:

        DOC_NO L DOC_DESC           DOC_DATE
    ---------- - ------------------ ---------
           240 2 Description of 240 01-JAN-09
           241 D Description of 241 01-FEB-09
    

    Here's a way to get these results:

      SELECT x.doc_no, x.last_client_rev, y.doc_desc, y.doc_date
      FROM     (     -- Begin sub-query based on table_a
         SELECT   doc_no,
                     MAX (client_rev) KEEP
                       (DENSE_RANK LAST ORDER BY TRANSLATE(client_rev
                                                           ,'ABCD012' -- Desired sort order
                                                           ,'012ABCD'  -- Actual sort order
                                                          )) AS last_client_rev
         FROM       table_a
            GROUP BY  doc_no
         ) x,
         (     -- Begin sub-query based on table_b
         SELECT       doc_no,
                MAX (doc_desc) KEEP (DENSE_RANK FIRST ORDER BY doc_date)
                             AS doc_desc,
                MIN (doc_date)     AS doc_date
         FROM       table_b
         GROUP BY  doc_no
         ) y
      WHERE x.doc_no = y.doc_no;
    

    As you restrict the table_a lines are used, so now you restrict table_b lines are used.

    First, let's review what you do with table_a.
    Table_a has multiple lines with the same doc_no.
    You only want to consider one of these lines: one that comes last, when to sort your particular way.
    If your main query does not use the table_a:
    It uses a subquery table_a-based which is a GROUP BY doc_no, to ensure that only the row by doc_no is used.

    Now, what is the problem with table_b?
    Table_b has as many rows with the same doc_no.
    You only want to consider one of these lines: the one with the lowest doc_date.
    So your main query should not use table_b:
    She must use a subquery table_b-based which is a GROUP BY doc_no, to ensure that only the row by doc_no is used.

Maybe you are looking for