Data type could be same base on source table for blank column

We have an employee table as mentioned structure.
EMPNO NUMBER(4),
ENAME VARCHAR2(10),
JOB VARCHAR2(9),
MGR NUMBER(4),
HIREDATE DATE,
SAL NUMBER(7,2),
COMM NUMBER(7,2),
DEPTNO NUMBER(2)
I want to create a view base on the same/exact structure data type-length. So is there any way we can define Data type while creating view.
Actually, I need to create a view base on above structure but only want to get deptno and sum of salary column from emp table and rest of column will remain blank.
Thanks

Something like this???
CREATE OR REPLACE VIEW v_tmp AS
     SELECT NULL empno,
            NULL ename,
            NULL job,
            NULL mgr,
            NULL hiredate,
            sal sal,
            dept_no
       FROM employees
   GROUP BY dept_no;
   Cheers,
Manik.

Similar Messages

  • Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type a

    Dear Team,
    Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type. Could you please do needful. Thank you

    Hello,
    most recent patches for IGS and kernel installed. Now it works.

  • How to identify the source column and source table for a measure

    Does anyone have a query that I can use to positively identify the source column and source table for a cube measure in an SSAS cube?  Visual Studio shows ID, Name, and Source, but it is nearly worthless in a large cube and database.
    Also - the same for a dimension would be great.
    If no query exists for this, can someone please explain how to find the source column/table for a measure and for a dimension?
    Thanks.

    DMVs don’t expose the DataSourceView content. AMO is much better suited for object model operations like
    this than the DMVs. PowerShell is also sometimes an option, but in this case C# code would be much easier because analyzing the contents of the DataSourceView is much easier using the .Net DataSet class.
    Hope this helps.
    Reeves
    Denver, CO

  • Multiple source tables for Measures dimension.

    Hi,
    We have two different SQL source tables for the Measure dimension in our project. Both the tables have the same structure but the Measures they contain are different. Based on certain condition Essbase will have to pick up Measures from one of the two tables. So basically the source table changes based on the condition. Is it possible to design rule files to achieve this? Please help me with this.
    Thanks,
    Krishna

    as I am sure many will say essbase and load rules are not really an ETL tools.^^^ :)
    Glenn is going to counter with a "I know how to do this in three steps using create column as text, join, and a oft-overlooked but awesome command that everyone but Tom Tortolani (I think I have the spelling on that right -- he was the Arbor employee that wrote Load Rules) forgot.
    I 100% agree with John -- why not do it in SQL?
    Regards,
    Cameron Lackpour
    Edited by: CL on Jan 23, 2013 6:33 AM
    Misspelt Tom's name

  • What is the source table for repository browser info?

    Hi guys,
    I need to create report for everyday's data refresh, mostly like what repository browser does. So what is the source table for repository browser info? I am in OWB 10gR2. Thanks a lot.

    I believe the runtime audit browser uses the views that start with "RAB" in the control center.
    But it would probably better if you used the Audit Execution views. More information can be found in the "API and Scripting Reference" document...
    http://download.oracle.com/docs/cd/B31080_01/doc/owb.102/b28225/api_2runviews.htm
    In order to get access to the Public views from SQL Plus using a schema other than the control center, I believe you need to grant the ACCESS_PUBLICVIEW_BROWSER sys privilege to each OWB user. Look at Note:434718.1 for more information.

  • JBO-28004: Could not lock row in control table for table null

    hello.
    we have deployed two application on a server.
    both have code like this:
         select = "SELECT * from tab";
    vo = e.getDBTransaction().createViewObjectFromQueryStmt(select);
                        vo.executeQuery();
                        RowSet rs = vo.getRowSet();
                        if(rs != null)
                             Row lastRow = vo.getRowSet().last();
    the last line throws sometimes an exception (.last()).
    JBO-28004: Could not lock row in control table for table null
    at oracle.jbo.PCollException.throwException(PCollException.java:34)
    at oracle.jbo.pcoll.OraclePersistManager.commit(OraclePersistManager.java:229)
    at oracle.jbo.pcoll.OraclePersistManager.dropTable(OraclePersistManager.java:499)
    at oracle.jbo.pcoll.OraclePersistManager.createTable(OraclePersistManager.java:692)
    at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1492)
    at oracle.jbo.pcoll.PCollNode.passivateElem(PCollNode.java:542)
    at oracle.jbo.pcoll.PCollNode.passivate(PCollNode.java:657)
    at oracle.jbo.pcoll.PCollection.passivateLRULeafNode(PCollection.java:351)
    at oracle.jbo.pcoll.PCollection.checkActiveLeafLimit(PCollection.java:404)
    at oracle.jbo.pcoll.PCollection.nodeRecentlyUsed(PCollection.java:252)
    at oracle.jbo.pcoll.PCollNode.<init>(PCollNode.java:73)
    at oracle.jbo.pcoll.PCollNode.checkForSplit(PCollNode.java:1553)
    at oracle.jbo.pcoll.PCollNode.addObject(PCollNode.java:1622)
    at oracle.jbo.pcoll.PCollNode.addObject(PCollNode.java:1610)
    at oracle.jbo.pcoll.PCollection.addElement(PCollection.java:753)
    at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:1247)
    at oracle.jbo.server.QueryCollection.getRowCount(QueryCollection.java:1065)
    at oracle.jbo.server.ViewRowSetImpl.getRowCount(ViewRowSetImpl.java:1444)
    at oracle.jbo.server.ViewRowSetIteratorImpl.last(ViewRowSetIteratorImpl.java:1183)
    at oracle.jbo.server.ViewRowSetImpl.last(ViewRowSetImpl.java:2246)
    at oracle.jbo.server.ViewObjectImpl.last(ViewObjectImpl.java:4352)
    at com.omv.emis.extemis.bc.EmsFreigabeImpl.checkFullMonth(EmsFreigabeImpl.java:327)
    at com.omv.emis.extemis.bc.EmsFreigabeImpl.doDML(EmsFreigabeImpl.java:293)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:3410)
    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:2274)
    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2216)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1511)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:1677)
    at EmsFreigabeView1_BrowseEdit._jspService(_EmsFreigabeView1__BrowseEdit.java:134)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:563)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:309)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    this exception does not occur every time just sometimes.
    (no other user/application uses the specific table, so there is no other lock)
    maybe someone knows an error source.
    thx in advance.

    Gina:
    Could you run you app with diagnostic turned on?
    If you're launching your middle tier from command prompt, you should invoke java as
    java -Djbo.debugoutput=console ...
    If you're launching your middle tier from w/i JDev..
    1. Select the project.
    2. Do right mouse click and select "Project Settings..."
    3. On the Settings dialog, select Configurations/Runner.
    4. In the righthand side pane, you should see a textbox for "Java
    Options". Please add the following JVM switch:
    -Djbo.debugoutput=console
    Then, rerun. The run command should include
    -Djbo.debugoutput=console as in
    "D:\JDev9i\jdk\bin\javaw.exe" -Djbo.debugoutput=console -classpath ...
    Then, you should see a lot of diagnostic messages. It will also give you complete stack trace including that of the detail exception.
    When you get the exception diagnostic output, please post that to this thread.
    Thanks.
    Sung

  • Source  table for info object

    Hi,
    Can anybody tel me the  SOURCE TABLE FOR the Info Object <b>Plant</b>  technical name is " 0PLANT "..Is coming under Info Cube  "Purchasing Data "..
    Thanks in advance
    Umesh mc

    Barbara,
    Did you do the replication of the datasources ?
    Goto SourceSystem -> select your BW system -> right click replicate datasources.
    Then refresh your object tree, it should show you the datasource.
    Hope this helps,
    GSM.

  • Source tables for forms and tabular forms must have a primary key.

    Why does HTML DB 2.0 return the message
    "Source tables for forms and tabular forms must have a primary key."
    when trying to generate a "Report and Form" page based on a view defined like "create view <applicationschema>.a as select * from <sourceschema>.b" ?
    It should be possible for HTML DB to "see" that the table "<sourceschema>.b" already has a primary key.
    bw - Christian

    Christian,
    In the create application wizard, when creating form or tabular form pages, you can only use tables with primary keys, and not views, because that wizard is automatically deriving the primary key from the table definition. If you want to build forms on views or tables without a primary key, you need to use one of the create form wizards while working on an existing application. Those wizards allow you to pick your own column as a primary key column.
    Regards,
    Marc

  • How to identify EBS Source tables for SC and OM modules?

    Hi,
    I need to identify EBS source tables for Supply Chain and Order Management module.
    What prefix I should check in EBS tables?
    Is there any document on this?
    Regards
    Sudipta

    Check etrm.oracle.com
    For order Management you should check with OE
    Purchasing PO and inventory INV and I guess for ASCP MSC
    Mahendra

  • SOURCE TABLE FOR GRN IN MM

    Hi,
    Please let me know how to find the source table for GRN in MM .
    Thanks  in Advance,
    Manu

    Hi,
    You can also use ST05..
    Switch on the SQL Trace..
    Execute the transaction..
    Switch off the SQL Trace..
    You can see the tables that were used in the transaction.
    Reward points if found helpful..
    Cheers,
    Chandra Sekhar.

  • SharePoint 2013 List - Multiple Data Types in the Same List

    In the same SharePoint 2013 list in Data Sheet View, I want to have one column where my end users enter inputs for KPIs. There are 3 groups of KPIs (A, B and C) and they each have different data types (A-string, B-decimal, C-percentage) and I want to be
    able to base their input options off of the KPI type
    Does anyone have any suggestions on how I can leverage my parent-child relationships so when an end user...
    1. Picks KPI type A, they can select from a choice filed (Green, Yellow, Red)
    2. Picks KPI Type B, they can enter a decimal (-1.000 to 2.000)
    3. Picks KPI Type C, they can enter a percentage (-100.00% to 100.00%
    I'm using if I want to keep this in one list, one column and in data sheet view that the out of the box solutions won't meet my requirements. I was looking at some solutions from Bamboo (Lookup Selector Column) but don't think that applies here.
    Thanks!
    Johnny

    Hi Johnny, you can accomplish this using cascading lookups in InfoPath if that program is available to you. Otherwise, if you want a 3rd party product, we use the Kwiz cascading lookup and it's worked wonders for us:
    http://www.kwizcom.com/sharepoint-add-ons/sharepoint-cascading-lookup-plus/overview/
    Note: I have no relationship with Kwiz, just vouching for the product.
    cameron rautmann

  • How to Find the Data Type of the Field In a Database Table

    Hi Experts,
    I'm currently working on a program which needs to find out the data type of the given field in a database table. In addition to accessing DD03L directly, is there any other workaround such as function module to help me achieve this? It would be helpful if a demo example could be provided.
    Thanks a lot.

    Hi,
    Use this..
    DESCRIBE FIELD dobj  TYPE typ.
    write typ.
    type will contain the data type of the object.
    and check this thread also....
    Re: How to get datatype of fields in dynamic structures
    Cheers,
    Simha.
    Reward all the helpful answers..

  • Source tables for ST03 data - can only find structures!

    Does anyone know which tables feed the structures (e.g. STA1) for ST03?  I've searched all over the place and all I can find are structures.  I need to run a query against the source tables.  Thanks for your help.

    Hi,
    See whether ST03N will meet your needs?
    For more options see SAP and SAP notes for MONI or TCOLL or ST03(N) (e.g. SAP notes 12103, 143550 and function module SAPWL_ACCNT_GET_SYSTEM_USAGE).
    Cheers,
    Julius
    This coding also helps to understand it a bit:
    *&      Form  TRANSLATE_TCODE_REPORT
    *       Translate/repair report and tcode names of statistic records   *
    *  -->  TCODE     transaction code
    *  -->  DYNPN     dynpro number
    *  -->  ttype     task type
    *  -->  USER      user name
    *  -->  TERMNL    terminal ID
    *  <->  REPO      report
    *  <--  ENTID     entry ID
    FORM translate_tcode_report     USING
                                       tcode LIKE sapwlpfnrm-tcode
                                       dynpn LIKE sapwlpfnrm-dynpronr
                                       ttype LIKE sapwlpfnrm-tasktype
                                       user  LIKE sapwlpfnrm-account
                                       terml LIKE sapwlpfnrm-terminalid
                                       repo  LIKE sapwlpfnrm-report
                                       entid TYPE entry_id_type.
      CLEAR entid.
      entid-type = 'R'. "field TCODE_OR_REPORT contains a report name
      CASE ttype.
        WHEN tt_autoabap.
          entid-tcode_or_report = repo = 'AutoABAP'.
          EXIT.
        WHEN tt_bufref.
          entid-tcode_or_report = repo = 'Buf.Sync'.
          EXIT.
    * 5.0 bei Tasktypen ALE, RFC, CPIC wird der TCODE mitgeliefert
        WHEN tt_ale.
          IF NOT ( tcode IS INITIAL ).
            entid-type   = 'T'.
            entid-tcode_or_report = tcode.
            repo = 'ALE'.
          ELSE.
            entid-type = 'R'.
            entid-tcode_or_report = repo = 'ALE'.
          ENDIF.
          EXIT.
        WHEN tt_rfc.
          IF NOT ( tcode IS INITIAL ).
            entid-type   = 'T'.
            entid-tcode_or_report = tcode.
            repo =  'RFC'.
          ELSE.
            entid-type = 'R'.
            entid-tcode_or_report = repo = 'RFC'.
          ENDIF.
          EXIT.
        WHEN tt_cpic.
          IF NOT ( tcode IS INITIAL ).
            entid-type   = 'T'.
            entid-tcode_or_report = tcode.
            repo = 'CPI-C'.
          ELSE.
            entid-type = 'R'.
            entid-tcode_or_report = repo = 'CPI-C'.
          ENDIF.
          EXIT.
      ENDCASE.
      CASE repo.
        WHEN 'SAPMSYST'.
          CASE dynpn.
            WHEN '0011'.
              entid-tcode_or_report = repo = 'Logoff'.          "#EC NOTEXT
            WHEN '0020'.
              entid-tcode_or_report = repo = 'Login_Pw'.        "#EC NOTEXT
            WHEN '0040'.
              entid-tcode_or_report = repo = 'MainMenu'.        "#EC NOTEXT
            WHEN '0010'.                   "nicht mehr R2 Lgout !!
    *          entid-type            = 'T'.
    *          entid-tcode_or_report = '/LON'.
    *          repo                  = 'R2 Lgout'.
              entid-tcode_or_report = repo.
            WHEN '0050'.
              entid-type            = 'T'.
              entid-tcode_or_report = '/LON'.                   "#EC NOTEXT
              repo                  = 'R2 Login'.               "#EC NOTEXT
            WHEN '0200'.
              entid-tcode_or_report = repo = 'New Pswd'.        "#EC NOTEXT
            WHEN OTHERS.
              entid-tcode_or_report = repo.
          ENDCASE.
        WHEN 'SAPMSSY0'.                   "Logon and other system exits
          CASE dynpn.
            WHEN '0120'.
              IF tcode = 'SE38' OR tcode = 'SA38' OR tcode = 'SE80'.
                entid-tcode_or_report = repo = 'Rep_List'.
              ELSE.
                entid-tcode_or_report = repo = 'Login_Ok'.
              ENDIF.
            WHEN OTHERS.
              entid-tcode_or_report = repo.
          ENDCASE.
        WHEN 'SAPMSSY2'.                   "BTC Control
          CASE dynpn.
            WHEN '4004'.
              entid-tcode_or_report = repo = '(B)SCHDL'.
            WHEN '4005'.
              entid-tcode_or_report = repo = '(B)STRTR'.
            WHEN '4006'.
              entid-tcode_or_report = repo = '(B)ZOMBI'.
            WHEN '4007'.
              entid-tcode_or_report = repo = '(B)EVDRI'.
            WHEN '4008'.
              entid-tcode_or_report = repo = '(B)EXTSC'.
            WHEN '4009'.
              entid-tcode_or_report = repo = '(B)AUTOD'.
            WHEN '4010'.
              entid-tcode_or_report = repo = '(B)SWTCH'.
            WHEN OTHERS.
              entid-tcode_or_report = repo = '(B)OTHER'.
          ENDCASE.
        WHEN 'SAPMSSY3'.                   "ABAP Debugger
          entid-tcode_or_report = repo = 'Debugger'.            "#EC NOTEXT
        WHEN 'SAPMSSY4'.                   "Update control
          entid-tcode_or_report = repo = 'Upd Ctrl'.            "#EC NOTEXT
        WHEN 'SAPMSSY6' OR 'SAPMSSY8'.     "Auto ABAP (SAPMSSY8 since 4.5)
          entid-tcode_or_report = repo = 'AutoABAP'.            "#EC NOTEXT
        WHEN 'SAPMSSY7'.                                        "Scheduler
          entid-tcode_or_report = repo = 'Schedulr'.            "#EC NOTEXT
        WHEN 'SAPMSEDT'.                                        "Editor
          entid-tcode_or_report = repo = 'Rep_Edit'.            "#EC NOTEXT
        WHEN OTHERS.
          IF repo IS INITIAL.
            IF dynpn IS INITIAL.
              IF user = sapsys_user.
                IF terml IS INITIAL AND ttype NE tt_btc.
                  entid-tcode_or_report = repo = 'System'.      "#EC NOTEXT
                ELSE.
                  entid-tcode_or_report = repo = '?'.
                ENDIF.
              ELSE.
                entid-tcode_or_report = repo = 'Aborted'.       "#EC NOTEXT
              ENDIF.
            ELSE.
              entid-tcode_or_report = repo = '?'.
            ENDIF.
          ELSEIF tcode = 'SE38'   OR
                 tcode = 'SA38'   OR
                 tcode = 'SE80'   OR
                 tcode = 'SARP'   OR       "SARP ausfiltern (Berichtsbaum)
                 tcode = 'SART'   OR       "SART ausfiltern (Berichtsbaum)
                 tcode = 'GR55'   OR       "GR55 ausfiltern (Berichtsbaum)
                 ttype = tt_btc   OR
                 tcode IS INITIAL.
            entid-tcode_or_report = repo.
          ELSE.
            entid-tcode_or_report = tcode.
            entid-type            = 'T'.
    * removed in release 6.30
    *        IF entid-tcode_or_report(3) CA space OR
    *           entid-tcode_or_report    CA '!'.
    *          entid-tcode_or_report = '!XYZ'.
    *        ENDIF.
          ENDIF.
      ENDCASE.
    ENDFORM.                               " TRANSLATE_TCODE_REPORT

  • Use data set from a SqlDataSource as an input table for another query

    I have a ASP.net winforms app with C# code behind. I am trying to provide a forecasting function that would allow users to perform "what if" analysis on parts of the database without changing the underlying database. Currently this forecast works
    by taking the production schedule from a table and running it against the forecasting query. What I'm trying to accomplish is allowing the user to have a copy of the data in a gridview so they can edit it and see the differences between their schedule and
    the current.
    My first attempt involved having a SqlDataSource create a temporary table and populate it with data from the main database. This allows for the first part (giving the user a copy of the data set to manipulate without changing the original). I tried to create
    a second SQLDataSource and reference the temporary table but it is not valid and appears that the temp table only exists in the session called by the first SqlDataSource. 
    Currently the first data source looks like this
    CREATE TABLE #mastersched(
    product [char](16) NULL,
    ,date [datetime] NULL,
    INSERT INTO #mastersched
    product
    ,date
     select  
    product
    ,date
           from (Main database table);
    select  
    product
    ,date
    from #mastersched
    I need to use the table #mastersched in a join statement within the forecasting query to return another dataset to be displayed either in a gridview, chart, report, etc.

    Hello REIData,
    This issue is more regarding ASP.NET, I suggest you posting it to the suitable forum:
    http://forums.asp.net/
    There are ASP.NET experts who will help you better.
    Thanks for your understanding.                                       
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Loading source tables without common columns using owb

    Dear All,
    I have 5 tables say a,b,c,d,e who has no columns between any of these tables .but i need to poulate some of the columns in each table as per my requirement and
    i need to load into my target table which needs the above tables source columns data .
    how can we achieve this as we dont have any columns across 5 tables.
    regards
    rajesh

    Same thread .
    Loading source tables data without common columns in  owb
    Please close it.
    Edited by: Nawneet on May 18, 2009 11:06 AM

Maybe you are looking for

  • Can't print from XP mode unless it's attached to the VM

    I've followed the insructions here: http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/how-do-i-install-a-printer-in-xp-mode/9dc7f464-2bea-42d1-9c45-dea8e039ecd5 I have a Windows 7 Professional machine that our building management gu

  • How do you tell if the first mouse button or the 2nd mouse button is clicke

    Hi guys, I need to figure out if the first mouse button is clicked or the 2nd mouse button is clicked. it seems that there is a method that is suppose to return an integer value dpeneding on what button is clicked but I printed out what is being retu

  • How many instances of the CR Runtime can i have?

    One of my customers has been using Crystal Reports for well over ten years.  They currently have a .Net windows service that runs reports and emails the output as a PDF to their clients. This has worked successfully for many years and currently they

  • Generating sound in Java

    Hi all! I'm about to build a Java class that can generate raw audio data. My intention is to write a java calss that given two frequencies starts generating a stream of 16-bit signed values generated by the function f(freq1,freq1). My first question

  • Civil Engineering student?

    Are there any civil engineering students who use Mac? My sister is going to CSU Sacramento and is going into engineering and she is looking into buying a computer and was originally just going to buy a Macbook until we stopped to think about whether