Query required to break the string

Hi All,
Can any one please help me to write a query for the following rerquirement,.
I/P :
NAME
MIKE
O/P :
MIKE should display as
NAME:
M
I
K
E
Thanks.

Like this ???
with xx as(
  select 'abcde' x from dual UNION ALL
  select 'pqrs' x from dual UNION ALL
  select 'xyz' x from dual
select distinct substr(x,level,1)
from xx
connect by level <= length(x);Output :
z
e
q
s
d
r
b
p
a
c
x
y

Similar Messages

  • Sql query related to beaking the string based on string postion

    Hi,
    I have coloumn in this way
    city_state
    texas tx
    sanantanio tx
    newyork ny
    newjersy nj
    newyork
    newjersy
    landon 1000
    I want to get the last characters after the space from the string(eg: texas tx) only tx, that means i want to only break the strings that have space in the 3rd position when counting the string from back. the others records that do not match as above stated should decoded as 'unknown'
    (eg 'landon 1000' decode as unknown or 'newyork' decode to unknown )
    can anyone please help out on this query.
    thanks,
    Ram

    with t as (
               select 'texas tx' city_state from dual union all
               select 'sanantanio tx' from dual union all
               select 'newyork ny' from dual union all
               select 'newjersy nj' from dual union all
               select 'newyork ' from dual union all
               select 'newjersy' from dual union all
               select 'landon 1000' from dual
    select  city_state,
            case
              when regexp_like(city_state,' ..$') then substr(city_state,-2)
              else 'unknown'
            end state
      from  t
    CITY_STATE    STATE
    texas tx      tx
    sanantanio tx tx
    newyork ny    ny
    newjersy nj   nj
    newyork       unknown
    newjersy      unknown
    landon 1000   unknown
    7 rows selected.
    SQL> SY.

  • Breaking the string into different columns

    Hi Guys,
    I need to break the following string into different columns
    'XXXXX.0001.09011.0001.00002.03.0004.0005.0006.00007.'
    I am trying to write it using instr and substr , but having some issues .
    Is there any other way to do this. If not can someone help me , below is the query that i am working on
    SELECT SUBSTR ('XXXXXX.0001.09011.0001.00002.03.0004.0005.0006.00007', 1, INSTR ('XXXXXX.0001.09011.0001.00002.03.0004.0005.0006.00007', '.', 1) - 1) col1,
    SUBSTR ('XXXXXX.0001.09011.0001.00002.03.0004.0005.0006.00007',
    INSTR ('XXXXXX.0001.09011.0001.00002.03.0004.0005.0006.00007', '.', 1) + 1,
    INSTR ('XXXXXX.0001.09011.0001.00002.03.0004.0005.0006.00007', '.', 1, 2)
    - INSTR ('XXXXXX.0001.09011.0001.00002.03.0004.0005.0006.00007', '.', 1)
    - 1
    ) col2,
    SUBSTR ('XXXXXX.0001.09011.0001.00002.03.0004.0005.0006.00007',
    INSTR ('XXXXXX.0001.09011.0001.00002.03.0004.0005.0006.00007', '.', -1, 2) + 1,
    INSTR ('XXXXXX.0001.09011.0001.00002.03.0004.0005.0006.00007', '.', -1, 1)
    - INSTR ('XXXXXX.0001.09011.0001.00002.03.0004.0005.0006.00007', '.', -1, 2)
    - 1
    ) col3
    from dual
    It is very urgent.
    Thanks in advance.

    npejavar wrote:
    It is very urgent.
    It doesn't look urgent, you could simply read the manuals for instr and substr or describe any issues or errors you are having, or post sample data so people could help you more easily, or format your code so it is more readable, but you don't bother to do any of those things so if it isn't important to you to extend any effort, why would it be important to us?
    If it was really urgent it would be a violation of the conditions of use of these forums.
    http://www.catb.org/esr/faqs/smart-questions.html#urgent
    http://www.oracle.com/html/terms.html
    >
    4. Use of Community Services
    Community Services are provided as a convenience to users and Oracle is not obligated to provide any technical support for, or participate in, Community Services. While Community Services may include information regarding Oracle products and services, including information from Oracle employees, they are not an official customer support channel for Oracle.
    You may use Community Services subject to the following: (a) Community Services may be used solely for your personal, informational, noncommercial purposes; (b) Content provided on or through Community Services may not be redistributed; and (c) personal data about other users may not be stored or collected except where expressly authorized by Oracle

  • Extension of Knowledge Class - Breaks the String Displays (Labels) on Knowledge Form

    Hi,
    A strange issue - hopefully others have encountered this and not just me:
    I'm in the process of adding an additional custom DatePicker to the Knowledge Form (KnowledgeMainForm).
    When the Knowledge Class (System.Knowledge.Article) is extended, and a new custom property is created - it breaks the
    default binding for all the Form's labels (Title, Description, Comments etc).
    The normal behaviour is that the default Labels on a form initially appear as:
    [Title:],
    which then dynamically update to Title: - without the '[]' brackets.
    In my case, these fields remain with the '[]' brackets - see img below:
    *edit = unable to post images - the img link is:
    https://www.dropbox.com/s/u976gj4qqoyf7zy/kaexample01.jpg
    This only occurs when a new property is created in the Knowledge Class (string, datepicker, boolean, anything).
    Scenario:
    - Create new MP to host Knowledge Article (KA) Class extension in Authoring Tool
    - Extend the KA class (System.Knowledge.Article / Knowledge Article) to that new MP
    - Save new MP
    - Create new property in new MP
    - Save new MP and Seal MP
    - Upload Sealed MP into SCSM 2012
    I've been able to replicate this in 3 different instances of SCSM 2012
    Has anyone encountered this and if not, is anyone able to replicate this:
    I've included the new KA Class extension mp below.
    The only customisation was to add an additional String property: Property_23.
    <ManagementPack ContentReadable="true" SchemaVersion="2.0" OriginalSchemaVersion="1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <Manifest>
    <Identity>
    <ID>SCSM_INT_KM_Classes</ID>
    <Version>1.0.0.2</Version>
    </Identity>
    <Name>SCSM_INT_KM_Classes</Name>
    <References>
    <Reference Alias="System">
    <ID>System.Library</ID>
    <Version>7.5.8501.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="Console">
    <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Console</ID>
    <Version>7.5.2905.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="Alias_a3476d86_9ec5_4f6b_96b4_4d80e9d8bf69">
    <ID>System.Knowledge.Library</ID>
    <Version>7.5.2905.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    </References>
    </Manifest>
    <TypeDefinitions>
    <EntityTypes>
    <ClassTypes>
    <ClassType ID="ClassExtension_46440273_5853_4402_9ed7_2b8cfbf1819a" Accessibility="Public" Abstract="false" Base="Alias_a3476d86_9ec5_4f6b_96b4_4d80e9d8bf69!System.Knowledge.Article" Hosted="false" Singleton="false" Extension="true">
    <Property ID="Property_23" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />
    </ClassType>
    </ClassTypes>
    </EntityTypes>
    </TypeDefinitions>
    <Categories>
    <Category ID="SCSM_INT_KM_Classes.Category" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.ManagementPack">
    <ManagementPackName>SCSM_INT_KM_Classes</ManagementPackName>
    <ManagementPackVersion>1.0.0.0</ManagementPackVersion>
    </Category>
    </Categories>
    <LanguagePacks>
    <LanguagePack ID="ENA" IsDefault="true">
    <DisplayStrings>
    <DisplayString ElementID="SCSM_INT_KM_Classes">
    <Name>SCSM_INT_KM_Classes</Name>
    </DisplayString>
    </DisplayStrings>
    </LanguagePack>
    <LanguagePack ID="ENU" IsDefault="false">
    <DisplayStrings>
    <DisplayString ElementID="SCSM_INT_KM_Classes">
    <Name>SCSM_INT_KM_Classes</Name>
    </DisplayString>
    <DisplayString ElementID="ClassExtension_46440273_5853_4402_9ed7_2b8cfbf1819a">
    <Name>Extension of Knowledge Article</Name>
    <Description>Extension of class Knowledge Article</Description>
    </DisplayString>
    <DisplayString ElementID="ClassExtension_46440273_5853_4402_9ed7_2b8cfbf1819a" SubElementID="Property_23">
    <Name>Property_23</Name>
    </DisplayString>
    </DisplayStrings>
    </LanguagePack>
    </LanguagePacks>
    </ManagementPack>

    Looks like you've found a legit form design bug in the KA form. I'm just guessing here, but I suspect that the form strings builder is choking on the extended class name.
    Report it in connect
    so we can <strike>blackmail</strike> ask the product team to try to get it fixed.

  • Query Required To Get the datetime of insertion of row..urgent

    Hi all,
    i'm in great need to know if i can get the datetime of the rows inserted. please note that no audit trail neither db level or application level exists. i just want to know whether we can get to know which data has been inserted/updated during a month. because ultimately, the job is to find the rate of growth of data in a table in every month so as to plan for storage for next 5 months.
    thanx in advance

    Hi,
    you can Tracl these things by Columns like inserted_date and Modified Date to the tables.
    So when ever the New Data is Inserted into the respective columns and Updated The Modified Date Column Whenever the data is Updated.
    You can track by above method..
    Thanks
    Pavan Kumar N

  • Apostrophes And Parenthesis in the string

    Hi Everyone.
    How do you guys handle apostrophes and parenthesis in java?
    I have a solution where the client wants to put apostrophes and parenthesis in the database as part of their strings. ie O'reily (also known as dude)
    Now these apostrophes and parenthesis come from the database into the java program -- will it break my javascript strings manipulation? If so how can i treat it before it breaks the string
    I know for a fact it breaks my javascript.
    For example, I have a javascript method that is populated with variables that come from the database.
    onchange="return DoThisFunction("<%=rs.getString("whatever")%>","<%=rs.getString("whoever")%>");"
    thanks to parenthesis and apostrophes I get javascript alert errors can someone please enlightenme as to how i can fix this problem
    Sincerely and Gratefully Yours,
    Stephen A. Sutherland

    You sound pretty confused dude. This is a Java forum, not a JavaScript forum.
    The apostrophes and parenthesis will not interfere with your Java variables, since the Java code is compiled and not based on simple string-substitution. The situation for parens is identical.

  • How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values?

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

  • How do you break the cycles in "connect by nocycles" query.

    I looked at the documentation of the oracle hierarchical queries to see if there is a deterministic way of breaking the cycles.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/queries003.htm
    I understand that plain connect by query fails if there are cycles in the data, this can be over come by using the nocycles clause. But how does oracle handle the cycles if it finds one, is there a deterministic way of breaking the cycles, or is random? If it is deterministic, Is there a sophisticated algorithm you use to break the cycles?
    My sample query is as shown below:
    SELECT ename "Employee", CONNECT_BY_ISCYCLE "Cycle",
    LEVEL, SYS_CONNECT_BY_PATH(ename, ’/’) "Path"
    FROM scott.emp
    WHERE level <= 3 AND deptno = 10
    START WITH ename = ’KING’
    CONNECT BY NOCYCLE PRIOR empno = mgr AND LEVEL <= 4;
    Thanks,
    Paul

    Hi, Paul,
    849708 wrote:
    Thanks for the very detailed explanation Frank.
    It is interesting that the cycles are not broken at the time of the creation of the hierarchies, but at the time of the traversal.The relationship is only defined in the CONNECT BY clause of a query. When you create and populate tables, you don't indicate in any way that certain columns will be used in a CONNECT BY clause. You're free to use any columns you want when you write the query. You can use different columns and different relationships in different queries.
    This leads me to one more question:
    Lets say there are multiple routes from a given ancestor node to a decedent node, what would be the value of PATH pseudo column. Does it consider the shortest path or the longest path? If the two routes are of the same length? which would be used?The same node can appear more than once as a descendant of the same ancestor. All paths that satisfy the CONNECT BY clause (and the WHERE clause, if there is one) will be included. For example, the following query shows how Prince William is related to one of his ancestors, Anna Sophie (1700-1780):
    SELECT     LEVEL
    ,     SYS_CONNECT_BY_PATH (name, ' \ ')     AS path
    FROM     royal
    WHERE     name     = 'Anna Sophie of Schwarzburg-Rudolstadt'
    START WITH     name     = 'William of Wales'
    CONNECT BY     id     IN (PRIOR mother_id, PRIOR father_id)
    ;The genealogy table I used showed 8 different line of descent, ranging from 10 to 12 generations:
    LEVEL PATH
       11  \ William of Wales \ Charles, Prince of Wales \ Elizabeth II \ George
           VI \ George V \ Edward VII \ Victoria \ Victoria of Saxe-Coburg-Saalf
          eld \ Franz Frederick of Saxe-Coburg-Saalfeld \ Ernst Frederick of Sax
          e-Coburg-Saalfeld \ Anna Sophie of Schwarzburg-Rudolstadt
       12  \ William of Wales \ Charles, Prince of Wales \ Elizabeth II \ George
           VI \ George V \ Edward VII \ Albert of Saxe-Coburg and Gotha \ Louise
           of Saxe-Gotha-Altenburg \ Louise Charlotte of Mecklenburg \ Frederick
           Francis I of Mecklenburg \ Charlotte Sophie of Saxe-Coburg-Saalfeld \
           Anna Sophie of Schwarzburg-Rudolstadt
       11  \ William of Wales \ Charles, Prince of Wales \ Elizabeth II \ George
           VI \ George V \ Edward VII \ Albert of Saxe-Coburg and Gotha \ Ernest
           I, Duke of Saxe-Coburg and Gotha \ Franz Frederick of Saxe-Coburg-Saa
          lfeld \ Ernst Frederick of Saxe-Coburg-Saalfeld \ Anna Sophie of Schwa
          rzburg-Rudolstadt
       11  \ William of Wales \ Charles, Prince of Wales \ Elizabeth II \ George
           VI \ George V \ Alexandra of Denmark \ Louise of Hesse-Kassel \ Louis
          e Charlotte of Denmark \ Sophia Frederica of Mechlenburg-Schw. \ Charl
          otte Sophie of Saxe-Coburg-Saalfeld \ Anna Sophie of Schwarzburg-Rudol
          stadt
       11  \ William of Wales \ Charles, Prince of Wales \ Philip, Duke of Edinb
          urgh \ Alice of Battenberg \ Montbatten, Victoria \ Alice, Duchess of
          Hesse \ Victoria \ Victoria of Saxe-Coburg-Saalfeld \ Franz Frederick
          of Saxe-Coburg-Saalfeld \ Ernst Frederick of Saxe-Coburg-Saalfeld \ An
          na Sophie of Schwarzburg-Rudolstadt
       12  \ William of Wales \ Charles, Prince of Wales \ Philip, Duke of Edinb
          urgh \ Alice of Battenberg \ Montbatten, Victoria \ Alice, Duchess of
          Hesse \ Albert of Saxe-Coburg and Gotha \ Louise of Saxe-Gotha-Altenbu
          rg \ Louise Charlotte of Mecklenburg \ Frederick Francis I of Mecklenb
          urg \ Charlotte Sophie of Saxe-Coburg-Saalfeld \ Anna Sophie of Schwar
          zburg-Rudolstadt
       11  \ William of Wales \ Charles, Prince of Wales \ Philip, Duke of Edinb
          urgh \ Alice of Battenberg \ Montbatten, Victoria \ Alice, Duchess of
          Hesse \ Albert of Saxe-Coburg and Gotha \ Ernest I, Duke of Saxe-Cobur
          g and Gotha \ Franz Frederick of Saxe-Coburg-Saalfeld \ Ernst Frederic
          k of Saxe-Coburg-Saalfeld \ Anna Sophie of Schwarzburg-Rudolstadt
       10  \ William of Wales \ Charles, Prince of Wales \ Philip, Duke of Edinb
          urgh \ Andrew of Greece and Denmark \ George I of Greece \ Louise of H
          esse-Kassel \ Louise Charlotte of Denmark \ Sophia Frederica of Mechle
          nburg-Schw. \ Charlotte Sophie of Saxe-Coburg-Saalfeld \ Anna Sophie o
          f Schwarzburg-RudolstadtBy the way, SYS_CONNECT_BY_PATH is a function, not a pseudo-column. Pseudo-columns don't take arguments.
    I could have tested all this myself, but currently I do not have access to the database. Is there a publicly available database (through ssh) which I can use in the mean time :)You can download Oracle Express Edition.
    http://www.oracle.com/technetwork/database/express-edition/downloads/index.html
    It's free if all you're using it for is learning.
    You can also get a free workspace in an Oracle-hosted database at apex.oracle.com.
    Edited by: Frank Kulash on Apr 4, 2011 6:51 PM

  • How to Read the String and break them in to TUPULES

    HI ALL,
    i have one String like THE STRING IS --- ---- --- >>
    3122078,12/12/2005
    3122079,12/1/1988
    3122076,12/12/1999
    I want to break them into STR :=3122078 and STR1:=12/12/2005 .

    SQL> select substr('3122078,12/12/2005',1,instr('3122078,12/12/2005',',')-1) from dual;
    SUBSTR(
    3122078
    SQL> select substr('3122078,12/12/2005',instr('3122078,12/12/2005',',')+1) from dual;
    SUBSTR('31
    12/12/2005
    SQL>

  • ICommand required to call the Xacute query

    SCM380
    SAP MII - Manufacturing-
    Integration and Intelligence -
    Basics
    Solution 17: Using Transactions on a Web
    Page
    Task:
    Use the "Addition" transaction to complete the source text on the page shown
    below, which displays the result in a message box. The iCommand required to call
    the Xacute query is already implemented on the page, so you only have to enter
    the JavaScript code for the calculation.
    Number1 TextBox
    Number2 TextBox
    Calculate Button
    Does any body have the code syntax for res_Calculator.irpt?
    SCM380_Resources_EN/WEB/UNIT4/Lesson2/Exercise3/ folder in the
    WEB tab
    I seem to have lost the CD
    Thank you,

    Hi,
    For check your java console view the link:
    http://www.holomatix.com/knowledgebase/frequently-asked-questions/how-do-i-display-my-java-console?/
    change the code:
    <form name="frmMain" action id="frmMain">
    For
    <form name="frmMain" id="frmMain" on submit="return false;">
    <input type="submit" value="Calculate" name="Result" />
    For
    <input type="button" value="Calculate" name="Result" on click="calculate()" />
    For more details about html view the link http://www.w3schools.com/html/
    Hope this help.
    Danilo Santos
    Edited by: Danilo Santos on Nov 16, 2011 4:26 PM
    Edited by: Danilo Santos on Nov 16, 2011 4:28 PM

  • Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string co

    Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() _________________________________________________________________________________________ _____________________ stop(); var DepartVars:URLVariables = new URLVariables(); var DepartURL:URLRequest = new URLRequest("scripts/www.mywebsite.com/depart.php"); DepartURL.method = URLRequestMethod.POST; DepartURL.data = DepartVars; var DepartLoader:URLLoader = new URLLoader; DepartLoader.dataFormat = URLLoaderDataFormat.VARIABLES; DepartLoader.addEventListener(Event.COMPLETE, completeDepart); depart_btn.addEventListener(MouseEvent.CLICK, DepartUser); // Function to run when the Depart button is pressed function DepartUser (event:MouseEvent):void{             // Ready the variables here for sending to PHP           DepartVars.post_code = "Depart";         // Send the data to the php file           DepartLoader.load(DepartURL);         welcome_txt.text = "Processing request...Bon Voyage"; } // Close DepartUser function /////////////////////////////////////// // Function for when the PHP file talks back to flash function completedepart(event:Event):void{     if (event.target.data.replyMsg == "success") {             var refreshPage:URLRequest = new URLRequest("javascript:NewWindow=window.location.reload(); NewWindow.focus(); void(0);");             navigateToURL(refreshPage, "_self");         } // Close completeDepart function ////////////////////////////// // Code for the View res Button var viewRes:URLRequest = new URLRequest("view_res.php"); viewRES_btn.addEventListener(MouseEvent.CLICK, viewResClick); function viewResClick(event:MouseEvent):void {     navigateToURL(viewRes, "_self"); } ///////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// // Code for the Edit Res profile Button var editRes:URLRequest = new URLRequest("edit_res.php"); editRES_btn.addEventListener(MouseEvent.CLICK, editResClick); function editResClick(event:MouseEvent):void {     navigateToURL(editRes, "_self"); } }

    this should be in the as3 forum.  but you need to return name/value pairs from your php file.

  • Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containin

    Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() _________________________________________________________________________________________ ____________ stop(); var DepartVars:URLVariables = new URLVariables(); var DepartURL:URLRequest = new URLRequest("scripts/www.mywebsite.com/depart.php"); DepartURL.method = URLRequestMethod.POST; DepartURL.data = DepartVars; var DepartLoader:URLLoader = new URLLoader; DepartLoader.dataFormat = URLLoaderDataFormat.VARIABLES; DepartLoader.addEventListener(Event.COMPLETE, completeDepart); depart_btn.addEventListener(MouseEvent.CLICK, DepartUser); // Function to run when the Depart button is pressed function DepartUser (event:MouseEvent):void{             // Ready the variables here for sending to PHP           DepartVars.post_code = "Depart";         // Send the data to the php file           DepartLoader.load(DepartURL);         welcome_txt.text = "Processing request...Bon Voyage"; } // Close DepartUser function /////////////////////////////////////// // Function for when the PHP file talks back to flash function completedepart(event:Event):void{     if (event.target.data.replyMsg == "success") {             var refreshPage:URLRequest = new URLRequest("javascript:NewWindow=window.location.reload(); NewWindow.focus(); void(0);");             navigateToURL(refreshPage, "_self");         } // Close completeDepart function ////////////////////////////// // Code for the View res Button var viewRes:URLRequest = new URLRequest("view_res.php"); viewRES_btn.addEventListener(MouseEvent.CLICK, viewResClick); function viewResClick(event:MouseEvent):void {     navigateToURL(viewRes, "_self"); } ///////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// // Code for the Edit Res profile Button var editRes:URLRequest = new URLRequest("edit_res.php"); editRES_btn.addEventListener(MouseEvent.CLICK, editResClick); function editResClick(event:MouseEvent):void {     navigateToURL(editRes, "_self"); } }

    I have a similar problem
    whey I use .txt my code works, but when I change to .dat external file, it get error 1067
    my code:
    import flash.display.Sprite;
    import flash.events.*;
    import flash.net.URLLoader;
    import flash.net.URLLoaderDataFormat;
    import flash.net.URLRequest;
    var loader: URLLoader = new URLLoader();
    loader.dataFormat = URLLoaderDataFormat.VARIABLES;
    loader.addEventListener(Event.COMPLETE, loading);
    loader.load(new URLRequest("rssnews.dat"));
    function loading(e: Event): void {
              news_1.text = trace(e.target.data.titulo);
              news_2.text = trace(e.target.data.texto);

  • Formatting was not successful. A suitable marker could not be found in the required layer break range

    When burning to DVD =R DL
    5.8g
    Formatting finished.
    Formatting was not successful. A suitable marker could not be found in the required layer break range. See the DVD Studio Pro User's Manual for more information.

    Do you understand about layer breaks?  Check the manual on this.  Also do some googling.  I went thru **** with this a few months back being unable to set a layer break.  Finally realized that my dvdsp project had gotten corrupted.  Had to rebuild it and then it worked. 

  • Suggestions required to change the query to improve its performance.

    By using the following query I Created a View. If i query the view for the required data it is taking around 1 minute to fetch the data.
    The output of the query gives all the time slots for which each seat is available on each day starting with the effective start date in the xxcgs_adm_seat_mst table
    It ends with last CAL_DAY of the xxcgs_admin_calendar table.
    The XXCGS_SEAT_MST table contains all the seats data and XXCGS_ADM_ALLOCATION table contains all the allocated seat data.
    Tables used in this view
    1)
    CREATE TABLE XXCGS_ADM_ALLOCATION
    SEAT_ID NUMBER,
    ALLOCFROM_DATE DATE ,
    ALLOCTO_DATE DATE ,
    TIME_FROM VARCHAR2(11),
    TIME_TO VARCHAR2(11));
    The table is having the following sample data:
    Insert into xxcgs_adm_allocation Values(1121, '12-DEC-2007', '27-12-2007', '00:00', '04:59');
    Insert into xxcgs_adm_allocation Values(1140, '12-DEC-2007', '27-12-2007', '00:00', '04:59');
    Insert into xxcgs_adm_allocation Values(1122, '12-DEC-2007', '27-12-2007', '04:30', '10:59');
    Insert into xxcgs_adm_allocation Values(1054, '12-DEC-2007', '27-12-2007', '00:00', '04:59');
    Insert into xxcgs_adm_allocation Values(1141, '12-DEC-2007', '27-12-2007', '00:00', '04:59');
    Insert into xxcgs_adm_allocation values(1142, '12-DEC-2007', '27-12-2007', '00:00', '04:59');
    Insert into xxcgs_adm_allocation Values(1120, '12-DEC-2007', '27-12-2007', '00:00', '04:59');
    COMMIT;
    2) CREATE TABLE XXCGS_ADM_SEAT_MST
    SEAT_ID NUMBER,
    EFFECTIVE_START DATE,
    EFFECTIVE_END DATE);
    Sample data:
    Insert into xxcgs_adm_seat_mst Values (1053, '15-OCT-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1049, '15-OCT-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1054, '16-OCT-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1121, '12-DEC-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1120, '12-JAN-2007', NULL);
    Insert into xxcgs_adm_seat_mst Values (1080, '11-DEC-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1100, '11-DEC-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1122, '01-DEC-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1140, '01-DEC-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1141, '01-DEC-2007',NULL);
    Insert into xxcgs_adm_seat_mst Values (1142, '01-DEC-2007',NULL);
    COMMIT;
    3)
    CREATE TABLE XXCGS_ADMIN_CALENDAR
    CAL_DAY DATE,
    SL_NO NUMBER
    This table contains 3 years data.
    In this table I inserted data with this code:
    declare
    v_cal_day DATE ;
    V_SL_NO NUMBER;
    BEGIN
    V_CAL_DAY := '01-JAN-2007';
    V_SL_NO := 1;
    LOOP
    INSERT INTO XXCGS_ADMIN_CALENDAR VALUES (V_CAL_DAY,V_SL_NO);
    V_CAL_DAY := V_CAL_DAY+1;
    V_SL_NO := V_SL_NO+1;
    EXIT WHEN V_CAL_DAY > '31-DEC-2009';
    END LOOP;
    END;
    4)
    CREATE TABLE TIME_SLOTS
    S_NO NUMBER(2),
    HOURS VARCHAR2(6 BYTE),
    FROM_TIME VARCHAR2(6 BYTE),
    TO_TIME VARCHAR2(6 BYTE)
    Data in this Table:
    insert into time_slots values(1, '00:30', '00:00', '00:29');
    insert into time_slots values(2, '01:00', '00:30', '00:59');
    insert into time_slots values(3, '01:30', '01:00', '01:29');
    insert into time_slots values(4, '02:00', '01:30', '01:59');
    insert into time_slots values(5, '02:30', '02:00', '02:29');
    insert into time_slots values(6, '03:00', '02:30', '02:59');
    insert into time_slots values(7, '03:30', '03:00', '03:29');
    insert into time_slots values(8, '04:00', '03:30', '03:59');
    insert into time_slots values(9, '04:30', '04:00', '04:29');
    insert into time_slots values(10, '05:00', '04:30', '04:59');
    insert into time_slots values(11, '05:30', '05:00', '05:29');
    insert into time_slots values(12, '06:00', '05:30', '05:59');
    insert into time_slots values(13, '06:30', '06:00', '06:29');
    insert into time_slots values(14, '07:00', '06:30', '06:59');
    insert into time_slots values(15, '07:30', '07:00', '07:29');
    insert into time_slots values(16, '08:00', '07:30', '07:59');
    insert into time_slots values(17, '08:30', '08:00', '08:29');
    insert into time_slots values(18, '09:00', '08:30', '08:59');
    insert into time_slots values(19, '09:30', '09:00', '09:29');
    insert into time_slots values(20, '10:00', '09:30', '09:59');
    insert into time_slots values(21, '10:30', '10:00', '10:29');
    insert into time_slots values(22, '11:00', '10:30', '10:59');
    insert into time_slots values(23, '11:30', '11:00', '11:29');
    insert into time_slots values(24, '12:00', '11:30', '11:59');
    insert into time_slots values(25, '12:30', '12:00', '12:29');
    insert into time_slots values(26, '13:00', '12:30', '12:59');
    insert into time_slots values(27, '13:30', '13:00', '13:29');
    insert into time_slots values(28, '14:00', '13:30', '13:59');
    insert into time_slots values(29, '14:30', '14:00', '14:29');
    insert into time_slots values(30, '15:00', '14:30', '14:59');
    insert into time_slots values(31, '15:30', '15:00', '15:29');
    insert into time_slots values(32, '16:00', '15:30', '15:59');
    insert into time_slots values(33, '16:30', '16:00', '16:29');
    insert into time_slots values(34, '17:00', '16:30', '16:59');
    insert into time_slots values(35, '17:30', '17:00', '17:29');
    insert into time_slots values(36, '18:00', '17:30', '17:59');
    insert into time_slots values(37, '18:30', '18:00', '18:29');
    insert into time_slots values(38, '19:00', '18:30', '18:59');
    insert into time_slots values(39, '19:30', '19:00', '19:29');
    insert into time_slots values(40, '20:00', '19:30', '19:59');
    insert into time_slots values(41, '20:30', '20:00', '20:29');
    insert into time_slots values(42, '21:00', '20:30', '20:59');
    insert into time_slots values(43, '21:30', '21:00', '21:29');
    insert into time_slots values(44, '22:00', '21:30', '21:59');
    insert into time_slots values(45, '22:30', '22:00', '22:29');
    insert into time_slots values(46, '23:00', '22:30', '22:59');
    insert into time_slots values(47, '23:30', '23:00', '23:29');
    insert into time_slots values(48, '24:00', '23:30', '23:59');
    commit;
    The query
    Part 1:
    This Query maps the seat_id in the master table with each time slot and with effective start date between sysdate-60 and sysdate+365 assuming that a seat can be allocated not more than a year. so if there are 10 seats in this table then this table contains 10*48*425 records
    SELECT mst.seat_id
    , cal.sl_no
    , cal.cal_day
    , tm.s_no
    , tm.from_time
    , tm.to_time
    FROM xxcgs_adm_seat_mst mst
    , xxcgs_admin_calendar cal
    , time_slots tm
    WHERE cal.cal_day >= NVL (mst.effective_start,SYSDATE - 60)
    AND cal.cal_day <= NVL (mst.effective_end, SYSDATE + 365)
    Part 2:
    This query is based on the allocation table and it checks the allocated seats with all the time slots and between the allocated date range and marks the timeslot as 0 if it is not allocated and 1 if it is allocated
    SELECT seat_id
    , sl_no
    , cal_day
    , s_no
    , from_time
    , to_time
    FROM
    (SELECT alloc.seat_id
         , cal.sl_no
         , cal.cal_day
    , tm.s_no
    , tm.from_time
         , tm.to_time
    ,SUM(DECODE(LEAST(alloc.time_from,tm.from_time),alloc.time_from,
              DECODE(GREATESTalloc.time_to,tm.to_time),alloc.time_to, 1,0),0))AVAILABILITY
    FROM
    xxcgs_adm_allocation alloc
    ,xxcgs_admin_calendar cal
         ,time_slots tm     
    WHERE
    cal.cal_day >= alloc.allocfrom_date
    AND cal.cal_day <= alloc.allocto_date
    GROUP BY alloc.seat_id
    ,cal.sl_no
              ,cal.cal_day
              ,tm.s_no
              ,tm.from_time
              ,tm.to_time
    ORDER BY cal.sl_no, tm.s_no) a     
    WHERE a.AVAILABILITY = 1
    Part 3:
    Here i am substracting the 2nd query output from the 1st to get all the available time slots for all seats
    SELECT mst.seat_id
    ,cal.sl_no
         ,cal.cal_day
         ,tm.s_no
         ,tm.from_time
         ,tm.to_time
         FROM xxcgs_adm_seat_mst mst
         ,xxcgs_admin_calendar cal
         ,time_slots tm
    WHERE cal.cal_day >= NVL (mst.effective_start,SYSDATE - 60)
    AND cal.cal_day <= NVL (mst.effective_end, SYSDATE + 365)
    MINUS
    SELECT seat_id
    , sl_no
         , cal_day
         , s_no
         , from_time
         , to_time
    FROM
    (SELECT alloc.seat_id
         ,cal.sl_no
                   ,cal.cal_day, tm.s_no
                   ,tm.from_time
                   ,tm.to_time
                   ,SUM(DECODE(LEAST(alloc.time_from,tm.from_time),alloc.time_from,
                   DECODE(GREATEST(alloc.time_to,tm.to_time),alloc.time_to, 1,0),0))AVAILABILITY
    FROM
    xxcgs_adm_allocation alloc
    ,xxcgs_admin_calendar cal
         ,time_slots tm     
    WHERE
    cal.cal_day >= alloc.allocfrom_date
    AND cal.cal_day <= alloc.allocto_date
    GROUP BY alloc.seat_id
    ,cal.sl_no
              ,cal.cal_day
              ,tm.s_no
              ,tm.from_time
              ,tm.to_time
    ORDER BY cal.sl_no, tm.s_no) a     
    WHERE a.AVAILABILITY = 1

    Any chance to get your Oracle version, release and patchset ? Any chance to get your OS and plateform ? Any chance to use tags &#091;pre&#093; and &#091;/pre&#093; around your code to keep tabs as well on the forum side ?
    Any chance to get explain plan as well explained When your query takes too long ... ?
    Nicolas.

  • Help required in generating the following query

    Hi all,
    i need solution regarding the following problem.
    we got many number of groups ,each group containg many number of names,each name containing some items under that
    i had written a query stating that select item where grp  =[0%] and name =[1%] from a table
    it will execute and dispaly a window with two fields at the first field i entered group and in the second field when i select for existing values it shows all the items of all groups
    but we need only items that belong to the group that we enter in the first field
    any one tell me the query regarding this requirement

    HI,
    The alternative solution is: develop your add-on, which get the filtering window, and connects the 2 parameters inside, then runs the query and displays it in a matrix/Grid.
    It is not takes so many time.
    Regards,
    J.

Maybe you are looking for