OBIEE 10g - Can I use logical SQL to set variable?

I am trying to set value of a session variable in the Advanced tab Prefix box of a request.
Assigment of absolute value like this is working good:
SET VARIABLE MYVAR=1;
Can I set the variable using logical SQL? Something like:
SET VARIABLE MYVAR = (SELECT table1.col1 from catname where table1.col2=1)
Thanks in advance.

Hi,
You can create a session variable or dynamic variable in the RPD and try using it in here at the Advanced Tab prefix.
But still check yourself if you need multiple values returning in the SQL statement.
Hope this is helpful/ useful.
Regards
MuRam

Similar Messages

  • How can i use one SQL statement to solve problem?

    How can i use one SQL statement to solve the question below?
    For a Table named A, there is a column named F(char type).
    Now select all the records where F like '%00' and update their F value to '%01'
    Just one SQL statement.Do not use PL/SQL block.
    How to do that?
    Thanks.

    What is the data volume for this table?
    Do you expect lots of rows to have '%00' as their value?
    Following two statements come to mind. Other experts would be able to provide better alternatives:
    If you have index on SUBSTR(f, 2):
    UPDATE A
    SET    f = SUBSTR(f,
                      1,
                      length(f) - 2) || '01'
    WHERE  substr(f,
                  -2) = '00';If most of the rows have pattern '%00':
    UPDATE A
    SET    f = SUBSTR(f,
                      1,
                      length(f) - 2) ||
               DECODE(SUBSTR(f,
                             -2),
                      '00',
                      '01',
                      SUBSTR(f,
                             -2));

  • Can we use Dynamic SQL in Oracle Reports ?

    Hi ,
    Can we use Dynamic SQL in Oracle Reports ?
    If yes please give some examples .
    Thanx
    srini

    I believe the built-in package SRW.Do_Sql is what you are looking for
    Example from the document:
    /* Suppose you want to create a "table of contents" by getting the
    ** first character of a columns value, and page number on which its
    ** field fires to print. Assume that you want to put the "table of
    contents"
    ** into a table named SHIP. You could write the following construct:
    DECLARE
    PAGE_NO NUMBER;
    PAGE_FOR INDEX NUMBER;
    SORT_CHAR CHAR(1);
    CMD_LINE CHAR(200);
    BEGIN
    SORT_CHAR := :SORT_NAME ;
    IF :CALLED = Y THEN
         SRW.GET_PAGE_NUM(PAGE_FOR_INDEX);
         SRW.USER_EXIT(RWECOP PAGE_FOR_INDEX
         P_START_PAGENO);
         SRW.MESSAGE(2,TO_CHAR(:P_START_PAGENO));
    END IF;
    SRW.GET_PAGE_NUM(PAGE_NO);
    CMD_LINE := INSERT INTO SHIP VALUES
                          (||SORT_CHAR||,||TO_CHAR(PAGE_NO)||);
    SRW.MESSAGE(2,CMD_LINE);
    SRW.DO_SQL(CMD_LINE);
    COMMIT;
    EXCEPTION
      WHEN DUP_VAL_ON_INDEX THEN
            NULL;
      WHEN SRW.DO_SQL_FAILURE THEN
            SRW.MESSAGE(1,FAILED TO INSERT ROW INTO SHIP TABLE);
      WHEN OTHERS THEN
           COMMIT;
    END;

  • Can you use logic express on a mac mini for recording

    Can i use logic exprees on a mac mini for recording? Ive seen alot of 8,12, and 16 track recorders with a cd burner and it seems like a logical and more productive gues for me to buy a macmini for the same thing of recording and then I can uses logic express, a far better program for recording. can the mac mini handle the load of processing tracks and how much ram should I uses? thanks tim

    sorry, I'd like to butt in here:
    I would like to do the same thing, so I am curious about this forum and rather than starting a new one, can I get some advice on this possibility:
    Mac Mini
    1.83GHz Intel Core Duo
    2GB 667 DDR2 SDRAM - 2x1GB
    80GB Serial ATA drive
    Glyph External HD 250 Gig
    Mackie Onyx 1620 w/Firewire
    Logic Pro 7.2
    thoughts?
    The most number of tracks I could see at once would be 16.
    Here is something I am most curious about...
    Firewire Hard drive
    Firewire Interface/mixer
    Firewire camera for FCP
    to much firewire?
    Please let me know if you have other thoughts aswell...
    Shuke
    thanks guys, this forum is fantastic!

  • Can I use Logic Pro 9.1.6 on two computers with one licens

    I have download and install Logic Pro 9.1.6 on my MacBookPro 13". I record on location with my MacBook an wil edit and arrange the music on my iMac at home. Can I use Logic Pro 9.1.6 on two computers with one licens. I'm the owner of both computers. If it can where can I find the program on my MacBook? and how to install and register?

    Hi, is  the iMac also 10.6.8? I had an iMac die when 10.6.8 was installed, it worked at first but after some You Tube flash videos the screen just locked and no mouse clicking anywhere did anything. It turned out that most older iMacs [ mine was from august 2007] have a graghics chipset that can't handle Snow Leopard, there were [are?] 77 pages on this "locked screen"topic in the Snow Leopard forum. I checked out a web site that tells you how much your mac is worth by filling in the sereal number-mine was worth only $168, I may give it to a friend for his children to play with, although that seems unholy. I doubt anyone woud buy it,the problem is now so well known that even Apple certified resellars here in the Netherlands refuse to repair them,they claim Apple will revoke their certification if they replace the faulty Graphics unit,it is also VERY hard to get to that unit in an iMac, everything is so tightly packed inside.
    If your iMac is running Mountain Lion[10.8.0] you may have to change the app store preference to accept apps from all sites,normally ML will only allow app store apps to be downloaded.

  • Can we use logical Operator in C:When  tag of JSTL

    Hi,
    I am developing an application in JSTL.
    I am using c:when tag. I have question whether can we use Logical OR operator in JSTL.
    I have tried using the following Syntax: The two bean fields have the value DISABLED
    <c:set var="testval" value = "${bean.val}" />
    <c:set var="testvalue" value ="${bean.value}" />
    Ex: <c:when test="${testval eq 'DISABLED'} or ${testvalue eq 'DISABLED'}">
    Ex: <c:when test="${(testval eq 'DISABLED') or (testvalue eq 'DISABLED')}">
    Ex: <c:when test="${testval eq 'DISABLED' or testvalue eq 'DISABLED'}">
    retrieving both these values from bean.
    The following syntaxes did not work.
    Please give me some pointers to resolve the issue.
    Thanks,
    Ravi
    Edited by: user10977303 on Nov 17, 2010 9:05 AM
    Edited by: user10977303 on Nov 17, 2010 9:10 AM

    The entire expression including the 'or' has to be inside the ${}.
    What this has to do with error handling beats me.

  • "Can I use Logic Pro in my new imac with 2.66 intel core 2 duo"

    Can I use Logic Pro in my new imac with 2.66 intel core 2 duo? With the new leopard operating system?
    I have a 002 rack from digidesign, that should be good running with a logic pro 8 DAW.

    Can I use Logic Pro in my new imac with 2.66 intel core 2 duo? With the new leopard operating system?
    Yes. Click here for more information.
    (40435)

  • Can I use logical databases in a WebDynpro ABAP program?

    can I use logical databases in a WebDynpro ABAP program?
    I need to build a WDA screen that is similar to the SAPDBPNP selection screen (user can find the personnel number based on several criteria, such as last_name/first_name of the employee).  So it seems that the existing logical databases have already many nice features already built (like the selection screens, the logic behind the screens etc). So I was wondering if/how I can use them in my WDA application.

    Hello, Tiberiu.
    You cannot use LDB directly within your WDA programa. BUT, you can fetch results from this LDB by using FM LDB_PROCESS. This function module can be called anytime from any kind of ABAP program. But you will still have to create the screen, as it only processes data, not screens.
    Regards,
    Andre
    PS: Pls reward points if it helps.

  • Can I use logical databases in a WebDynpro for ABAP program?

    can I use logical databases in a WebDynpro ABAP program?
    I need to build a WDA screen that is similar to the SAPDBPNP selection screen (user can find the personnel number based on several criteria, such as last_name/first_name of the employee).  So it seems that the exisinting logical databases have already many nice features already built (like the selection screens, the logic behind the screens etc). So I was wondering if/how I can use them in my WDA application.

    Hi
    Please let me also know the solution to this. I am a beginner to WebDynpro  and want to know if I can make use of LDB's as we do in our normal HR programming do develop a WDA in HR.
    Thanks and regards,
    Uma.

  • Can I use Microsoft SQL Server Management Studio version 11.0 to write SQL queries for "SQL Server Compact 4.0 Local Database"

    Hi, Can I use Microsoft SQL Server Management Studio version 11.0 to write SQL queries for "SQL Server Compact 4.0 Local Database" ?
    When I use Connect Object Explorer, the "Connect to Server" dialog box which pops up has only 4 selections in the Server Type Drop Down List. They are Database Engine, Analysis Services, Reporting Services & Integration Services. I have read
    somewhere that there should be a compact database option. but I do not see it.
    What I would like to do is use free form SQL Queries against the tables in "SQL Server Compact 4.0 Local Database" .
    Once I have validated these queries, then I will use them in my Visual Studio 2012 C#, ASP.NET application. I created the Local Database using Visual Studio 2012 for use by my application.
    Thank you for your help..
    diana4

    Hello,
    With SSMS 2005 we have had the Option to work with SQL CE database files, but not with higher Version of SSMS.
    You can use the free SQL CE Toolbax instead; see
    http://sqlcetoolbox.codeplex.com/
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Hello! Can i use logic pro x with mbox 2 ?

    Hello! Can i use logic pro x with mbox ?

    Yes, I´m quite sure you can, go here:
    http://avid.force.com/pkb/articles/download/Mbox-2-Drivers
    Haven't fully tested it myself, but have a go.

  • Can't use ";" in sql clause with Oracle 8.X

    Can't use ";" in sql clause with Oracle 8.X
    I can't use ";" at the ending of sql clause in VB program. First this program can use with Oracle 7.3.4 database. But now i need to upgrade DB to Oracle 8.1.7 ,program can't operate. It show error Runtime 40002
    and 37000:ODBC driver for oracle/invalid charactor
    Thankyou

    I've seen a lot of discussion about semicolons in SQL
    sent from 3rd party applications. A web search should
    bring up the discussions.
    Also you might get more response if you ask this question
    somewhere else. This is not a VB forum, so you may
    not reach relevant people.
    -- CJ

  • How can I use dns-sd to set up a priner to work with AirPrint?

    How can I use dns-sd to set up a priner to work with AirPrint?
    The priner is an HP LaserJet 1200 connected to the network with an HP JetDirect.

    Some of the third-party apps like "handyPrint" are able to configre the HP JetDirect to work with AirPrint.
    I am trying to work up my own solution.
    SyBB

  • Can we use OFFSETs in Hierarchy Node Variable in BEx ???

    Hi all,
      I have the need of using the OFFSETs in Hierarchy Node Variables. Can we use OFFSETs in Hierarchy Node Variable, PLEASE ???
        Thanks in advance.
    Regards,
    Venkat.

    I havent had such scenario - but I dont think you can do a offset on a hierarchy variable.

  • [svn] 3148: You can now use CSS styles to set the default text format for TextView.

    Revision: 3148
    Author: [email protected]
    Date: 2008-09-08 15:01:15 -0700 (Mon, 08 Sep 2008)
    Log Message:
    You can now use CSS styles to set the default text format for TextView. It no longer has any formatting properties. It supports the entire set of Gumbo text format styles.
    SkinnableComponent and Group now also support all these styles. However, skins such as ButtonSkin, TextInputSkin, and TextAreaSkin continue for now to specify instance styles on their TextBox, TextGraphic, and TextView, in order to give them a Gumbo look rather than a Halo look. So if you try setting, for example, the fontSize on the Application, it doesn't yet affect the text format of a Button, TextInput, TextArea, etc. unless you remove the instance style in the skin.
    Reviewer: Glenn
    Bugs: -
    QA: Lots of new stuff to test!
    Doc: No
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextArea.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextInput.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextView.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/SkinnableComponent.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicEle ment.as

    Nevermind guys - I did it using the 'rb_on.selected' command on the "on" radio button if the .txt file variable was "on", else the "off" radio button is selected.
    Thanks for taking a look though!
    Shaun

Maybe you are looking for