Can I use decode( decode...)...)

Hi,
Can I use decode function inside decode function.
It seem doesn't work. Please help
decode(lv.RANK||' / '||
decode('('||lv.ONE_YR_PCT||'%)', '(%)','N/A','('||lv.ONE_YR_PCT||'%)'),
'0 / (0%)','N/A', lv.RANK )
Thanks

I'm not quite sure it's the result you intended but your nested decode statement does run ...
SQL> CREATE TABLE lv (rank number, one_yr_pct number)
  2  /
Table created.
SQL> insert into lv values (1, 1)
  2  /
1 row created.
SQL> insert into lv values (2,2)
  2  /
1 row created.
SQL> insert into lv values (0,0)
  2  /
1 row created.
SQL> select decode(lv.RANK||' / '||
  2  decode('('||lv.ONE_YR_PCT||'%)', '(%)','N/A','('||lv.ONE_YR_PCT||'%)'),
  3  '0 / (0%)','N/A', lv.RANK )
  4  from lv
  5  /
DECODE(LV.RANK||'/'||DECODE('('||LV.ONE_
1
2
N/A
SQL> If you're having problems maybe you should cut'n'paste the output from your SQL*Plus session so we can see what's happening.
Alternatively, as CD suggests, you may find it easier to express your logic using CASE.
Cheers, APC

Similar Messages

  • Can i use Decode in Where clause

    Hi,
    Can i use Decode in Where clause Please Do the need full on the same.
    Thanks,
    Sanjeev.

    set serveroutput on
    DECLARE
    posn  PLS_INTEGER := 0;
    empid PLS_INTEGER := 178;
    x     NUMBER;
    BEGIN
      SELECT NVL(SUM(ah.quantity * ah.saleprice * ap.payoutpct), 0)
      INTO x
      FROM accessoryhistory ah, payoutpercentage ap,
      sku s, store st
      WHERE empid = DECODE(posn,
                              0, st.areadir,
                              1, st.areamgr,
                              2, NVL(st.storemgr1, st.storemgr2),
                              3, NVL(st.asstmgr1, NVL(st.asstmgr2,
                           st.asstmgr3)))
      AND ah.statustype IN ('ACT', 'DEA')
      AND ah.store = st.store
      AND s.dbid = ah.dbid
      AND s.sku = ah.sku
      AND ap.productgroup = s.productgroup
      AND ap.position = posn;
      dbms_output.put_line(x);
    END;
    /http://psoug.org/reference/decode_case.html

  • Can i turn down front left and right using ddts decoder with the g500

    hi want to get ddts 100 decoder for my gigaworks g500.when im watching a move i have to have it up on about 2.7 bars.to hear the center speaker then the action is to louad.i can turn down center and rear and sub but no front left and right.can you turn down front left and right using the decoder.do you still have to use the controll pod for the gigaworks if i had the decoder in or do u use the decoder to turn it up thanks plz help.

    System Preference > Accessibility
    Select   Mouse & Trackpad  in the left side box.
    Double-click speed 
    Make it slower by dragging the pointer to the left.
    Best.

  • Encore CS5:  The software that's used to decode the media is not available on this system...

    Hi guys, I am needing assistance with this matter.  I have read up on similar threads (mostly commented on my Bill Hunt), but I fear I may be missing something.  Can anyboy please assist me?
    Here's the background:
    OS:  Windows 7 64-bit.
    Video footage format:  AVCHD 1440 X 1080 (1.333) 25fps, 48KHz
    Photoshop Images:  1440 X 1080 (1.333)
    I have been running CS4 Master collection for the past year and a half, with minimal hassles in encore (except for the early patch that needed to be downloaded and applied for some or other transcoding error in Encore CS4). 
    Right, so we bought the CS5 Master collection upgrade, and all applications are running great, except Encore.  The moment I have completed editing my hour-long video in Premiere Pro CS5, I "send to Encore" via Dynamic Link.  (This is the way I have been operating countless times in CS4.  However now, in Encore CS5, the programme opens with all the regular project settings and saving dialogues, but the the moment it looks as though Encore is going get going, it stalls and doesnt respond, forcing me to close and try again. 
    So I tried the other way around.  I restarted Encore, created a new project, in a new project folder, encore opens, and I chose to Import as "new timeline" selecting the Premiere project of choice.  This time around, i don't get a crash out of Encore, instead I get the following message:
    "The software that's used to decode the media is not available on this system. 
    Installing the correct decoders for the files you are working with may help to correct the problem."
    So I googled the matter, and came up with Bill's response to the same problem (expect the date that it was posted was back in 2009).  I am would desperately like to know if there is a solution, a patch, a workaround of some sorts that can help me get back to my usual workflow. I am pretty screwed without encore at this present moment, and the work is piling up.  Can anybody help?
    Many Thanks,
    Matt

    I am having the same problem however I end up having hardware error "Sense code 52102"
    My video capture is similar to yours except I am using HD (Canon HNV model Legria HV40)
    The process takes a long time and I have breaks in my recording to DVD and with no sound - once it completed after 40 hours.
    I have wasted over 20 DVD's trying different things.
    OS:  Windows 7 64-bit.
    Video footage format:  HD 1440 X 1080 (1.333) 25fps, 48KHz
    Photoshop Images:  1440 X 1080 (1.333)
    I have not tried what you did buy opening up Encore and importing to new timeline , let me do that and see if I get the same message.

  • Using mysql decode function in Java

    Hi everybody,
    mysql documentation says:
    DECODE(crypt_str,pass_str) -->
    Decrypts the encrypted string crypt_str using pass_str as the password. crypt_str should be a string returned from ENCODE().
    I used the above function in a Python script and had no problem, but have difficulty using the same thing in my Java code.
    I receive runtime error when tried decode() in my Java code in executeQuery("s");. As far as I know the decode() function should be compiled, I can't run the decode() in the mysql command tool and receive a response (as I compiled and ran it in my Python script).
    Has anybody ever used this function in the Java code? How? What format did you use? What I should use instead of "s" in this code?
    conn is a database connection:
    stmt = conn.createStatement();
    rs = stmt.executeQuery("s");
    I even tried PreparedStatement, but no luck.
    Any help is greatly appreciated.

    stmt.executeQuery("select blahblahblah, DECODE(fieldName, password), blahblahblah FROM blahblah...")

  • Use of DECODE and NULL value in a WHERE clause

    hi all,
    I came into an issue trying to use the DECODE function in a simple where clause.
    this is my test case
    CREATE TABLE tab_test (lev NUMBER, code VARCHAR2(10), val VARCHAR2(10));
    INSERT INTO tab_test VALUES (1, NULL, 'val11');
    INSERT INTO tab_test VALUES (1, NULL, 'val12');
    INSERT INTO tab_test VALUES (1, '13', 'val13');
    INSERT INTO tab_test VALUES (2, '21', 'val21');
    INSERT INTO tab_test VALUES (1, '22', 'val22');
    INSERT INTO tab_test VALUES (1, '23', 'val23');
    and this is the query
    SELECT * FROM tab_test WHERE code = DECODE(:lev,1,NULL,:cod)
    as you can see running this query, setting :lev to 1 will return an empty record set, instead of the expected first two rows (as it will be, running "select * from tab_test where code is null").
    is there a way to overcome this issue? thanks for help

    hi Frank,
    I can confirm that the queries do work when run on TOAD, but do not when they are put in the WHERE clause of my data block. I guess the problem relies on some data block setting; I should investigate on Forms forum.
    Anyway, here is my test case, including data and some examples. You can realize that it works good
    CREATE TABLE TAB_TEST
    LEV NUMBER,
    CODE VARCHAR2(10 BYTE),
    VAL VARCHAR2(10 BYTE)
    Insert into tab_test
    (LEV, CODE, VAL)
    Values
    (3, 'val21', 'val3_211');
    Insert into tab_test
    (LEV, CODE, VAL)
    Values
    (2, 'val21', 'val3_212');
    Insert into tab_test
    (LEV, VAL)
    Values
    (1, 'val11');
    Insert into tab_test
    (LEV, VAL)
    Values
    (1, 'val12');
    Insert into tab_test
    (LEV, VAL)
    Values
    (1, 'val13');
    Insert into tab_test
    (LEV, CODE, VAL)
    Values
    (2, 'val11', 'val21');
    Insert into tab_test
    (LEV, CODE, VAL)
    Values
    (2, 'val12', 'val22');
    Insert into tab_test
    (LEV, CODE, VAL)
    Values
    (2, 'val13', 'val23');
    COMMIT;
    SELECT * FROM TAB_TEST
    CONNECT
    BY PRIOR val = code
    START WITH (CASE
    WHEN :LIV = 1 AND code IS NULL THEN 'OK'
    WHEN :LIV != 1 AND code = :COD THEN 'OK'
    END = 'OK')
                   AND VAL = :V
    :LIV = 1
    :COD = [any]
    :V = 'val11'
    LEV     CODE     VAL
    1          val11
    2     val11     val21
    3     val21     val3_211
    3     val21     val3_212
    :LIV = 1
    :COD = [any]
    :V = 'val12'
    LEV     CODE     VAL
    1          val12
    2     val12     val22
    :LIV = 2
    :COD = 'val11'
    :V = 'val21'
    LEV     CODE     VAL
    2     val11     val21
    3     val21     val3_211
    2     val21     val3_212

  • Use of decode/case statements

    I am trying to use a decode or case statement to check for a particular field code of 'SIP' and if that is the value I only want half of the production figure used in the calculations for that field ('SIP').
    The following code works well without the items commented out:
    SELECT ALL
    FINDER_WIS.PRODUCTION_HDR.END_TIME as prod_date,
    'SCD' as district,
    --decode(FINDER_WIS.FACILITY_FIELD_X.FIELD_CODE,'SIP',FINDER_WIS.PRODUCTION_DATA.VOLUME/2,FINDER_WIS.PRODUCTION_DATA) AS TEST_SIP,
    /*case when FINDER_WIS.FACILITY_FIELD_X.FIELD_CODE = 'SIP'
         then FINDER_WIS.PRODUCTION_DATA.VOLUME/2
              else FINDER_WIS.PRODUCTION_DATA.VOLUME
    end as fieldtest,*/
    round(SUM(NVL(FINDER_WIS.PRODUCTION_DATA.VOLUME,0))) as total_oil,
    ROUND(SUM(NVL(FINDER_WIS.PRODUCTION_DATA.VOLUME,0)) / TO_NUMBER(TO_CHAR(FINDER_WIS.PRODUCTION_HDR.END_TIME,'DD'))) AS BOPD
    FROM FINDER_WIS.PRODUCTION_HDR,
    FINDER_WIS.PRODUCTION_DATA,
    FINDER_WIS.FACILITY,
    FINDER_WIS.REPORTING_GROUP,
    FINDER_WIS.REPORTING_GROUP_DETAIL,
    FINDER_WIS.FACILITY_FIELD_X,
    SELECT distinct FINDER_WIS.FACILITY.FACILITY_S
    FROM FINDER_WIS.PRODUCTION_HDR,
    FINDER_WIS.PRODUCTION_DATA,
    FINDER_WIS.FACILITY,
    FINDER_WIS.REPORTING_GROUP,
    FINDER_WIS.REPORTING_GROUP_DETAIL
    WHERE (FINDER_WIS.PRODUCTION_HDR.ACTIVITY_TYPE = 'ALLOCATED'
    AND FINDER_WIS.PRODUCTION_HDR.TIME_PERIOD_TYPE = 'MONTH'
    AND FINDER_WIS.PRODUCTION_HDR.STATE_TYPE = 'STANDARD'
    AND FINDER_WIS.PRODUCTION_HDR.EXISTENCE_TYPE = 'ACTUAL'
    AND FINDER_WIS.PRODUCTION_DATA.MATERIAL_TYPE='OIL'
    and FINDER_WIS.REPORTING_GROUP.REPORTING_GROUP_TYPE = 'ASSET_TEAM'
    AND FINDER_WIS.REPORTING_GROUP.REPORTING_GROUP_ID ='SCD'
    and finder_wis.production_HDR.SOURCE = 'NEWWIS'
    AND FINDER_WIS.PRODUCTION_HDR.START_TIME BETWEEN :startdate_var AND :enddate_var)
    AND ((FINDER_WIS.PRODUCTION_DATA.PRODUCTION_HDR_S=FINDER_WIS.PRODUCTION_HDR.PRODUCTION_HDR_S)
    and (FINDER_WIS.PRODUCTION_HDR.FACILITY_S = FINDER_WIS.FACILITY.FACILITY_S)
    and (FINDER_WIS.PRODUCTION_HDR.START_TIME between FINDER_WIS.REPORTING_GROUP_DETAIL.start_time and nvl(FINDER_WIS.REPORTING_GROUP_DETAIL.end_time,'01-JAN-2010')
    or FINDER_WIS.PRODUCTION_HDR.end_TIME between FINDER_WIS.REPORTING_GROUP_DETAIL.start_time and nvl(FINDER_WIS.REPORTING_GROUP_DETAIL.end_time,'01-JAN-2010'))
    AND (FINDER_WIS.REPORTING_GROUP.REPORTING_GROUP_S = FINDER_WIS.REPORTING_GROUP_DETAIL.REPORTING_GROUP_S)
    AND (FINDER_WIS.FACILITY.FACILITY_S = FINDER_WIS.REPORTING_GROUP_DETAIL.FACILITY_S)))T
    WHERE (FINDER_WIS.PRODUCTION_HDR.ACTIVITY_TYPE = 'ALLOCATED'
    AND FINDER_WIS.PRODUCTION_HDR.TIME_PERIOD_TYPE = 'MONTH'
    AND FINDER_WIS.PRODUCTION_HDR.STATE_TYPE = 'STANDARD'
    AND FINDER_WIS.PRODUCTION_HDR.EXISTENCE_TYPE = 'ACTUAL'
    AND FINDER_WIS.PRODUCTION_DATA.MATERIAL_TYPE='OIL'
    and FINDER_WIS.REPORTING_GROUP.REPORTING_GROUP_TYPE = 'ASSET_TEAM'
    and finder_wis.production_HDR.SOURCE = 'NEWWIS'
    AND FINDER_WIS.PRODUCTION_HDR.START_TIME BETWEEN :startdate_var AND :enddate_var)
    AND ((FINDER_WIS.FACILITY.FACILITY_S = T.FACILITY_S)
    AND (FINDER_WIS.PRODUCTION_DATA.PRODUCTION_HDR_S=FINDER_WIS.PRODUCTION_HDR.PRODUCTION_HDR_S)
    AND FINDER_WIS.FACILITY_FIELD_X.UWI = FINDER_WIS.FACILITY.UWI
    AND FINDER_WIS.FACILITY_FIELD_X.FIELD_CODE NOT IN ('MW','BRM','PLG','SIP')
    and (FINDER_WIS.PRODUCTION_HDR.FACILITY_S = FINDER_WIS.FACILITY.FACILITY_S)
    and (FINDER_WIS.PRODUCTION_HDR.START_TIME between FINDER_WIS.REPORTING_GROUP_DETAIL.start_time and nvl(FINDER_WIS.REPORTING_GROUP_DETAIL.end_time,'01-JAN-2010')
    or FINDER_WIS.PRODUCTION_HDR.end_TIME between FINDER_WIS.REPORTING_GROUP_DETAIL.start_time and nvl(FINDER_WIS.REPORTING_GROUP_DETAIL.end_time,'01-JAN-2010'))
    AND (FINDER_WIS.REPORTING_GROUP.REPORTING_GROUP_S = FINDER_WIS.REPORTING_GROUP_DETAIL.REPORTING_GROUP_S)
    AND (FINDER_WIS.FACILITY.FACILITY_S = FINDER_WIS.REPORTING_GROUP_DETAIL.FACILITY_S))
    GROUP BY FINDER_WIS.PRODUCTION_HDR.END_TIME
    the results look like this but this is without the values for the 'SIP' field:
    PROD_DATE     DISTRICT     TOTAL_OIL BOPD
    31/10/2007     SCD     168009     5420
    30/11/2007     SCD     167339     5578
    31/12/2007     SCD     170277     5493
    31/01/2008     SCD     173677     5602
    29/02/2008     SCD     168498     5810
    31/03/2008     SCD     172689     5571
    30/04/2008     SCD     168180     5606
    31/05/2008     SCD     165448     5337
    30/06/2008     SCD     164631     5488
    31/07/2008     SCD     170073     5486
    31/08/2008     SCD     166520     5372
    30/09/2008     SCD     160321     5344
    When I try to add the decode or case statement, I get ORA-00979; not a Group By expression as the error.
    Can anyone assist me with this please?
    Thanks in advance

    Hi and welcome to the forum.
    Simply put the field names you use in your DECODE also in your GROUP BY and it should work:
    simple example:
    MHO%xe> with t as (
      2  select 1 col1, 1 col2 from dual union all
      3  select 1 col1, 1 col2 from dual union all
      4  select 2 col1, 2 col2 from dual union all
      5  select 3 col1, 3 col2 from dual union all
      6  select 4 col1, 4 col2 from dual
      7  )
      8  select col1
      9  ,      decode(col1, 1, col2*100, col2)
    10  ,      sum(col2)
    11  from   t
    12  group by col1 -->> NO col2 here...
    13  order by col1;
    ,      decode(col1, 1, col2*100, col2)
    FOUT in regel 9:
    .ORA-00979: not a GROUP BY expression
    Verstreken: 00:00:05.78
    MHO%xe> with t as (
      2  select 1 col1, 1 col2 from dual union all
      3  select 1 col1, 1 col2 from dual union all
      4  select 2 col1, 2 col2 from dual union all
      5  select 3 col1, 3 col2 from dual union all
      6  select 4 col1, 4 col2 from dual
      7  )
      8  select col1
      9  ,      decode(col1, 1, col2*100, col2)
    10  ,      sum(col2)
    11  from   t
    12  group by col1, col2
    13  order by col1;
          COL1 DECODE(COL1,1,COL2*100,COL2)  SUM(COL2)
             1                          100          2
             2                            2          2
             3                            3          3
             4                            4          4

  • The software that used to decode the media is not available on this system

    I can see that this has been asked numerous times over the years.  I am sorry to post this AGAIN, but I have not yet found a solution and have a deadline looming.
    We created a 200+ DVD's using Encore CS6 on a Windows 7 system.
    We upgraded to Windows 8.  Re-installed CS6 Production Premium.
    Now, when we try to open the projects to make a few edits, we get the "The software that's used to decode the media is not available on this system.  Installing the correct decoders for the files you are working with may help to correct the problem."
    I've done the Encore Updates.  I've done the Media Encoder updates.  I've "Run as Administrator".
    I've tried re installing.
    Does anyone have any suggestions on how to debug this?  The videos are already transcoded as *.m2v files.
    You'd think this would be easy... like install a codec or something.
    ==> Mike.

    Part of the problem is that this is probably not a "logical" error.  The common cause of this issue is still image files where the pixel size is too large. This suggests that Encore's (and other Adobe apps) ability to handle image size is exceeded without a better error message. The link, which I'm going to post until I find a "new" location (if one exists) is now a bad link:
    http://helpx.adobe.com/encore/kb/error-software-used-decode-media.html
    And in this example where it was not an image issue, the user fixed the problem by re-encoding the problem file.
    http://forums.adobe.com/message/6004428#6004428

  • Can't find the 'decoder' tabe in audio console wind

    I just bought a x-fi fatalty. All drivers was installed.
    However when I tried to set the spdif passthru to an external AV amp, I can't find the decoder tab in the audio console windows as shown in below screen capture I found on the web.
    http://soundblaster.com/images/inline/articles/audio_console.jpg

    Hi adrianmak?If you use spdif don?t need X-Fi decoder, when use spdif you send signal to a external decoder. Digital Connections, SPDIF and Dolby Digital Info[/b] ?Movies wth Dolby Digital (AC3) & DTSMovies on DVD often use encoded?audio in the form of Dolby Digital (AC3) or DTS. This means that all 6 channels are compressed into a single stream of digital data. A decoder is required to extract the channels and send the sound to the correct speakers. There are three ways to do this.
    ) Pass the AC3/DTS signal to a external decoder. This is where your optical/coax connection is used. To?go down this route, you must first have a?set of speakers or a decoder that?supports Dolby Digital.
    In your DVD software, select 'SPDIF' as the audio output method and 'SPDIF Pass-through' in?your?soundcard options. What this does is?tells both the software and soundcard to leave the audio from the DVD in compressed form and send it straight through the digital outputs. Your?digital speakers/receiver will do all the decoding to give you full surround sound.
    Please note that this?is the only way to get 6 channels through an optical/coax cable.
    2) Decode the AC3/DTS with your Sound Blaster.?You should choose this option if?you don't have an external decoder. In the DVD software, select 'SPDIF' as the audio output method and make sure that 'SPDIF Pass-through' in the souncard options is?off. The DVD software will now pass the compressed audio to your soundcard, which will then decode the data. The soundcard will output the 6 channels using the?analogue connections (or digital DIN, more on this later). If you try?to use a digital optical/coax connection to your speakers, you will only hear faint sounds from the front left/right speakers.
    3) Decode the AC3/DTS with software.?If you have a soundcard that doesn't support Dolby Digital (like the SB Li've! 24-bit) and you don't have digital speakers, the only way for you to get surround sound in movies is to use software to decode the AC3/DTS. The free versions of DVD software you get with hardware often don't support this feature,? you will most likely need a full version. First select 'Dolby Digital' or 'DTS' decoding in the DVD software audio options (you must select the right?sound format for the movie you are watching). Then make sure that 'SPDIF Pass-through' in the soundcard options is off. As with method (2) you must connect your speakers with the 3 analogue cables, not optical/coax.[url="http://forums.creative.com/creativelabs/board/message?board.id=soundblaster&message.id=270">[/url]?What version you have?Try to update drivers from creative, MS Windows Update X-fi driver version?disable decoder tab.
    Message Edited by Rad-Wulf on 2-04-200709:26 PM

  • Use of DECODE function in Discoverer 3.1

    Hi all,
    Is there any better way of using DECODE in Discoverer 3.1, i dont want to use that function in my Discoverer User edition or Admin ed.
    Many of my queries use the DECODE function.
    Your help is greatly appreciated.

    If you created an instance of your time class that you called myTime
    var myTime:Time = new Time(15,15,0);
    and later you wanted another instance with the same time you could write
    var myTime2:Time = myTime.clone()
    It is just there for convienience and doesn't have anything much to do with MVC

  • Adobe encore the software that's used to decode the media is not available on this system. installing the correct decoders for the file you are working with may help correct the problem

    Hi,
      I got this message after importing about ten or so H.264 files that I encoded from Adobe media encoder.  "adobe encore the software that's used to decode the media is not available on this system. installing the correct decoders for the file you are working with may help correct the problem."
    The files we're shot with HD cameras.  Edited in Premiere Pro CS3.  I installed the update 3.0.1 with still the same error.
    I also tried a brand new project and after about ten or so files being imported into a timeline, the system crash.  I tried this twice....
        Thanks in Advance

    Hi Hunt,
           Here is the skinny.  A window base PC.  footage shot with HD sony HD cameras,  Project imported to Premiere CS3.  Once completed sent file to Adobe media encoder and render them as H.264 widescreen high Quality.  Imported them to Adobe Encore CS3.  After about ten files or so.  I got the error message.  Did all the basic trouble shoot like restarting the computer, got latest patch.  Even build a new test project with the same problem.
        Something else I read in the forums, is the encore will transcoded the project to Mpeg 2 anyway, after looking at my project I realized those few files were indeed untranscoded.  So it will be a double compression and I dont want that.  So, my new question is, what is H.264 good for ?????????? I was research that Mpeg 2 is a faster render but H.264 is a slower render but better quality.....
       what do you think ????
       Peter

  • Using function Decode inside Decode for Oracle Reports

    Has anyone used a decode inside of a decode to get a single record from mulitple records?
    Thanks

    I've used decode inside of decode to create a view. Then in the report, I used a group by query to combine the records. Let me know if you want to my sql.

  • Software used to decode the media not available on this system

    "The software that's used to decode the media is not available on this system…"  I get this error message when I try to import an H.264 video file (about 3.7 GB in size) into Encore CS6 to make a Blu-Ray.  I've read the message threads about this problem but they don't seem to apply to my case.  I'm using a recent Mac Pro Tower running OS 10.8.5.  I made the H.264 file using Compressor 4 and a Matrox MX02 box using the Matrox encode setting for high-quality Blu-Ray.  I've used this workflow a number of times before and never had any trouble importing the resulting files into Encore.  I've tried starting a new Encore project and also re-doing the encoding of the H.264 file, without success.  I've also experimented with importing other, recently made H.264 files into a new Encore project and these, as before, present no problems.  I'm baffled!

    I solved the problem and thought it might be helpful if I described the solution.  The error message gave no indication of the nature of the problem, which was caused by a single clip in the Avid Media Composer timeline.  This clip was an import from Photoshop, resized in Avid Media Composer.  In height, the pixel dimensions of the Photoshop file were a bit more than 1080.  I have no idea how this dimension survived rendering in Media Composer or H.264 encoding in Compressor using the Matrox MX02 box.  But it evidently did.  When I resized the image in Photoshop before importing it into Media Composer, then re-encoded the video as H.264, it imported normally as an asset into Encore.

  • Can we use IF statement in PDF templates

    Hi,
    I developed a PDF template. I need to underline ang bold the records based on a specific condition. Can we use IF conditon in PDF templates. Please suggest.
    Thanks...

    Billy  Verreynne  wrote:
    The case syntax is a bit funny though as there's not a single condition evaluation (like a DECODE or case structs from some other languages).
    This is what I would expect a typical case struct to look like - evaluating a single condition:
    case <condition>
    when <value-1> then return <result-1>
    when <value-n> then return <result-n>
    else
    return <return-z>
    end
    ?:| You mean like this...?
    SQL> ed
    Wrote file afiedt.buf
      1  select empno, ename, deptno
      2        ,case deptno
      3           when 10 then 'This is Department 10'
      4           when 20 then 'And department 20'
      5           when 30 then 'And of course department 30'
      6         else
      7           'Blimey it is something else!'
      8         end as dept_desc
      9* from emp
    SQL> /
         EMPNO ENAME          DEPTNO DEPT_DESC
          7369 SMITH              20 And department 20
          7499 ALLEN              30 And of course department 30
          7521 WARD               30 And of course department 30
          7566 JONES              20 And department 20
          7654 MARTIN             30 And of course department 30
          7698 BLAKE              30 And of course department 30
          7782 CLARK              10 This is Department 10
          7788 SCOTT              20 And department 20
          7839 KING               10 This is Department 10
          7844 TURNER             30 And of course department 30
          7876 ADAMS              20 And department 20
          7900 JAMES              30 And of course department 30
          7902 FORD               20 And department 20
          7934 MILLER             10 This is Department 10
    14 rows selected.

  • 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));

