Index on two columns

Hi
I have a table like
create table tab1(tb1 number, tb2 varchar2(30), tb3 varchar2(30))
I have created two function indexes upper(tb2) and upper(tb3) on the table tab1
I have a select query like
select tb1 from tab1
where upper(tb2) like upper('%test%')
or upper (tb3) like upper('%test%')
Now the problem is it is not using the indexes. If I use union like
select tb1 from tab1
where upper(tb2) like upper('%test%')
union
select tb1 from tab1
where upper (tb3) like upper('%test%')
, it is using both indexes.
Is there any other way to make use of both the indexes
Thanks in advance

No version number.
No explain plan created using DBMS_XPLAN.
No help is possible.
Using an index is not necessarily a good thing ... it is just a thing.
Why does it matter? What is the underlying issue?

Similar Messages

  • Looking for a two-column CSS layout

    I am looking for a two-column CSS layout that is centered
    with blank space
    on the sides, so the layout does not expand across the entire
    screen, but
    instead uses a portion of it (such as 75%). The left column
    would be for
    navigation and I haven't decided if I want it to be liquid or
    fixed, but the
    right column for content would be liquid. There would also be
    a heading div
    and navigation div across the top and a footer across the
    bottom.
    While looking for sample sites I keep finding ones that use
    three columns,
    and I'm worried that if I remove the third column that the
    layout will break
    at some point, even if I don't see it in my test browsers.
    I'm also
    discovering that some of the sample pages out there don't
    respond well when
    I resize the browser window. The columns don't have a minimum
    width or they
    stack on top of each other at some point.
    There are so many different techniques to use when designing
    a layout with
    CSS, some better than others, that I thought maybe some
    people here may
    already know what's tried and true and what should be
    avoided. Are any
    layouts robust enough to allow a third column to be added at
    a future date
    if needed? I also like the idea of putting the content div
    first in the
    code, to improve search engine indexing and also to aid those
    who may be
    using a screen reader, but if that feature makes the coding
    much more
    complex then I could see why I might avoid it for now.

    Sorry Nancy, I didn't see your post for some reason. At least
    we agree (o:
    Jo
    "josie1one" <[email protected]> wrote in message
    news:g4tv32$57f$[email protected]..
    >I have DW8 and am very happy with this:
    >
    http://projectseven.com/products/templates/pagepacks/cssmagic/index.htm
    >
    >
    > --
    > Jo
    >
    >
    > "Matt" <[email protected]> wrote in message
    > news:g4tg96$isq$[email protected]..
    >>I am looking for a two-column CSS layout that is
    centered with blank space
    >>on the sides, so the layout does not expand across
    the entire screen, but
    >>instead uses a portion of it (such as 75%). The left
    column would be for
    >>navigation and I haven't decided if I want it to be
    liquid or fixed, but
    >>the right column for content would be liquid. There
    would also be a
    >>heading div and navigation div across the top and a
    footer across the
    >>bottom.
    >>
    >> While looking for sample sites I keep finding ones
    that use three
    >> columns, and I'm worried that if I remove the third
    column that the
    >> layout will break at some point, even if I don't see
    it in my test
    >> browsers. I'm also discovering that some of the
    sample pages out there
    >> don't respond well when I resize the browser window.
    The columns don't
    >> have a minimum width or they stack on top of each
    other at some point.
    >>
    >> There are so many different techniques to use when
    designing a layout
    >> with CSS, some better than others, that I thought
    maybe some people here
    >> may already know what's tried and true and what
    should be avoided. Are
    >> any layouts robust enough to allow a third column to
    be added at a future
    >> date if needed? I also like the idea of putting the
    content div first in
    >> the code, to improve search engine indexing and also
    to aid those who may
    >> be using a screen reader, but if that feature makes
    the coding much more
    >> complex then I could see why I might avoid it for
    now.
    >>
    >
    >

  • Two-column text

    This is driving me nuts. It's not that often that I import text into InDesign. I've got two column page formats set up for an index. I'm placing the index text, which is an RTF file, into this two-column format. And, it just boringly splats itself right across the whole page, damn the two columns. What's this about? Why can't imported text adhere to the columns that are set up?
    Thanks,
    Peter

    Yeh, I fixed it, finally. Yes, I had to click, click, click in the text frame and make sure I saw a blinking cursor in there. I actually typed in some text and verified that it was wrapping in the first column, not spanning. Then, I placed my file. And, it finally came in right. I guess you just have to be totally sure that your cursor's there in the 2-column textbox. Sometimes when I brought in the text, it literally create another single-column text frame, on top of the two-column one!
    Thanks, everyone.

  • Two column text box with header

    I have a text box that is set to flow as two columns. The beginning of the text box has a header then a list of bulleted items. My problem is that when the text flows to the second column, it is set at the top (in-line with the header). What I would like is to do something like set a top margin just for the second column so it will line up with the body text from the first column. Is there an easy way to do this or should I just use two text boxes and position the second box where I want it?

    Simplest is to use two text boxes.
    Dave Saunders has a script (http://pdsassoc.com/index.php?Nav=downs&Ban=Downloads&Info=downloads.html) that can do it with one text box by putting your head in a one-column table that intrudes into the second column. I've never used his script, and I see his website says CS and CS2, so I'm not sure if it would work with your version.
    You could probably achieve what you want (because I see you don't actually need the head to straddle, just the texts to top align with each other) by forcing a huge leading on one character in a frame that's set to First Baseline Offset by Leading.
    Ken

  • How do I count the unique value pairs in two columns of a table?

    I have a table (Table 2) that is populated with data from an imported .csv file. On table 1 I need to count the unique value pairs in two columns of Table 2.
    Here's what I have:
    Date                                        Person
    7/10/2011                         A
    7/12/2011                         W
    7/12/2011                         X
    7/12/2011                         X
    7/12/2011                         X
    7/12/2011                         Z
    7/14/2011                         Z
    7/15/2011                 X
    7/16/2011                         Z
    I'm focusing on person "X" and can easily count how many days that person shows up but what I want is to see on how many unique days that person shows up.
    Here's the result I'm looking for (Person "X" shows up on 2 different days - 3 times on 7/12/2011 and once on 7/15/2011):
    X                    2
    I can't seem to find a function that allows me to do that. I also am not allowed to modify Table 2 so that leaves me to come up with a solution on Table 1.
    Any ideas would be greatly appreciated.

    Hi John,
    Not being allowed to modify Table 2 is a minor inconvenience. Just copy (using a formula) the necessary two columns onto Table 1.
    Yellow columns may be hidden. The procedure progresses from left to right. All formulas are entered into row 2 then filled down that column to the end of the table. The table must be as long as the list in column A of Table 2.
    A2: =Table 2::A
    Fill right to column B.
    Fill both columns down as far as needed.
    I've used actual Date and Time values in column A, formatted to show only the Date part, but the technique will work with text in these cells, provided all cells representing the same 'date' have exactly the same content.
    C2: =A&B
    This concatenates the contents of each row of columns A and B into a single text string.
    D2: =COUNTIF($C$2:C2,C)
    This counts the number of occurrences of the Date&Name string on the current row from the first regular cell in column C (C2) to the current cell.
    E2: =IF(COUNTIF($B$2:B2,B)=1,MAX($E$1:E1)+1,"")
    This constructs the index of first occurrences of each name, in the order they first occur. The index is used by LOOKUP in column F.
    F2: =IF(ROW()-1>MAX(E),"",LOOKUP(ROW()-1,$E,$B))
    This uses the index value created in E as a search-for value to extract a single copy of the names in column B. The result is a list of all distinct names in the list. Note that spelling differences will be counted as distinct names.The IF statement stops the listing when the last distinct name is extracted.
    G2: =IF(LEN(F)>0,COUNTIFS($B,"="&F,$D,"=1"),"")
    This counts the number of 'first occurrences of distinct Date & Name strings for each name on the list (ie. the number of distinct dates on which each name appears in the original list).
    All of the functions used are described, with at least one example for each, in the iWork formulas and Functions User Guide. You can download the guide, and the Numbers '09 User Guide, via the Help menu in numbers.
    Regards,
    Barry

  • Is there a way to find out how to get the index of a column?

    Hello,
    I want to know the index of a column for example the column at the first position in a jtable is 0 so how can i get this index?
    for example: the column called "surname" is index 0 but the user can move the column. So the name stays the same but the index of the column changed. I search for a method like
    table.getColumnIndex("surname");

    I think it really depends on what the OP is trying to do. I think the program
    below offers up the possible choices pretty well.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class TableColumnIndexDemo extends JFrame {
         private JTable table;
         private String[] names = new String[]{ "One", "Two", "Three", "Four", "Five" };
         public static void main( String args[] ) {
              SwingUtilities.invokeLater( new Runnable() {
                   public void run() { new TableColumnIndexDemo(); }
         public TableColumnIndexDemo() {
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              DefaultTableModel model = new DefaultTableModel( names, 1 );
              table = new JTable( model );
              JButton button = new JButton( "Print indices" );
              button.addActionListener( new ActionListener() {
                   public void actionPerformed( ActionEvent e ) {
                        printIndices();
              getContentPane().setLayout( new BorderLayout() );
              getContentPane().add( button, BorderLayout.NORTH );
              getContentPane().add( new JScrollPane( table ), BorderLayout.CENTER );
              getContentPane().add( new JLabel( "Move columns around then print indices" ), BorderLayout.SOUTH );
              setSize( 300, 150 );
              setVisible( true );
              printIndices();
         private void printIndices() {
              TableColumnModel columnModel = table.getColumnModel();
              TableModel model = table.getModel();
              StringBuffer sb = new StringBuffer();
              System.out.println( "Visible order");
              for ( int k = 0; k < columnModel.getColumnCount(); k++ ) {
                   if ( k > 0 ) sb.append( ", " );
                   sb.append( k ).append( " " ).append( columnModel.getColumn( k ).getIdentifier() );
              System.out.println( sb );
              sb = new StringBuffer();
              System.out.println( "By name using getColumnIndex(TableModel,name)" );
              for( int k = 0; k < names.length; k++) {
                   if ( k > 0 ) sb.append( ", " );
                   sb.append( getColumnIndex( model, names[k] ) ).append( " " ).append( names[k] );
              System.out.println( sb );
              sb = new StringBuffer();
              System.out.println( "By name using columnModel.getColumnIndex(name)" );
              for( int k = 0; k < names.length; k++) {
                   if ( k > 0 ) sb.append( ", " );
                   sb.append( columnModel.getColumnIndex( names[k] ) ).append( " " ).append( names[k] );
              System.out.println( sb );
              sb = new StringBuffer();
              System.out.println( "Model index by visible order");
              for ( int k = 0; k < columnModel.getColumnCount(); k++ ) {
                   if ( k > 0 ) sb.append( ", " );
                   TableColumn column = columnModel.getColumn( k );
                   sb.append( column.getModelIndex() ).append( " " ).append( column.getIdentifier() );
              System.out.println( sb );
         public static int getColumnIndex(TableModel model, String name) {
             for(int i = 0; i < model.getColumnCount(); i++) {
                 if( model.getColumnName(i).equalsIgnoreCase(name) ) {
                     return i;
             return -1;
    }

  • Using Auto Adjustable Fluid Grid Layout Divs to balance two columns

    I have a header band, two columns and then a footer band in the layout that I'm working on.I have Div on each side that is set to "Auto" for height so that the two column lengths appear to be the same size when they get to the footer band. That is how I envisioned it, in practice, "Auto" only seems to adjust to the text inside the respective divs.
    Something that"hould" be soesy has gotten me banging my head for four days. I thught I had a solution, using "nesting tags" but saw that was not supported.
    Any ideas?

    http://whatwouldwaltdo.businesscatalyst.com/fl0916.html
    Source code:
    <!doctype html>
    <!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
    <!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
    <!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
    <!--[if gt IE 8]><!-->
    <html class="">
    <!--<![endif]-->
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Untitled Document</title>
    <link href="boilerplate.css" rel="stylesheet" type="text/css">
    <link href="/FL916.css" rel="stylesheet" type="text/css">
    <link href="/stylesheets/FL.css" rel="stylesheet" type="text/css">
    <link href="/SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css">
    <!--
    To learn more about the conditional comments around the html tags at the top of the file:
    paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
    Do the following if you're using your customized build of modernizr (http://www.modernizr.com/):
    * insert the link to your js here
    * remove the link below to the html5shiv
    * add the "no-js" class to the html tags at the top
    * you can also remove the link to respond.min.js if you included the MQ Polyfill in your modernizr build
    -->
    <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script src="respond.min.js"></script>
    <script src="/SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    </head>
    <body>
    <div class="gridContainer clearfix">
      <div id="bannertop"><img src="/images/Walt w CMS PIN.fw.png" alt="Walt Disney with Disneyland Cast Members (1966)"></div>
      <div id="ticker">This is the content for Layout Div Tag "ticker"</div>
    <div id="blocker">
      <div id="leftcolumn">This is the content for Layout Div Tag "leftcolumn"
          <div id="Accordion1" class="Accordion" tabindex="0">
            <div class="AccordionPanel">
              <div class="AccordionPanelTab">HOME</div>
              <div class="AccordionPanelContent">
              <img src="/images/graphics/pagetitles/toallwhocome.gif" alt="The opening line of Walt Disney's dedication speech at Disneyland, &quot;To all who come to this happy place, welcome ...&quot;" width="192" align="absmiddle">
              </div>
            </div>
            <div class="AccordionPanel">
              <div class="AccordionPanelTab">Pins</div>
              <div class="AccordionPanelContent">
                  <p>Ordering</p>
                  <p>Presenting a Pin</p>
                  <p>Collectors' Corner</p>
                  <p>Why a Pin?</p>
              </div>
            </div>
            <div class="AccordionPanel">
              <div class="AccordionPanelTab">Cast Members</div>
              <div class="AccordionPanelContent">
                  <p>Newest</p>
                  <p>Nominate Your Own</p>
                  <p>Alphabetical</p>
                  <p>By Company/Location</p>
                <p>By WWWD Pin</p>
                <p>Cast Members' Reactions</p>
              </div>
            </div>
            <div class="AccordionPanel">
                  <div class="AccordionPanelTab">Traditions</div>
                <div class="AccordionPanelContent">
                <p>Guests' Traditions</p>
                  <p>Share Your Traditions</p>
                </div>
              </div>
            <div class="AccordionPanel">
                  <div class="AccordionPanelTab">Adventures</div>
                  <div class="AccordionPanelContent">
                <p>Guests' Adventures</p>
                  <p>Share Your Adventures</p></div>
              </div>
            <div class="AccordionPanel">
                  <div class="AccordionPanelTab">City Hall</div>
                  <div class="AccordionPanelContent">
                <p>Waltisms</p>
                <p>The WWWD Story</p>
                  <p>About Us</p>
                  <p>That First Trip</p>
                  <p>About Us</p>
                  <p>Ordering</p>
                  <p>About Us</p>
                  <p>Ordering</p></div>
              </div>
        </div>
        <div id="social">This is the content for Layout Div Tag "social"</div>
        <div id="printer">This is the content for Layout Div Tag "printer"</div>
        <div id="banner"><img src="/images/graphics/reg sidebargraphic.gif" alt="White Mickey head with a circle of stars on a blue field"></div>
      </div>
      <div id="copy">This is the content for Layout Div Tag "copy"<br><br><P> <FONT SIZE="-1" COLOR="#CC0000">Copyright © 2012, 2011, 2010, 2009, 2008, 2007, 2006, 2005, 2004, 2003, 2002 Founder's
                Legacy Inc. </FONT><BR>
                <FONT SIZE="-1" COLOR="#CC0000">What Would Walt Do and WWWD are trademarks
                of Founder's Legacy, Inc.</FONT></P>
              <P><FONT COLOR="#000081" SIZE="-1">Founder's Legacy, Inc. is a member
                of the Disney Store.com Affiliate Network. As such we are authorized
                to display the Disney Store banner on any or all of our webpages.
                Founder's Legacy is also listed with The Disneyland Resort Press &
                Publicity Department, images used are with their permission.</FONT></P>
              <P><FONT COLOR="#000081" SIZE="-1">Founder's Legacy, Inc. is not part
                of The Walt Disney Company. The only other relationship between Founder's
                Legacy, Inc. and The Walt Disney Company is various members of the
                Founder's Legacy Inc.'s Board of Directors and/or their family are
                shareholders in The Walt Disney Company.</FONT><FONT SIZE="-1" COLOR="#CC0000"><BR>
                <BR>
                Additional disclosures for the benefit of insomniacs may be enjoyed
                in our <A HREF="/pages/insomniac.shtml">Insomniac's Delight
      Page & Privacy Policy</A></FONT> </P></div>
      </div>
    <div id="mission"><FONT
                 COLOR="#000081"><B>Our Mission Statement</B></FONT>
          <BLOCKQUOTE>
        <P><FONT color="#D50000" SIZE="+2"><em>To restore Magical Guest experiences through recognizing outstanding Cast Members.</em></FONT></P>
            </div>
    <div id="awards"><table width="100%" border="0" cellpadding="0">
      <tr>
        <TD VALIGN="middle" ALIGN="CENTER"><a href="http://LaughingPlace.com"><img src="/Assets/graphics/Affiliations/LPLogoHighest.gif" width="96" height="82" border="1" alt="LaughingPlace.com"></a></TD>
        <TD VALIGN="middle" ALIGN="CENTER"><img src="/Assets/graphics/Affiliations/seek-button01.gif" width="120" height="80"
                 border="0"></TD>
        <TD WIDTH="1" VALIGN="middle" ALIGN="CENTER"><a href="http://disney.go.com/investors/index.html"><img src="/Assets/graphics/Affiliations/shareholder.gif" width="106" height="48"
                 border="1"></a></TD>
        <TD VALIGN="middle" ALIGN="CENTER"> <img src="/Assets/graphics/Affiliations/safewave.gif" width="78" height="74"
                 border="1"></TD>
        <TD VALIGN="middle" ALIGN="CENTER"><a href="http://wdwig.com/"><img src="/Assets/graphics/Affiliations/125x125allearsnet.gif" width="120" height="120" border="0"></a></TD>
      </tr>
    </table></div>
    <div id="bigbottom"><P> <FONT SIZE="-1" COLOR="#CC0000">Copyright © 2012, 2011, 2010, 2009, 2008, 2007, 2006, 2005, 2004, 2003, 2002 Founder's
                Legacy Inc. </FONT><BR>
                <FONT SIZE="-1" COLOR="#CC0000">What Would Walt Do and WWWD are trademarks
                of Founder's Legacy, Inc.</FONT></P>
              <P><FONT COLOR="#000081" SIZE="-1">Founder's Legacy, Inc. is a member
                of the Disney Store.com Affiliate Network. As such we are authorized
                to display the Disney Store banner on any or all of our webpages.
                Founder's Legacy is also listed with The Disneyland Resort Press &
                Publicity Department, images used are with their permission.</FONT></P>
              <P><FONT COLOR="#000081" SIZE="-1">Founder's Legacy, Inc. is not part
                of The Walt Disney Company. The only other relationship between Founder's
                Legacy, Inc. and The Walt Disney Company is various members of the
                Founder's Legacy Inc.'s Board of Directors and/or their family are
                shareholders in The Walt Disney Company.</FONT><FONT SIZE="-1" COLOR="#CC0000"><BR>
                <BR>
                Additional disclosures for the benefit of insomniacs may be enjoyed
                in our <A HREF="/pages/insomniac.shtml">Insomniac's Delight
      Page & Privacy Policy</A></FONT> </P></div>
    </div>
    <script type="text/javascript">
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    </script>
    </body>
    </html>
    Stylesheet:
    @charset "utf-8";
    /* Simple fluid media
       Note: Fluid media requires that you remove the media's height and width attributes from the HTML
       http://www.alistapart.com/articles/fluid-images/
    img, object, embed, video {
        max-width: 100%;
    /* IE 6 does not support max-width so default to width 100% */
    .ie6 img {
        width:100%;
        Dreamweaver Fluid Grid Properties
        dw-num-cols-mobile:        5;
        dw-num-cols-tablet:        8;
        dw-num-cols-desktop:    12;
        dw-gutter-percentage:    25;
        Inspiration from "Responsive Web Design" by Ethan Marcotte
        http://www.alistapart.com/articles/responsive-web-design
        and Golden Grid System by Joni Korpi
        http://goldengridsystem.com/
    /* Mobile Layout: 480px and below. */
    .gridContainer {
        margin-left: auto;
        margin-right: auto;
        width: 87.36%;
        padding-left: 1.82%;
        padding-right: 1.82%;
    #LayoutDiv1 {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #bannertop {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #ticker {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #blocker {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #leftcolumn {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #copy {
        clear: none;
        float: left;
        margin-left: 4.1666%;
        width: auto;
        display: block;
    #leftnav {
        clear: none;
        float: left;
        margin-left: 4.1666%;
        width: 100%;
        display: block;
    #social {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
        text-align: center;
        padding-top: 8px;
        padding-bottom: 8px;
        padding-left: 35px;
    #printer {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #banner {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #mission {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #awards {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #bigbottom {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    /* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */
    @media only screen and (min-width: 481px) {
    .gridContainer {
        width: 90.675%;
        padding-left: 1.1625%;
        padding-right: 1.1625%;
    #LayoutDiv1 {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #bannertop {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #ticker {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #blocker {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #leftcolumn {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #copy {
        clear: none;
        float: left;
        width: 55%;
        display: block;
        margin: 0%;
    #leftnav {
        clear: none;
        float: left;
        margin-left: 2.5641%;
        width: 100%;
        display: block;
    #social {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #printer {
        clear: both;
        float: left;
        margin-left: 0;
        width: 35.8974%;
        display: block;
    #banner {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #mission {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #awards {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #bigbottom {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    /* Desktop Layout: 769px to a max of 1232px.  Inherits styles from: Mobile Layout and Tablet Layout. */
    @media only screen and (min-width: 769px) {
    .gridContainer {
        width: 88.5%;
        max-width: 1232px;
        padding-left: 0.75%;
        padding-right: 0.75%;
        margin: auto;
    #LayoutDiv1 {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #bannertop {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #ticker {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #blocker {
        clear: both;
        float: left;
        margin-left: 0;
        width: 74.5762%;
        display: block;
        border-top-width: thick;
        border-right-width: thick;
        border-bottom-width: thick;
        border-left-width: thick;
        border-top-style: none;
        border-right-style: ridge;
        border-bottom-style: none;
        border-left-style: none;
        border-top-color: #C10B0F;
        border-right-color: #C10B0F;
        border-bottom-color: #C10B0F;
        border-left-color: #C10B0F;
    #leftcolumn {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #copy {
        clear: none;
        float: left;
        margin-left: 1.6949%;
        width: 100%;
        display: block;
    #leftnav {
        clear: none;
        float: left;
        margin-left: 1.6949%;
        width: 100%;
        display: block;
    #social {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #printer {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #banner {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #mission {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #awards {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #bigbottom {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;

  • How to compare index names and columns from different user?

    I am using below query to compare two indexes from 2 different users but even though index name and columns are same... result shows me they are different.. what I am doing wrong? Thanks
    WITH t AS
            (SELECT COUNT (DISTINCT index_owner || index_name || indexed_cols)
                       cnt
               FROM (  SELECT index_owner,
                              index_name,
                              listagg (column_name, ',')
                                 WITHIN GROUP (ORDER BY column_position)
                                 indexed_cols
                         FROM dba_ind_columns
                        WHERE index_name='XPKTBL_A'
                     GROUP BY index_owner, index_name))
    SELECT CASE
              WHEN cnt > 1 THEN 'Indexes are different'
              WHEN cnt = 0 THEN 'Indexes dont exist'
              WHEN cnt > 1 THEN 'Indexes are identical'
           END
              commnt
      FROM t
    Result:
    Indexes are different
    but Actually if you check below they are same After when I run this query:
    SELECT index_owner,
             index_name,
             listagg (column_name, ',') WITHIN GROUP (ORDER BY column_position)
                indexed_cols
        FROM dba_ind_columns
       WHERE index_name='XPKTBL_A'
    GROUP BY index_owner, index_name;
    Result:
    Index_owner
    Index_name
    Index_cols
    USER1
    XPKTBL_A
    FIELD_A1
    USER2
    XPKTBL_A
    FIELD_A1

    Hi,
    Erhan_toronto wrote:
    I am using below query to compare two indexes from 2 different users but even though index name and columns are same... result shows me they are different.. what I am doing wrong? Thanks
    WITH t AS
            (SELECT COUNT (DISTINCT index_owner || index_name || indexed_cols)
    So index_owner is 'USER1' in one case, and 'USER2' in the other; right?
    A string that starts with 'USER1' will be distinct from a string that starts with 'USER2', no matter what the rest of the string contains.  Maybe you don't want to compare the owners, or maybe you meant to use some other column (such as table_name) instead of index_owner).
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE, CREATE INDEX and CONNECT statements), and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Gallery Display Thumbnails in Two Columns

    Thanks to Mr. Booth for his excellent tutorial on setting up
    a web gallery. This really gave me a great foundation.
    My question has to do with controlling how thumbnail images
    are displayed on the page. I would like to display two (or three)
    columns ot thumbs along with a text title for each. If I were
    programming this in C++, I would setup a "for loop" and simply
    display the first column with an index of i/2, and the second
    column with an index of i/2 + 1, but I can't seem to figure out how
    to achieve a similar effect within the confines of HTML.
    Here is my code snippet. What I get is two columns of
    identical thumbs. How would you change this to make thumbs 1,3,5...
    appear in column one, and thumbs 2,4,6... appear in column two? It
    seemed to me that using a table was a good way to set this up, but
    I'm very new to web programming.
    <div class="NewThumbClass" spry:region="dsGallery" >
    <table>
    <tr spry:repeat="dsGallery" >
    <td> {title} <br />
    <img src ="thumbnails/{path}" /></td>
    <td> {title}<br />
    <img src ="thumbnails/{path}" /></td>
    </tr>
    </table>
    </div>
    Note that {title} and {path} are gotten from the XML database
    file. Thanks in advance for your help.
    Mike Whalen

    Hi
    No! It's not possible, but you can try to create an your own heading in TOP-OF-PAGE to write the first heading line, the second one will be the std line .
    Max

  • Two column display

    Greetings all,
    I had a MovableType blog hosted by Yahoo and I decided to move the files to my Network Solutions account where the domain is registered.
    All files were transferred and the DNS changed to point to the new location (http://theargonauts.info/index.html). But the blog, which used to display in two columns, now only displays in one. Previously when I've had this problem it was because there were too many or too few </div> tags at the end of the post where the break is supposed to occur, around line 100 in my Dreamweaver editor. But Dreamweaver doesn't show any unfinished <div> statements and adding or deleting them makes no difference, it still displays in one column. I thought there might be something in the .css but I can't for the life of me figure out what it is.
    This is driving me crazy and any insight will be greatly appreciated.
    Thanks,
    Smalex
    (Original style html attached)

    In the code for the page to which you linked, it appears that this div tag is unclosed -
    <div id="container">
    Try fixing that first.

  • Best way to have an image span two columns in a CSS layout?

    My homepage is a typical fixed width three column layout. For the inside, content pages, I basically need the same layout except I need to have an image that spans the left and center columns at the top. Below the image, the left and center columns should continue on. The right column should not change at all m
    My first thought is to start with a two column layout where the left column would contain the image. Then, I would divide the left column into two columns that would start below the image, using a top margin or perhaps another appropriate positioning attribute.
    But before I create a completely new layout for these pages, I thought I'd check and see if there may be an easier or better way to do this. any ideas?

    Thank you, Thank you, Thank you for both responses. But I have to say I went with the AP div solution. In either case, I would have needed a second layout but this way was a much simpler modification to the three column index page. I did try it both ways as I'm still a-learning. I'm finally getting to the point where when I set or change a setting - especially positioning attributes like margins, the outcome is what I expect. I have also experimented enough where I see there is often more than one way to produce the desired result. However, I'm afraid that in many of these cases I can't explain why one method might be better, or preferred over another. Or if in some instances it simply doesn't matter, unless the final issue is arriving at the most efficient and lightest amount of code required to do the job (that's what I call the Holy Grail in programming and scripting).
    As an audio engineer as well, I'm reminded of certain discussions on how to achieve the best sound for this or that, and after going round and round about effects, the science of acoustics, which plug in works best and for what, often the only thing ever really settled upon is "just go by what sounds the best to you". I digress.
    So using the AP div in this case, what, if anything is the downside? Does it matter that its content as well as the rest of the page will be dynamic? I wouldn't think so. Might there be issues with older browsers or mobile browsers? The former is not a concern, but the latter is. Might I be tempted to use an AP div at another time because it's so easy to implement, but then may not be an appropriate use? I think I can properly evaluate that if and when the time comes.
    Am I just over-thinking all this? : )
    Thank you again!
    Edited to add: I wanted to mark both responses as correct, but it wouldn't let me do it. No offense I hope!

  • I have index with 3 column and i want continued word at top of every column, if term not completed at the end

    I have 3 column index.
    Every column have main term, now i want if the main term of subterm not ending the last column then main term and continued word appear at top of every column.
    Please help me

    That // interesting question:
    How not to separate two consecutive paragraphs [2 different levels] in an index? Especially, at the bottom of a column. 

  • Error in Word when creating two columns

    Hi, first of all, please excuse my bad English, it is not my primary language.
    I have a document and I need to "transform" a long passage to 2 columns to save some space. When I do this, something happens with the page count, also in the Index showing page numbers automaticly.
    The page that starts with the two columns get page number 1 instead of 5 or 6, and all the following pages with the two columns have this number and the first page after the two columns end gets number 2. I can not reproduce this error in Another document,
    But I do not understand why I get it in this.
    Here is a Link to my OneDrive containing Steps recorder .zip to show you.
    http://1drv.ms/1lqISNO
    Regards
    Martin

    Looks like splitting the passage has created a new section at the page and it has its own page numbering. Try this:
    1. Click anywhere in the wrong-numbered pages.
    2. Click the Insert->Page Numbers menu item.
    3. Click the Format Page Number… button.  
    4. Select Continue from previous section radio button.
    5. Click OK.
    Hope that helps.
    Thanks,
    Ethan Hua CHN
    TechNet Community Support

  • Plz help me to put two columns in JCombobox

    hi everyone...
    Please help anyone to display two column in a jComboBox.......
    I want the smple coding.....
    with regards
    Anand

    Hallo.
    Afaik, it's not possible using only classes provided in java.swing/java.awt packages.
    One possible solution is to use custom renderer. By default JList and JComboBox are rendered using single JLabel. Our renderes should use several labels put on panel as rendereing component. For information see "Providing custom renderer" in "How to Use Combo Boxes" tutorial article, please. http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html#renderer
    Sample (functional but not very nice) code is below. Sorry, I've tried to make it as short as possible.
    import java.awt.*;
    import javax.swing.*;
    public class Main extends JDialog {       
        Main() {       
            JComboBox jPiceList = new JComboBox(new Object[] {
                new Object[] { "Lemon", 0.5 },
                new Object[] { "Tee", 3 },
                new Object[] { "Pinguin", 1 },
            jPiceList.setRenderer(new MyRenderer());       
            add(jPiceList);       
            setDefaultCloseOperation(DISPOSE_ON_CLOSE);
            pack();
        public static void main(String... args)
        throws Exception {               
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    new Main().setVisible(true);
    * This class use panel with two labels to render
    * list (combobox) cell
    class MyRenderer implements ListCellRenderer {
        JComponent rendererComponent;
        JLabel labels[] = { new JLabel(), new JLabel() };
        public MyRenderer() {
            // We use panel with two labels as renderer component
            rendererComponent = new JPanel();
            rendererComponent.setLayout(new GridBagLayout());
            // Add labels
            GridBagConstraints c = new GridBagConstraints();
            c.fill = c.HORIZONTAL;
            c.weightx = 0.1;
            rendererComponent.add(labels[0],c);
            rendererComponent.add(labels[1]);
        public Component getListCellRendererComponent(
                JList list, Object value, int index,
                boolean isSelected, boolean cellHasFocus) {
            Object rowData[] = (Object[])value;
            // Prepare colors
            Color foreground = isSelected?
                list.getSelectionForeground(): list.getForeground();
            Color background = isSelected?
                list.getSelectionBackground(): list.getBackground();
            // Set panel colors
            rendererComponent.setForeground(foreground);
            rendererComponent.setBackground(background);
            // TODO Prepare and set panel border for hint
            // @see DefaultListCellRenderer#getListCellRendererComponent        
            // Now set label value and colors
            int col = 0;
            for(JLabel label : labels) {
                label.setBackground(background);
                label.setForeground(foreground);
                label.setText( String.valueOf(rowData[col++]) );
            return rendererComponent;
    }

  • Radio Button of two columns to be grouped

    Dear Experts,
    I have a table with columns like SUBSCRIBE and UNSUBSCRIBE which are wdy_boolean data type and displaying as radio buttons.
    The problem is both columns are displaying as selected and want to make these two columns as group so only one can be selected.
    I mapped cell variant with other column but its not hit.
    Please suggest.
    Thanks & Regrads
    Siva Mandapudi.

    Hello Siva,
    To achieve this functionality do the following
    1. Create one context attribute by name 'selectedValue' ( type string) under the context node of the table
    2. create two columns in the table with name SUBSCRIBE and UNSUBSCRIBE (as you did already). let the cell editor be RadioButton. Cell variants are  not required
    3. Now for the SUBSCRIBE radio button, bind the 'selectedKey' property to 'selectedValue' context attribute. And maintain the 'KeyToSelect' property as 'SUBSCRIBE'
    4. for the UNSUBSCRIBE radio button, bind the 'selectedKey' property to 'selectedValue' context attribute. And maintain the 'KeyToSelect' property as 'UNSUBSCRIBE'
    so whenever the user selects a radiobutton, corresondinf values SUBSCRIBE or UNSUBSCRIBE will be stored in the selectedValue context attribute.
    Hope this helps. you can refer the following article for more details
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d0aba847-ff58-2c10-4a98-c0fad334c5aa]
    BR, Saravanan

Maybe you are looking for

  • Want to change Pricing Procedure in the sales order

    Hello I have created a sales order. It has RVVVV9 as pricing procedure. Now I recognise that the pricing procedure in the order is wrong due to incorrect CUSTOMER PRICING PROCEDURE in Customer Master data. Now I changed the CUSTOMER PRICING PROCEDURE

  • Panel Tab as Link only (no content) in Accordian Widget?

    Is there a way for panel tabs that have no content to a) Close any other open panels when clicked b) Act as link of their own (they will navigate to separate html page rather than open accordian panel) and c) show active state when clicked I would be

  • Fields[i].Field.Value in C#

    Hello all, I am new to Crystal and am updating an application that currently uses Crystal 8.5. I have installed Crystal 2008 and am attempting to update some methods and properties so that the upgrade will be smooth and not require much change in the

  • I need a phone # to talk to a real live person about my photoshop PLEASE?????

    I need a phone # to talk to a real live person about my new photoshop elements 13 PLease??????

  • Process.waitFor() causes program to hang!

    I've successfully created a Process and run it using Runtime's exec(String path), and the kinds of processes I've successfully run have included Winzip, a WS_FTP Pro script, and a regular .bat file. I've also successfully called waitFor() on these pr