Fill table using different statements for each field (newbie question)

Hi all, I'm about to fill table table1 (field1, field2, etc.) using different statements (and maybe variables) for each field.
My statements are too different to combine them into one query, but my example is simple:
statement 1:
SELECT ttt AS field1 FROM dual
statement 2:
SELECT yyy AS field2 FROM dual
Each statement returns one value. Maybe I need some variable for each value, so var_field1 = field1, var_field2 = field2, etc.
As a result I have to fill table table1 using my variables, so it must be some procedure.
I know I can do it using one statement below, but I have more than 100 queries, so they should be executed one by one.
with t1 as(
select (SELECT 'ttt' FROM dual) field1, (SELECT 'yyy' FROM dual) field2 from dual
select * from t1;
Could you please show me some example, how this procedure should be written?
Thanks ahead.

This hasn't got anything to do with Oracle Reports, but here we go anyway. Your query can simply be:
with t1 as(
select 'ttt' field1, 'yyy' field2 from dual
select * from t1;
FIE FIE
ttt yyy
1 row selected.But maybe your example was an over simplification of your problem.

Similar Messages

  • How to use select statement for one field

    I want to fetch the data from table and only one field  , the below code i written is correct or not , because only for one field i used endselct  if i am not giving endselect it is  showing error. Please suggest me.
    DATA : SBELN TYPE VBAK-VBELN.
    parameters : s_vbeln type vbak-vbeln.
    select vbeln from vbak into sbeln
    where vbeln = P_VBELN.
    endselect.

    Hi ,
    As because you want single field but not single record so SELECT  SINGLE is not correct .
    You need to create a internal table with the field of VBELN.
    Then you need to fetch the records from the VBELN field of table VBAK.
    Try this code --
    DATA : t_itab like table of VBAK-VBELN.
    parameters : s_vbeln type vbak-vbeln.
    select vbeln from vbak into table t_itab
    where vbeln = s_VBELN.
    Regards
    Pinaki

  • Syncing 1 BB with 2 PC's using different folders for each

    I have a BB Tour and want to sync it with 2 PC's - one at work and one at home. Neither PC uses Exchange, BES, etc. My primary syncing is with my home PC. However, I'm wanting to do a 1-way sync from my office PC to the BB, and have info saved in separate folders (I think I need separate folders to be able to have my work contact info and calendar available to me when out of the office). Also, I don't want all of my work data to transfer to my home PC when I do a home sync. 
    Can anyone help? Thanks.

    Hello cohenville,
    Welcome to the BlackBerry Support Community Forums.
    You can certanly sync with multiple computers. However the BlackBerry Smartphone will not difirentiate between the data and combine it all into one contact list. Meaning that if you have 1 way sync set up at work and then sync 2 ways at home, all of the work contacts will go over to your home PC. The only way is to have 1 way sync enabled at both places and only sync to the device. This however would mean that any information you enter on the BlackBerry will not sync to any of the PC’s.
    When it comes to the calendar sync, as long as you have more than 1 email integrated on your BlackBerry Smartphone it is possible to synchronize to different calendars separatly. This is a tricky process and I am attaching a knowledge base article that explains how it would work. (Keep in mind that if the default calendars are not switched back and forth between different PC’s, there is a big chance that you will run into issues with duplication of calendar appointments and deletion of appointments.)
    Link: http://www.blackberry.com/btsc/KB17992
    Please make sure you backup your BlackBerry Smartphone prior to trying any of the steps.
    Thank you
    -DrP
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • Drop Down List in a table - different options for each row

    How can i have a drop down list in a table with different options for each row?
    My requirement is this.. I want to display, say employee dtails in a table, and one column is employee hobbies, whcih can have multiple values and each employee may have a different list of hobbies. So how can we populate the drop down for each row, with different options?

    Hey. Uh, this probably isn't the answer you were looking for, but it sounds like you've got a problem with your database design there. Generally speaking, your tables shouldn't have multi-valued fields, in the relational model anyway (sql). Instead, you should look at adding a separate table like EMPLOYEE_HOBBIES. Then you have a foreign key using the employees primary key as the foreign key in the employee_hobbies table, see what I mean? I might have misunderstood your explanation though, I'm not sure.
    Alternatively, you could just have hobbies as a big freeform varchar field, and don't bother to make people separate their hobbies into different fields (you'd have to abandon the drop-down listbox idea in this case). If there's no really important reason to make the distinction, then it's probably easier just to not do it.

  • Different link for each cell on table item

    hello..,
    I have one table item on my WAD template.
    I created Characteristic Structure/Selection for rows and Key Figure Structure/Selection for columns.
    There is a requirement to jump to different report for each cell on that table.
    Is it possible?
    I try to created class "ZCL_MYCLASS" with superclass of "CL_RSR_WWW_MODIFY_TABLE".
    And put some code on HTML as below:
    <P><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TABLE"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER"/>
             <param name="MODIFY_CLASS" value="ZCL_MYCLASS"/>
             ITEM:            TABLE
    </object></P>
    For testing purpose, I put coding on CHARACTERISTIC_CELL method:
    if I_CHAVL = 'Revenue'. "This is selection description
    c_cell_content = 'R_e_v_e_n_u_e'.
    endif.
    But, it seems that it doesn't work.
    The question:
    1. How do I create simple MODIFY_CLASS, just for testing purpose that what I modify in class is already correct.
    2. How to debug class on WAD?
    Thanks in advance

    Not statically, but you can do this in code:
    That's a method on the left and a property on the right.
    I don't know if this will work as you expect (it should change the tip strip, but I don't know if it will appear like you want it to), so you can also implement this yourself by having a string indicator which you show and move around using its properties.
    Try to take over the world!

  • How to use the different class for each screen as well as function.

    Hi Experts,
    How to use the different class for each screen as well as function.
    With BestRegards,
    M.Thippa Reddy.

    Hi ThippaReddy,
    see this sample code
    Public Class ClsMenInBlack
    #Region "Declarations"
        'Class objects
        'UI and Di objects
        Dim objForm As SAPbouiCOM.Form
        'Variables
        Dim strQuery As String
    #End Region
    #Region "Methods"
        Private Function GeRate() As Double
                Return Double
        End Function
    #End Region
    Public Sub SBO_Appln_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
            If pVal.BeforeAction = True Then
                If pVal.MenuUID = "ENV_Menu_MIB" Then
                End If
            Else ' Before Action False
                End If
        End Sub
    #End Region
    End Class
    End Class
    Rgds
    Micheal
    Vasu Anna Regional Feeling a???? Just Kidding
    Edited by: micheal willis on Jul 27, 2009 5:49 PM
    Edited by: micheal willis on Jul 27, 2009 5:50 PM

  • Happy Holidays.  I have Adobe Actobat 7.0 Standard for quite a while, and I'm happy with it. I use it for mainly filings at the federal court.  They require PDF.  I use two computers in two different states for work.  I realize my Adobe 7.1 is a few years

    .  I have Adobe Actobat 7.0 Standard for quite a while, and I'm happy with it. I use it for mainly filings at the federal court.  They require PDF.  I use two computers in two different states for work.  I realize my Adobe 7.1 is a few years old, but sometimes I have difficulty using it with the other days downloading a boarding pass, and e filing at the USDC. .  There's a problem with Adobe Flash, media, etc.  and other Adobe programs, (which I use for downloading boarding passes for airlines, etc.) so basically I have to delete these other Adobe programs, besides the Adobe Acrobat 7.0 Standard if I want to 7.0 Standard to work.  I periodically download the updates, but there's still a problem. My question is:  Can or should I purchase another program to update the present Adobe Acrobat 7.0 standard, or just buy a new program such as the Adobe 11?  Am I mistakenly doing something wrong, such as when I download?  I'm an old valued customer so I don't want to spend a lot of money since I am replacing my Dell XP for a new computer now, and my other computer is a Dell Vista.
    I'd appreciate your valued advice.

    If you are getting a new computer (for a PC it would have Win 7 or 8), then you will need to purchase XI if you wish to continue using Acrobat. Acrobat 7 is not compatible with these systems (and probably the same for MAC systems), though sometimes workarounds are possible, though not easy to use. I guess the answer is to buy the new version. Try http://www.adobe.com/products/catalog/software._sl_id-contentfilter_sl_catalog_sl_software _sl_mostpopular.html, click on the Buy for Acrobat, and then select the version you want.

  • Qry:How to get different price for each price list (variable area) in order

    1-How to get different price for each price list (variable area) in order for sale. for the opportunity to display and select multiple prices.
    2- I add a location store from a table in line item and I want to see this area in order,.
    I 'm created 2 field location(item line and order), 1 table location
    I tried this for exemple : select $ [userfieldlocation.OITW]

    Thanks Suda for your answer,
    the Formatted Search for prices is OK, but for the Item locations in warehouse this is not so simple,     
    I must have several (at least 2) locations for the item in the Warehouse and a track of this location and search possibilities.
    read carefully and imagine how (Management warehouse locations)
    I added a user table '@Location' who linked to a user field 'U_Location in Item master data --> lnventory data  line and an ather user field 'U_Location' in sales order
    I met the value of location in the table (list of locations for any warehouse), I select the location of each item while receiving merchandise in the user field of inventory data line (Item M data) and this value appears in the sales order 'U_Location' user field ( only the location value in the default warehouse for this Item)
    or
    create an user field 'location' in Good receipt PO to fill it while receiving merchandise that appears in the sales order to give possibility to find/select the location of the item at this order and in Item master data
    I think we will use all these tables
    @LOCATION
    PDN1
    OITM
    OITW
    OWHS
    RDR1
    Juste a another question : where you found this and What is: ' 38.1.0 '
    Is it in document (System information):Item=38 Pane=1 ??
    Thanks,
    Ouchen

  • FETCHING VALUES IN MULTI RECORD BLOCK FROM ANOTHER TABLE USING SELECT STATEMENT.

    Hi,
    I have one multi record block in which i want to fetch values
    (more then one record) from another table using select statement
    IN KEY NEXT ITEM.I am getting following error.
    ORA-01422: exact fetch returns more than requested number of rows
    Thanks in advance.

    In your case I see no reason to use non-database block and to try to populate it from a trigger with a query, instead of using the default forms functionality where you can associate the block and the fields with table, create where clause using bind variables and simply use execute_query() build-in to populate the block. The power of the forms is to use their build-in functionality to interact with the database.
    Also, you can base your block on a query, not on a table and you dynamically change this query using set_block_property() build-in. You can use any dynamic queries (based on different data sources) and you simply need to control the column's data type, the number of the columns and their aliases. Something like creating inline views as a block data source.
    However, you can replace the explicit cursor with implicit one like
    go_block('non_db_block_name');
    first_record();
    FOR v_tab IN (SELECT *
    FROM tab
    WHERE col_name = :variable)
    LOOP
    :non_db_block_name.field1 := v_tab.col1;
    :non_db_block_name.field2 := v_tab.col2;
    next_record();
    END LOOP;

  • Different caption for each photo in web gallery

    When you take your selected Photos from Library  to WEB is it possible to have a different caption for each photo. If I select 1 photo from the import and change its caption using the caption popup in the "Image Info" pane all the image captions change even the unselected ones.
    How can I change individual photos so that they will have individual captions in the web gallery?

    You should change the caption metadata field in the Library module. Go to the Library module, select the image you want to change the caption on, in the right panel, scroll down to the metadata section. Make sure that the popup to the left of metadata is set to "default" and you should see the standard metadata. Simply type your caption here. Then, if you've done this for all your photos, go back to your web section and make sure you set the caption popup in the image info section back to "caption", which will use the info in the caption metadata field for each photo automatically.

  • Different ringtone for each contact

    Is it possible to set a different ringtone for each person or at least each person on your Buddy List?

    I bet all your contacts are Google/Gmail imported right? I had the same problems when I got the phone. I used to have a Droid so when I switched over my contacts where synced through Gmail....and thats where the problem is at...and here's the bad news: you can assigned different ringtones to your contacts but they have to be IN PHONE CONTACTS...meaning that they must be saved directly into the phone(the old fashion way) not sync'd from another source. To prove my point try this: open up your contacts and click "add new" fill in the usual info but after you enter in the phone number dont hit save but keep scrolling down and guess what you'll see......yep, "ringtone" Weird but thats just how this phone is. After finding this out I had to stop gmail from sync'ing my contacts, wrote down all my contacts, erased the contacts that were on the phone, and began the long process of typing in all my contacts into the phone. have fun....

  • Separate chart for each field

    I have a table with 74 numerical fields for a given date.  The table looks something like
    RecordDate Field1
    Field2 Field3
    .... Field74
    I would like a line chart for each field with the value on the Y axis and date on the X axis.  That part is easy enough.
    The problem is that if I put 74 lines on the same chart it will be unintelligible.  Unfortunately I think the best way to observe trends in the data over time is a line chart for each.
    I know that I could manually add a separate chart for each one.  However, I'd like to dynamically add a chart for each field.  We may potentially add Field75 down the road, so avoiding reengineering the report each time is desirable.  Is something
    like this possible?
    Thanks!

    Hi Mateoc15,
    If I understand correctly, you want to specify a Chart Area for a Series in order to increase the readability of the chart.
    In Reporting Services, the bar, polar, or shape series can only be combined with series of the same chart types in the same chart area. If you are using a Polar or Shape chart, you can consider using a separate chart data region for each field that you wish
    to show.
    For the details, please refer to the link:
    Specify a Chart Area for a Series (Report Builder and SSRS)
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Text field keeps repopulating same text and I need to enter different text in each field

    I am filling out a downloaded, fillable form. In one section, it asks me to list different items. When I enter text into the first field, it automatically enters the same text in the remaining fields. I need to enter different items in each field. Please help!

    There is nothing you can do. The fields were improperly set by the creator. To fix this you need Acrobat not Reader.

  • I have multiple emails, how do I add different signatures for each email address

    I have multiple emails for different companies I work for, how do I add a different signature for each one, it seems like I have to use the same one for all of them

    Thanks.  I think I'm on the right track.  I added the email address to my contacts and double clicked the image icon to change it, but it only lets me snap a new picture or select an image from another location.  What is the folder location of the stock icons that come with Mac OSX?

  • How to use different stylesheets for ChangeAttributeRequest workflow in OAM

    Hi,
    We have a requirement to invoke different change attribute request workflows (change password ,change email etc..) from external JSPs..
    I want to apply different stylesheets for each workflow. In the workflow URL if i enter style=stylesheet-name its not using that stylesheet. Always its using the same base stylesheet (wf_changeattr.xsl). How can i use different stylesheets? Any pointers on this is appreciated.
    Thanks inadvance..
    Regards,
    Srikanth

    Hi Colin,
    Thanks for your response. Now i am able to invoke different xsls for different workflows.
    I did a mistake by entering style=stylesheet-name. I verified the same with xsl=stylesheet-name.
    Its working fine now..
    Thanks & Regards,
    Srikanth

Maybe you are looking for

  • SQL script: dynamic table creation

    Hello, I should write a sql script to do the following (simplified): - Create a table if it doesn't exist yet - Select something from the newly created table and do further conditional actions I've tried something like that: DECLARE lv_count INTEGER;

  • NSNumber or primitives?

    Hi, I'm new to objective-c programming from a PHP / Ruby background. I'm just trying to get a handle on best practices for my development. I have a method which does a fair bit of floating point calculations then returns an NSNumber object. When i'm

  • Where are the 9ias2 manager username and the password?

    I have installed the 9ias 2 core WIN2k edition. When login the Oracle Enterprise Manager(access the http://computername:7777 is ok), the system prompt me to enter the username and password in "enterprise-manager"@computername But I never set the user

  • Error on page when selecting a Risk for Mitigation from CUP

    Hi, I am not getting the link to Mitigate the riks for the Roles requested from CUP. when I am trying to select the risk to mitigate after the Risk Analysis is done from RAR and the report is fetch to CUP no links are showing. It shows error on the s

  • Set Position of Window after action

    Hello Experts, is there any oppurtunity to set the position of the scroll - bar to the top after execute a action? Many Thanks Marco