Maybe you are looking for

  • Adding an item to a List when clicking a WebPart Properties 'OK' button

    Hi all, I wonder if someone can help me. Im new to SharePoint Programming but learning slowly.  I have a superb Web Part downloaded from Codeplex which essentially is a Countdown Timer in jQuery. (spCountdown) The code itself works perfectly however

  • Swing Error while trying to set libraries on a new Project.

    I am running JDeveloper Version 10.1.2.1.0 (Build 1913) -- on a machine running Windows XP SP2 Initially I tried with the basic version (without JDK) and configured by local install of j2sdk1.4.2_05. Then later I tried downloading the full version an

  • Moving only ONE page at a time in a photobook?

    I can't seem to find a way to only move one page at a time when trying to change the order of my pages. Does iPhoto allow you to move just one page, or do you HAVE to move two facing pages together? I'm hoping I'm missing something obvious here! Help

  • I can't see my files (sent, trash..) anymore. how can I recover them ?

    My folders (sent mail, trash, archives, drafts...) were on the left side of my messages. They disappeared I don't know why. I can't find in the asistance how to replace this column of folders.

  • Urgent.... Clarification on submit.

    Hi, I would like to know parameters passing from custom prog. to a target prog through SUBMIT then variables of target prog used in custom prog and the variables in target prog. must be the same ??? For the same variables in target prog. Modif have b