Creating a column blank for the query.

Hi all

I have a query which translates like this

A (col1) B (Col2) C (Col3)
1 90 x

But I want to add an extra empty column at the end as D (Col4). My query is joined by tables 6 and 7. So please can someone help with that.

Thank you
Sri

Sri,

Do you mean something like this:

select emp,deptno,name,NULL other from employee;

Other this is a column_name that does not really exist in the framework, but can be used in queries.

See you soon,.
Manik.

Tags: Database

Similar Questions

  • new to 4.02, no grid or column names in the query results

    It is a bit strange, I have SQL Developer 4.02 just installed, and I don't see grid or column names in the query results.  Don't see anything useful in tools > Preferences, what don't get me?

    The worksheet gives you a couple of different ways to run a query...

    1. instruction execute sheet icon toolbar (large green arrow, or Ctrl + Enter).

    This produces a results tab of the query with the data displayed in a grid.

    2. worksheet icon toolbar Execute the Script (the small tip of the green arrow on lined paper, or F5).

    This produces a tab out of the Script with the data displayed on the printer.

    If execution of the statement to Execute the Script, using some SQL * most orders will remove the column headers:

    1. set the position

    2. set the pagesize 0 (or 1 or 2).

    Pagesize and linesize default is - 1.  By default, the spreadsheet is free for formatting output script as he wishes.  If you have not changed these settings in the spreadsheet, then see if you point to a startup script in Tools > Preferences > Database > name of the connection startup script file

    Kind regards

    Gary

    SQL DeveloperTeam

  • create a default value for the file types

    I created a new site and is a kind of ColdFusion document.

    Dreamweaver creates ever new htm file when I right click on the folder of the site to create a new file for the site.

    I wonder what's possible to leave Dreamweaver to set the default file type.

    For example, Dreamweaver can create cfm for ColdFusion site files and php for PHP site.

    Your information and help is much appreciated,

    Kind regards

    Iccsi,

    I don't know what version of DW, you have, but in CS6 preferences panel allows you to specify the default document type and file extension for all new files that you create in DW.   This does not affect your existing website files.  Only for new.

    To edit existing documents, go to modify > Page Properties > title/encoding.

    Now, if you are working on several sites with the requirements of the other script, you can specify the type of page to create by clicking file > New > blank page > choose a page type.

    This help you?

    Nancy O.

  • tried to create a private folder for the work of the book as the in-laws use our computer but don't know where to start and it seems to have sent the info im trying to hide anywhere please help

    tried to create a private folder for the work of the book as the in-laws use our computer but don't know where to start and it seems to have sent the info im trying to hide in every sense, please help, its windows 7 we have, I will learn more about computer but now I have to stop my son-inlaw through my belongings on the computer

    Nancy

                                                   

    Hi Nancy,.

    Encryption of files and folders is a way to protect against unauthorized access. EFS (ENCRYPTING File System) is a Windows feature that you can use to store information on your hard disk in an encrypted format. Encryption is the best protection that Windows provides to help you keep your information secure.

    You can make a folder and then encrypt it.

    http://Windows.Microsoft.com/en-in/Windows7/encrypt-or-decrypt-a-folder-or-file

    Good day!

    Answer please if you face concerns.

  • Cannot save settings: unable to create a configuration file for the required configuration object

    When I try to open the application in the administrator account it say - could not save the settings: unable to create a configuration file for the required configuration object

    Thanks for the reply.i think that a virus changed I scan my computer and discovered C:\users\jason\AppData\local\temp\low\temporary internet files\content. IE5\TLIFXGRH\ why is Task Manager disabled people [1]

  • How to create my electronic signature for the first time

    How to create my electronic signature for the first time

    Hi debbieh62171891,

    You can fill feature & signature to create a Signature in Adobe Reader. If you want to create a Digital Signature using Adobe Reader you must then a PDF form with signature inside and drive field expanded licence fees. In this case, when you click the signature field it will take you with the process of creating a Digital Signature.

    Thank you

    Abhishek

  • How to create a dynamic RTF report that creates dynamic columns based on the selection of dynamic columns in a table?

    Hi all

    Suppose I have table, whose structure changes frequently on a daily basis.

    For example. / / desc my_table gives you after the name of the column the day 1

    SQL > my_table DESC;

    Output

    Name

    Age

    Phone


    Day 2, two other columns are added, viz, address and salary.

    SQL > my_table DESC;

    Output

    Name

    Age

    Phone

    Address

    Salary


    Now, I want to create a Dynnamic RTF report which made extracting data from all columns from my_table daily. For this, I have defined a simultaneous program with XML output type and include in annex a data/definition of data model that takes XML as input and gives the final result of the conc program in EXCEL layout. I am able to do that for a constant number of columns, but don't know how to do it when the number of columns to display dynamically changes.

    For 1 day my XML file should be like this.

    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
    </group>
    </dataStructure>
    </dataTemplate>
    
    

    And my day 1, EXCEL output RTF model should be like this.
    Name age phone

    Swapnill 23 12345

    For 2 days my XML file should be like this. With 2 new columns selected in the SELECT clause.

    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    ,Address
    ,Salary
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
      <element name="Address" value="Address" />
      <element name="Salary" value="Salary" />
    </group>
    </dataStructure>
    </dataTemplate>
    
    

    And my day 2, exit EXCEL model RTF should be like this.
    Name address telephone pay

    23 12345 Madrid 100000 Swapnill

    Now, I don't know below things.

    • Make the dynamic XML as we did in the day 1 there are 3 columns in the SELECT statement and the day 2, 5 columns. I want to create a dynamic XML which must not be changed if the new columns are added into my_table. I don't know how to create this query and also create their corresponding items below.
    • Make the RTF model dyanamic as day 1 there are 3 exit EXCEL columns and the day 2, 5 columns. I want to create a dynamic RTF model that would display all the columns selected in XML dynamic. I don't know how the RTF will create new XML tags and how it will know where to place them in the report. Means, I can create model RTF day 1, by loading the XML data for 3 columns and place 3 tags XML in the model. But how he will create and place the tags for the new columns the day 2?

    Hope so, you got my requirement, it's difficult. Please let me know how I can implement the necessary solution using the RTF dynamically without any manual intervention.

    Kind regards

    Patricia K.

    Post edited by: SwapnilK

    Hi guys,.

    I was able to solve above the requirement.

    I created a procedure that would create & update (attached to the data definition) XML file dynamically for each race. This dynamic XML contains the SQL statement for the data query that is built dynamically. I am updating this XML file using XDOLoader utility to the definition of data. Then run my program customized to generate the excel output.

    Exit excel retrieves correct number of columns dynamically (3 on Day1 and Day2 5), with corresponding data records.

    Kind regards

    Patricia K.

  • Column filtering for the current year measure

    Hello

    I'm blocked up with the question, we have a report of three tables D1, D2, and F1. Where D1 is of time dimension. We now report D2 and F1 with action, and the report is placed on the dashboard which is having the guest of the year.

    F1 is joined with dimension D2 and D1 time as well, the requirement is in the report we measure column say X should always show the values for the current year, while others displayed according to the prompt values... In short, I want to show the column to measure for the current year, even if the user selects the value of prompt for year earlier and it must not change the values.

    Please let me know, how to get there.

    Thanks in advance

    I am able to do this by following steps.

    1. I created a column in the MDB layer with similar to above said Srini case statement.
    2. Then I made the logic level of the time dimension column at ALL. So obiee ignores / filter join with the dimension of time to this measure, and the measure will always displays the data from the current year according to the case statement.
    3. If I did not this measure to all levels at the logical level, it's not working to the dashboard, when we change the year with the previous year it shows null values or zero according to the instruction box.

    Thank you.

  • Get the value based on the column names for the custom of the Webcenter content metadata field

    University Complutense of MADRID, I created a custom text metadata field.  I then activated optlist this area.  I fill the optList values, I use a view.  The view has three columns.  Let us call their ID, Key, Value.  OptList shows keys in its list.  I then create content (Content ID: MyContent) Webcenter content and choose the OptList values for my new field of metadata (MyField).

    WebCenter portal, I'm filling a selectOneChoice with MyField values in the content ID: MyContent.  Remember the previous step, the values entered in selectOneChoice lists them selected values from the field MyField optList.  The optList is filled from view.  After the user selects a value in selectOneChoice, in Javascript, I need to alert a message in this format "selected value - matching value from the view of the optList that fills MyField.

    In my opinion, only an example will be useful:

    This is a view that I created in Configuration Manager applet in Webcenter content Admin cmdlets :

    ID | State | Capital

    1. North Carolina | Raleigh

    2. California | Sacramento

    3. Illinois | Chicago

    Then I create a custom field (name: MyField).  MyField is an optList values are filled with view created above.  Internal value and the display value are the two State.  Then I have a new content with Content Id Check-In: MyContent.  To MyContent, I select these values in OptList MyField: {North Carolina, Illinois}.

    In my portal Webcenter application, I create a Taskflow presenter content.  I have set up as single content item presenter.  I attribute as content ID MyContent.  Then, in templateView, I get all the values of MyField in MyContent and display as selectOneChoice.  I created a javascript function that would get the value that the user selected in selectOneChoice.  In the view created in the Webcenter content Configuration Manager (see above), there is a value corresponding to each displayed value.  So, for the selected value, I need to get the corresponding Capital and display in my alert message.

    Starting from Javascript, how can I get the value of the Capital, since I have the status value.

    Hello.

    The idea to reach your requirement is planned:

    • Create an Assistant manage bean that will appeal as access map: #{stateUtil ['Calofironia']} (it will return Raleigh). This value will get calling GET_SCHEMA_VIEW_VALUES IDC service using RIDC in your managed bean.
    • Pass the result of #{stateUtil ["statename"]} to your JavaScript function to help

    I hope this information help you.

    Kind regards

  • [SOLVED] Create ViewObject as placeholder for the parameters of the form

    Hello

    I posted the following question (JDeveloper 11.1.2.3):

    http://StackOverflow.com/questions/14592202/create-ViewObject-as-placeholder-for-form-parameters

    Basically, how do you create a ViewObject that can perform validation and harness LOVs, but don't don't don't need to be supported by any source of data?

    Is it still the right approach?

    Thank you!

    Hey, Timo.

    This can be accomplished without an OA. As far as I can tell, it's the right answer, but this forum does not allow me to choose my own answer as correct, but somehow allows me to report my own post as an abuse. Strange.

    Find the property formatted (and selected as correct) answer on StackOverflow: http://stackoverflow.com/a/14611815/59087

    # Solution

    You have:

    -Create a view object to be programmatic, with the desired attributes.
    -Configure the view with validation rules object.
    -Configure the Module of the Application.
    -Create the form on the web page.
    -Update the page link to create a new line.

    # Create object View

    Create the view as follows:

    1. type Control+n to open the * New Gallery *.
    1. search and select * view object *.
    1. click on * OK *.
    1 set * Package *, * name *, and * display name * properly.
    1 set * data * to * programme *.
    1. click on * following *.
    1. click on * new * and provide a significant attribute name.
    1. click on * OK *.
    1. Add the remaining attributes.
    1. click on * following *.
    1 set * Updatable * to * always * all attributes.
    1 set * Type * for the appropriate data type.
    1. click on * finish *.

    # Configure Validation rules

    Configure the following validation rules:

    1. click on the * attributes * tab.
    1. Select the desired attribute.
    1. click on the * tab Validation rules *.
    1. click on the * + * icon in the * section Validation rules *.
    1 set it * rule definition * as required.
    1. set * error * as required.
    1 Repeat to add validation as necessary rules.

    At this point a view object has been configured and the * list tab of values * can be used to reference LOVs based on a query.

    # Configuration Application Module

    Configure the module of the application as follows:

    1 double-click on the module of the app.
    1. Select * model data * tab.
    1 Shuttle the object view of * available see items * to * model data *.
    1. remove the * 1 * suffix.
    1. save the application.

    Note: If the view object is not visible, restart JDeveloper.

    # Create Web Form Page

    Create a web page to the form as follows:

    1. create a new JSF of the object view page.
    1 update the * data controls * see the instance of the view object.
    1. drag and drop the view on the page object.
    "1. Select * form" ADF form *.
    1 check * include submit button *.
    1. click on * OK *.

    The web page is created.

    # Update the Page link

    Cannot change the attributes of the view object unless there is a 'line' created for the instance of the view object. Creation of this line in memory must occur before the display of the content on the page. Accomplish this as follows:

    1 extend the data controls to reveal the view object * operations *.
    1 drag * Create * in the facet of footer.
    1. Select * ADF button *.
    1. right-click on the page.
    1. Select * go to Page definition *.
    1. click on * + * next * executable *.
    1. Select * invokeAction *.
    1. click on * OK *.
    1. set * id * to: create
    1. set * lie * for: create
    1. click on OK.
    1. the refresh value: * prepareModel *.
    1. save all.

    You can now remove the create"" button.

    The validation is applied, and data-driven LOVs can be used.

    Published by: Dave.Jarvis on January 30, 2013 11:15

  • File extensions do not created when saving images for the web, using the slice, Photoshop CS4-slice tool

    Working with slices in Photoshop

    When I save slices through "Except for web devices", in PS, the resulting images are file extensions but appear to be image files.  I can open in Windows Gallery Viewer and see them however, they have no icon other than a blank page icon, not the usual png or jpg types.

    To solve this problem I added manually .png and .jpg those pristine images through their file names. It seems to work very well for the resolution of jpg files.  In addition, when registering via 'Save for web devices' slices I chose manually imput to the second field and following: PNG or jpg.  This results in the names of files with .jpg but not .png [both png12 and png24]

    When you save slices:

    1. choose the file type

    2 save

    3. internal record Panel: choose:

    (a) image only

    (b) Selected slices [or user slices - as seem to have similar results]

    (c) in the settings: other:

    (i) disable: copy the background image and create the image folder

    (II) for the file nameing use: slice of name and in the second field, add the file extension: jpg or png.

    PNG FILES

    I seem to have problems to import any .png file, created from slices via 'Save for web devices' method, in PS and Fireworks.  However, I do not seem to be able to import them into Illustrator and Indd.

    I want to do is to be able to create slices PNG and JPG files and follow the method "Save via web devices" without having to become an expert in all the options in the Save Panel.  And then be able to import it into Fireworks or in PS.

    Is there something in the preferences that needs to address, or there at - it a bug of sumfink?

    To solve the problem of file extention:

    1. When you save file slots in the Panel 'Save for web devices' and 'Save' Panel appears. Then, you click on 'other' in the settings and do appear the file naming options panel.  Make sure you keep ".ext" in the substantive area of naming options.

    Yes, that's the error.  Now file for .png extensions are created and therefore work OK in Fireworks and Psalm

  • Create a default value for the record button on

    Hi all

    Help me on what follows.

    I have region with user name. I want to when I create a username it will automatically sets the value for the status to 'active '.
    As I have status field in the table.

    Thanks in advance

    If the status is a Page element, you can set the default value. If this isn't the case, you can have a base table, the default value of this column status.

    alter table t1 modify status varchar2(6) default 'Active';
    

    Tarraf

  • Requirement for the query

    Hi all

    I'm using Oracle 11.2.0.3

    CREATE TABLE PRODUCT (ID NUMBER, PRODUCT_CODE VARCHAR2 (30));

    INSERT INTO THE PRODUCT VALUES (1, 'CAR1');

    INSERT INTO THE PRODUCT VALUES (2, 'CAR2');

    INSERT INTO THE PRODUCT VALUES (3, 'CAR3');

    INSERT INTO THE PRODUCT VALUES (4, 'CAR4');

    INSERT INTO THE PRODUCT VALUES (5, 'CAR5');

    CREATE TABLE ITEM_STG (ITEM_CODE VARCHAR2 (30), ITEM_DESC VARCHAR2 (200));

    INSERT INTO ITEM_STG VALUES ('CAR1', 'MARUTI');

    INSERT INTO ITEM_STG VALUES ('CAR2', 'AUNTIE');

    CREATE TABLE AN ELEMENT (ITEM_CODE VARCHAR2 (30), ITEM_DESC VARCHAR2 (200));

    INSERT INTO ARTICLE VALUES ('CAR1', 'BMV');

    INSERT INTO ARTICLE VALUES ('CAR2', 'BENZ');

    INSERT INTO ARTICLE VALUES ('CAR2', 'LANDROVER');

    INSERT INTO ARTICLE VALUES ('CAR2', 'JAGUAR');

    My requirement is like I make a query

    so that it checks the product code with the item code

    and first he will get the values of the table ITEM_STG if the value of patcular is not found in the table ITEM_STG then it goes to the table ARTICLE

    can it be possibel in simple sql query

    SELECT A.PRODUCT_CODE, NVL (B.ITEM_DESC, C.ITEM_DESC)

    THE PRODUCT,.

    B ITEM_STG,

    POINT C

    WHERE A.PRODUCT_CODE = B.ITEM_CODE

    AND A.PRODUCT_CODE = C.ITEM_CODE

    I tried like the query above and with left join and other possibilities, but getting not the query.

    Please help me

    Thank you

    You were close...

    SQL> ed
    Wrote file afiedt.buf                                              
    
      1  select a.product_code, nvl(b.item_desc, c.item_desc) item_desc
      2  from product a, item_stg b, item c
      3  where a.product_code = b.item_code ( + )
      4* and a.product_code = c.item_code
    SQL> /                                                            
    
    PRODUCT_CODE
    ------------------------------
    ITEM_DESC
    ---------------------------------------------------------------------
    CAR1
    MARUTI                                                            
    
    CAR2
    TATA                                                              
    
    CAR4
    JAGUAR                                                            
    
    PRODUCT_CODE
    ------------------------------
    ITEM_DESC
    ---------------------------------------------------------------------
    CAR3
    LANDROVER                                                         
    

    Note: remove space (+)

    Grrr... stupid software

  • 404 error when the lowest selection (column name) for the metadata 11 g dictionary


    Hi all

    I get a 404 error when I select a column name and click the link for dictionary of metadata. I get the 404 because obiee is allowing more 179 characters for the web link. You do not get a 404 error if you click on one of the shorter column names.

    When you select the number of offices with commands and then click the metadata dictionary button you get the error 404 below and the web address is truncated causing the 404

    This is the product link

    http / / self/analyticsRes/SampleAppLite_BI0024/SubjectArea/PRCAT_Sample_Sales_Lite80cb6a2e /.

    PRT_Calculated_Facts80cb6aa9/PRC_N_of_Offices_with_Or80cb6cfb.x

    If you type the ml at the end, you can see the Web page you want. Also if you click on the area in question and then click the dictionary of metadata and access the column from here the link works.


    otn screen shot2.png

    We receive this error in our Dictionary of metadata generated, but I can also reproduce the problem with the sample app, we have placed the dictionary in the folder anlyticsRes.

    I just wanted to check to see if someone else has this problem.

    Thanks in advance!

    S. Clark

    I opened a SR and a bug has already been reported, and the solution is in the latest patch.

    Solution

    The fix for the Bug 17449036

    is included in the bundle 20124371 Patch (patch bundle 11.1.1.7.150120). See this note for more information:

    Note 1488475.1: OBIEE 11 g: required and recommended patches and Patch Sets

    There is also a one-off Patch 17449036 on top of previous patch bundle for different platforms.
    It is advisable to be in the latest patch bundle. In this case, you prefer to apply exceptional measures, you can do but
    It is not for all platforms and all the patches together.

  • How to create a page "administrator" for the management of web site with muse?

    Hi people from adobe, I am writing because I have a problem and hope you can help me!

    I created a website with muse, but now I have need a page "administrator" for download rapid photos in the Gallery of the site (like CMS) section, can I create with adobe muse or will I achieve a personal PHP page?

    PS I'm sorry for my terrible English and thank you for the help.

    Francesco M.

    You cannot create any dynamic stuff with just muse. You really need to use PHP (or other server languages) and one database.

    Mylenium

Maybe you are looking for

  • Received notice that my account is closed by Apple

    I received an email "We notice that you do not use your iTunes account because a long time so we're abligate to close your account in accordance with our policy, including your email i-cloud also."  Is it a scam?  I buy via iTunes almost every month.

  • Get new mail for multiple accounts at the same time &amp; displayed together.

    I have several email addresses and want to get new messages in all accounts e-mail with a single click.Also would like to have all THE messages from all accounts appear together. It would imitate the Mac Mail implementation that I used. I'd rather NO

  • Why my Beta Firefox open a comand prompt when closed?

    Since a week or two each time when I close my Firefox browser a command prompt appears for a short time. It isn't really an embarrassment, but apparently not in order. Judging by the title of the window, it's something to do with the recording of my

  • Opening books

    I took hours to create a book in opening, I went to click on an icon representing a book purchase and now he says that they do more books? Did I miss something?

  • How to make the partitions using the toshiba restore CD

    Hi forum users. I just want to explain more on creating partitions using our Toshiba Recovery CD. I have a portable satellite A50-101. I searched some topics on this forum and found this post from Quad. Just follow these steps carefully and you'll be