DB columns with spaces

Hi Forte Users,
This is the second time I submit the question since I just got
properly subcribed in.
We have an existing Paradox database with spaces in the column names
(eg. CONTR
FIRST NAME rather than CONTR_FIRST_NAME). When we try to select using
Forte's SQL
Select syntax we get the following error for the below SQL:
sql select
"CONTR BANET PHONE" as Phone,
"CONTR SSN" as SSN,
"CONTR COMMENTS" as Comments,
"CONTR ORIGINAL ADD DT" as OriginalAddDt
from CONTR
where "CONTR SSN" > ''
USER ERROR: OpenCursor failed for SQL statement in project
CTSConversionLibrarian, class ContractorConvLibrarian, method
_GetAll,
methodId 3, line 9, error from database is:
ODBC SQLExecute (open cursor) failed.
[Microsoft][ODBC Paradox Driver] '` CONTR BANET PHONE `' isn't a
valid
parameter name.
Class: qqdb_UsageException with ReasonCode: DB_ER_SYNTAXERROR
Detected at: qqdb_OdbcCursor::VendorOpen at 20
Last TOOL statement: method ContractorConvLibrarian._GetAll, line
1
Error Time: Mon Mar 17 11:59:32
ODBC SQLSTATE: 37000, ODBC error: -1002, Server: CTSOLD, UserName:
admin
Database Statement: select " CONTR BANET PHONE " as Phone , "
CONTR SSN "
as SSN , " CONTR COMMENTS " as Comments , " CONTR ORIGINAL ADD
DT " as
OriginalAddDt from CONTR where " CONTR SSN " >''
Exception occurred (remotely) on partition
"CTSConversionControllers_CL0_Part1", (partitionId =
EDD21522-95BA-11D0-BE45-40D33FACAA77:0x26a:0x2, taskId =
[EDD21522-95BA-11D0-BE45-40D33FACAA77:0x266:0x5.384]) in
application
"Forte Runtime", pid 150 on node W13175ADICKSON in environment
ftsdev.
Although when we send the select via the dynamic SQL objects it works.
We have
tried delimiting the column names with ", "', ', etc but nothing has
worked. If
anybody has found a solution we appreaciate hearing about it.
Thanks

This will return not just AB2 followd by spaces but also AB2 followed with anything (or nothing). That's why you still need second condition:
SQL> WITH t AS (SELECT 'AB1' AS id, 1 AS prod_id FROM dual UNION ALL
  2  SELECT 'AB2222  ', 2 FROM dual UNION ALL
  3  SELECT 'AB212345   ', 2 FROM dual UNION ALL
  4  SELECT 'AB2 ', 3 FROM dual)
  5  SELECT * FROM t
  6  WHERE id LIKE 'AB2%'
  7  /
ID             PROD_ID
AB2222               2
AB212345             2
AB2                  3
SQL> WITH t AS (SELECT 'AB1' AS id, 1 AS prod_id FROM dual UNION ALL
  2  SELECT 'AB2222  ', 2 FROM dual UNION ALL
  3  SELECT 'AB212345   ', 2 FROM dual UNION ALL
  4  SELECT 'AB2 ', 3 FROM dual)
  5  SELECT * FROM t
  6  WHERE id LIKE 'AB2%'
  7    AND RTRIM(id) = 'AB2'
  8  /
ID             PROD_ID
AB2                  3
SQL> SY.

Similar Messages

  • Align text between columns with space after paragraphs.

    I am creating a proposal with a ton of text. I used to align everything to a baseline grid with justified type and indented paragraphs. Recently, however, I was asked to change the style to left aligned text with spaces between the paragraphs. The text flows into two columns per page, but I'll be damned if I can get the text to line up. I've tried different baseline grids as well as before and after spacing. I think my issue might be trying to keep paragraph spacing as half the leading. If my copy text leading and baseline are 14 or 7 pt, will a 7 pt paragraph space after work?
    My leading and pt size is below, if anyone can point me to a solution.
    Body copy: 9 pt font/14 pt leadingSpace before/after: 3.5/3.5
    Subheaders: 10 pt font/ 14 pt leadingSpace before/after: 7/3.5
    Baseline: tried both 14 pt and 7 pt

    That's what I thought. I was taught to either have an indented second paragraph or to separate the paragraphs by half the leading of the type. Seems like it's impossible to align the text that way. A full leading separation (14 pt) between paragraphs seems excessive though.

  • SQL Query not working for column names with spaces

    Hi People..
    We have a strange situation wherein, the column name in the database table has a space inbetween like "Constant Name". While we write a JDBC statement code with the select query we get an exception for invalid syntax. It will help us in a great way if you have anything to inform us on this..
    Thanks
    Prabz

    Using case sensitive names and names with spaces in it is not a good practice.
    However, I believe the SQL standard accounts for this with quoted identifiers. I believe the syntax is
    . select "My Field1", "My Field2"
    . from "My Table'
    Have also seen the following although it might be MS Access specific.
    . select [My Field1], [My Field2]
    . from [My Table]

  • IR - Column with leading Zeros issue

    Hello,
    I've got an IR report which includes as "default report settings" 1 column with leading 0s. In order to export to Excel that column as text rather than as a numeric I followed a workaround proposed before in this forum (excel copy drops leading zeros
    In essence this workaround is to create an identifical column but in "excel text format" and display the columns depending on the request value: INSTR(NVL(:REQUEST,'YABBADABBADO'),'CSV') <> 0 for example.
    This works just fine for the default report.
    The problem arise when a user creates his own customise report that includes the mentioned column and saves it as a named report. Here, when the results are exported to excel the "excel" column does not appear.
    In fact, just hiding one of the displayed columns produces the same undesired result.
    I would appreciate any comments or suggestions.
    Many thanks
    Edited by: Javier Gil on Jul 20, 2010 7:52 AM

    I have found a better method. In your IR query:
    SELECT LPAD(v.vendor, 7, ' ') vendor,
    /*Just LPAD to a length of the column defined in the database table or to 7, whichever is greater. */
    FROM v, r
    WHERE v.VENDOR = r.VENDOR
    AND date_rcv <= to_date(:P150_CUTOFF,'yyyy/mm/dd')
    AND inv_nbr = ' '
    AND to_stores <> 'T'
    AND (V.VENDOR = RPAD(:P150_VENDOR,10,' ') OR :P150_VENDOR = 'ALL')
    When you download to Excel by Download/XLS (Request=XLS), it preserves the leading zeros.
    In the case of dates, you should LPAD 10 minimum in this format.
    LPAD(to_char(date_rcv,'MM/DD/YY'), 10, ' ') date_rcv,
    I haven’t tried it yet but I think in the case of ‘MM/DD/YYYY’, you should LPAD 12 minimum in this format.
    LPAD(to_char(date_rcv,'MM/DD/YYYY'), 12, ' ') date_rcv,
    Drawbacks of this method:
    Since the string has leading white spaces, you cannot use the filter for the ‘=’ comparison operator. Even filtering using leading white spaces will not return anything. You must use the LIKE and NOT LIKE operator instead.
    Advantages of this method over the original one I posted yesterday:
    1)     You do not have to create another column for download, just one column will suffice.
    2)     Even though the query has leading white spaces, they will not display in the IR region.
    Edited by: richardlee on Aug 5, 2010 11:10 AM
    Edited by: richardlee on Aug 5, 2010 11:16 AM

  • How to use the Columns Hidden | space in the bottom of af:panelCollection?

    Hi,experts,
    In jdev 11.1.2.3,
    I can see a row of Columns Hidden | Columns Frozen in the bottom of component af:panelCollection - pc1 which have an af:table - t1 component inside in designer view,
    and can see there is a blank row space only with "|" inside when the page is running.
    Now I want to use this blank row space such as to display row numbers for the table, so I set the property for the panelColletion as following source code:
    ==========================
    <af:panelCollection id="pc1" inlineStyle="width:1250px; height:500px;">
    <f:facet name="menus"/>
    <f:facet name="toolbar"/>
    <f:facet name="statusbar">
    <af:group id="g4"/>
    </f:facet>
    <af:table value="#{bindings.TView1.collectionModel}" var="row"
    rows="#{bindings.TView1.rangeSize}"
    emptyText="#{bindings.TView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.TView1.rangeSize}" rowBandingInterval="1"
    filterModel="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
    queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}" filterVisible="false"
    varStatus="vs"
    selectedRowKeys="#{bindings.TView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.TView1.collectionModel.makeCurrent}"
    rowSelection="single" id="t1" inlineStyle="font-size:xx-large; font-weight:bolder;">
    <af:column sortProperty="#{bindings.TView1.hints.GoodsStatus3.name}" filterable="true"
    sortable="true"
    headerText="#{bindings.TView1.hints.GoodsStatus3.label}"
    id="c42">
    <af:outputText value="#{row.GoodsStatus3}" id="ot33"/>
    </af:column>
    <f:facet name="footer">
    <af:group id="g3">
    *<af:outputText value="RowsNumber:" id="ot44"/>*
    *<af:outputText value="#{bindings.TView1Iterator.estimatedRowCount}"*
    id="ot43" partialTriggers="::pc1:t1"/>
    </af:group>
    </f:facet><f:facet name="detailStamp"/>
    </af:table>
    </af:panelCollection>
    =====================
    but when run the page there is no display for the row number, instead on the bottom of the table, there is only a blank row with "|" inside.
    How to use the Columns Hidden | Columns Frozen space in the bottom of component af:panelCollection ?
    Thanks!

    Hi, Arun
    It works.
    As in my use case, can draw an af:toolbar component into statusbar of Panel Collection facets in Structure view.
    There is still a small issue:
    cannot see the Columns Hidden|Columns Frozen component in the Structure view,
    and if drop more than one af:toolbar into statusbar, the sencond one will fall/wrap into second row, even though there is enough space on the first row (to occupy a second row in statusbar will be a waste of space), and cannot see how to adjust.
    Thank you very much!
    bao

  • How can I update a Site Column with the content of an array with javascript CSOM?

    I'm relative new to Sharepoint 2013, I'm trying to update the content of a Site column with the content of an array, I can retrieve and visualize the content of my site column, the user is able to change and save the necessary part and the changes are
    saved into an array, now I have to update the content of the site column with the content of the array, but for some kind of reasons I can't accomplish that, any suggestion/example? This is my code so far to retrieve, visualize the site column and store the
    mofication into my array.
        <body>
                <select id="dropdown" name="dropdown" onchange="optSelect()">
                    <option value="EngineType_Cylinders">EngineType_Cylinders</option>
                    <option value="EngineType_EngineCycle">EngineType_EngineCycle</option>
                    <option value="EngineType_EngineFamily">EngineType_EngineFamily</option>
                    <option value="EngineType_Euro">EngineType_Euro</option>
                    <option value="EngineType_FamilyEvolution">EngineType_FamilyEvolution</option>
                    <option value="EngineType_GasEmissionLevel">EngineType_GasEmissionLevel</option>
                    <option value="EngineType_Power">EngineType_Power</option>
                    <option value="EngineType_PowerSupply">EngineType_PowerSupply</option>
                    <option value="EngineType_Use">EngineType_Use</option>
                </select><br />
                <textarea id="textareadisplay" rows="25" cols="23"></textarea><br />
                <input type ="button" value="Update values" onclick="addItemsToColumns()" />
            </body>
    My Javascript
        $(function () {
            SP.SOD.executeOrDelayUntilScriptLoaded(Function.createDelegate(this, function () {
               var select = document.getElementById('dropdown').value;
                console.log(select);
                getSiteColumns(select);
            }), 'SP.js');
        var fieldChoice;
        var choices;
        var addFields = [];
        var slc;
        var clientContext;
        function optSelect() {
            slc = document.getElementById('dropdown').value;
            getSiteColumns(slc);
        function getSiteColumns(selection) {
           clientContext = SP.ClientContext.get_current();
            if (clientContext != undefined && clientContext != null) {
                var web = clientContext.get_web();
                fieldChoice = clientContext.castTo(web.get_availableFields().getByTitle(selection), SP.FieldChoice);
                clientContext.load(this.fieldChoice);
                clientContext.executeQueryAsync(Function.createDelegate(this, this.OnLoadSuccess), Function.createDelegate(this, this.OnLoadFailed));
        function OnLoadSuccess(sender, args) {
            choices = fieldChoice.get_choices();
            var textarea = document.getElementById("textareadisplay");
            textarea.value = choices.join("\n");
        function OnLoadFailed(sender, args) {
            alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
        function addItemsToColumns() {
            clientC = SP.ClientContext.get_current();
            var arrayForUpdate = $('#textareadisplay').val().split('\n');
            fieldChoice.set_item(, arrayForUpdate);
            fieldChoice.update();
            clientContext.executeQueryAsync(function () { }, function () { });
        function OnUpdateSuccess(sender, args) {
            var newchoices = fieldChoice.get_choices();
    My problem is on the function addItemsToColumns() please help! Thanks in advance.

    Let's look at your stylesheet -
    <style type="text/css">
    body {
    background-image: url(assets/images/Business%20Men%20In%20Reception%20Col.2.jpg);
    background-repeat: no-repeat;
    background-color: #003;
    margin-left:auto;
    margin-right:auto;
    position: relative;
    width: 960px;
    It's a good idea not to use spaces or any punctuation in your filenames when working for the web.
    #header {
    margin-left:auto;
    margin-right:auto;
    position: relative;
    width: 960px;
    #heading {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 36px;
    font-style: italic;
    font-variant: normal;
    margin-left:auto;
    margin-right:auto;
    There's no need to specify the default values (font-variant:normal) or to specify auto margins for any block element without an explicitly defined width. And wouldn't it make more sense to put the font style on the body tag, where it will inherit into the rest of the page than to restate it as you have done in the next rule?
    #bodytext {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 18px;
    line-height: 25px;
    font-variant: normal;
    width: 300px;
    #container {
    width: 960px;
    position: relative;
    margin-left:auto;
    margin-right:auto;
    .rightimg {
    float: right;
    margin-left: auto;
    padding-right: 40px;
    #heading #navbar ul li {
    padding: 30px;
    </style>
    Margin-left:auto can't work without knowing what the width of the element is....  Keep your CSS lean and targeted - it will help you to debug your layouts.

  • Handling flat file conversion with spaces inbetween  at sender side

    Hi,
       I am facing some problem in configuring the sender JMS adapter file content conversion. Please find the structure of my file below
    010AG  07/17/2007 000130800 TOZ07/17/200710:48:46
    010AU  07/17/2007 006682800 TOZ07/17/200710:48:46
    010-Record key
    AG-Metal code
    07/17/2007 -price Date
    000130800 -pricevalue
    TOZ-Unitofmessure
    07/17/200710:48:46-Unitofmessure
    there are 2spaces inbeween 1and 2nd fields and one space beween 2nd and 3rd ,one space between 3rd and 4th fileds
    I declared my source data strucute like below
    <source_MT>
    <PriceData>
         <Metal code>
          <price Date>
          <pricevalue>
          <Unitofmessure>
           <shipDate>
    </priceData>
    </source_MT>
    I am using this PDF to configure my serder communication channel https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b7
    . but i got struck up in declaring these two fields as i need deal with spaces.
    xml.NameA.fieldNames
    xml.NameA.fieldFixedLengths
    It would be great if sombody tell me how ican decalre content conversion rules for the file
    Thanks
    sudheer

    Hi,
    Please check some links on FCC.
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    File Receiver with Content Conversion
    Content Conversion (Pattern/Random content in input file)
    NAB the TAB (File Adapter)
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    How to send a flat file with various field lengths and variable substructures to XI 3.0
    Content Conversion (Pattern/Random content in input file)
    NAB the TAB (File Adapter)
    File Content Conversion for Unequal Number of Columns
    Content Conversion ( The Key Field Problem )
    The specified item was not found.
    File Receiver with Content Conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Phani

  • Export Report to flat file with spaces

    I have a report that is several columns wide. It queries data from our SQL based accounting package to create a flat file with spaces(must be accurate). When we go export the file we don't get all of the columns. Any ideas?

    Hi,
    Are you exporting to CSV or Excel File?
    Export to Excel.
    Bashir Awan

  • Querying CHAR columns with character length semantics unreliable

    Hi again,
    It appears that there is a bug in the JDBC drivers whereby it is highly unlikely that the values of CHAR columns that use character length semantics can be accurately queried using ResultSet.getString(). Instead, the drivers return the value padded with space (0x#20) characters out to a number of bytes equal to the number of characters multiplied by 4. The number of bytes varies depending on the number and size of any non-ascii characters stored in the column.
    For instance, if I have a CHAR(1) column, a value of 'a' will return 'a ' (4 characters/bytes are returned), a value of '\u00E0' will return '\u00E0 ' (3 characters / 4 bytes), and a value of '\uE000' will return '\uE000 ' (2 characters / 4 bytes).
    I'm currently using version 9.2.0.3 of the standalone drivers (ojdbc.jar) with JDK 1.4.1_04 on Redhat Linux 9, connecting to Oracle 9.2.0.2.0 running on Solaris.
    The following sample code can be used to demonstrate the problem (where the DDL at the top of the file must be executed first):
    import java.sql.*;
    import java.util.*;
    This sample generates another bug in the Oracle JDBC drivers where it is not
    possible to query the values of CHAR columns that use character length semantics
    and are NOT full of non-ascii characters. The inclusion of the VARCHAR2 column
    is just a control.
    CREATE TABLE TMP2
    TMP_ID NUMBER(10) NOT NULL PRIMARY KEY,
    TMP_CHAR CHAR(10 CHAR),
    TMP_VCHAR VARCHAR2(10 CHAR)
    public class ClsCharSelection
    private static String createString(char character, int length)
    char characters[] = new char[length];
    Arrays.fill(characters, character);
    return new String(characters);
    } // private static String createString(char, int)
    private static void insertRow(PreparedStatement ps,
    int key, char character)
    throws SQLException
    ps.setInt(1, key);
    ps.setString(2, createString(character, 10));
    ps.setString(3, createString(character, 10));
    ps.executeUpdate();
    } // private static String insertRow(PreparedStatement, int, char)
    private static void analyseResults(PreparedStatement ps, int key)
    throws SQLException
    ps.setInt(1, key);
    ResultSet results = ps.executeQuery();
    results.next();
    String tmpChar = results.getString(1);
    String tmpVChar = results.getString(2);
    System.out.println(key + ", " + tmpChar.length() + ", '" + tmpChar + "'");
    System.out.println(key + ", " + tmpVChar.length() + ", '" + tmpVChar + "'");
    results.close();
    } // private static void analyseResults(PreparedStatement, int)
    public static void main(String argv[])
    throws Exception
    Driver driver = (Driver)Class.forName(
    "oracle.jdbc.driver.OracleDriver").newInstance();
    DriverManager.registerDriver(driver);
    Connection connection = DriverManager.getConnection(
    argv[0], argv[1], argv[2]);
    PreparedStatement ps = null;
    try
    ps = connection.prepareStatement(
    "DELETE FROM tmp2");
    ps.executeUpdate();
    ps.close();
    ps = connection.prepareStatement(
    "INSERT INTO tmp2 ( tmp_id, tmp_char, tmp_vchar " +
    ") VALUES ( ?, ?, ? )");
    insertRow(ps, 1, 'a');
    insertRow(ps, 2, '\u00E0');
    insertRow(ps, 3, '\uE000');
    ps.close();
    ps = connection.prepareStatement(
    "SELECT tmp_char, tmp_vchar FROM tmp2 WHERE tmp_id = ?");
    analyseResults(ps, 1);
    analyseResults(ps, 2);
    analyseResults(ps, 3);
    ps.close();
    connection.commit();
    catch (SQLException e)
    e.printStackTrace();
    connection.close();
    } // public static void main(String[])
    } // public class ClsColumnInsertion

    FYI, this has been mentioned as early as November last year:
    String with length 1 became 4 when nls_lang_semantics=CHAR
    and was also brought up in Feburary:
    JDBC thin driver pads CHAR col to byte size when NLS_LENGTH_SEMANTICS=CHAR

  • Deleted column from spaces leaves System Prefs in limbo

    HELP! This is my work machine. Someone deleted one of my columns of Spaces, now System Prefs is only visible when Spaces is activated. Example:
    System Prefs appears in the Upper left, but not the actual window. I activate Spaces and and the windows shrink back to show my 3 spaces and the System Prefs window is floating above full size, but I can't click on it. Clicking on it only activates the Space that is below where I clicked, as if it were invisible. PLEASE HELP! How can I get my lost apps back?

    homedirectory means your home directory, the folder that looks like a house named with your short user name. Inside of that is a folder called Library, inside of that is Preferences. That is where the file is located.
    Did you go into the wrong Library?

  • Merging two columns with muliple rows in Numbers '09

    I am trying to merge two columns each with 100 rows and related data. Column one is the street address and column two have office numbers. The final result would be one column with 100 rows with address and office numbers.
    Ed Carreon

    sanpanza wrote:
    I am trying to merge two columns each with 100 rows and related data. Column one is the street address and column two have office numbers. The final result would be one column with 100 rows with address and office numbers.
    Ed Carreon
    Hi Ed,
    Use the CONCATENATE() function.
    Street address in column D, Office number in Column E
    100 Smith ST            212
    Formula: =CONCATENATE(E," ",D)
    Result:
    212 100 Smith ST
    Note the formula has three arguments, the reference to column E, a text literal (" ") containing a single space, and a reference to column D.
    Regards,
    Barry

  • Databound Drop Down List combine two or more column with customize format

    Hi all
    I am writing a project have Databound Drop Down List like example in http://www.oracle.com/technology/products/jdev/tips/mills/databound_lists.html, but my Databound Drop Down List combine 2 column with format "Name | DepartName" or something like that. I mean how can I change format when I combine two or more column display value in drop down (default is space between columns, ex: "Name DepartName")

    You could add a transient (calculated) attribute to your view object and use this one in your list binding.
    hth, Markus

  • Format a number, pad with spaces

    I want a simple way to format a number into a String, but have it padded with spaces. My code started like this:
    DecimalFormat myFormatter = new DecimalFormat("###.00");
    String output = myFormatter.format(12.5);
    The output is '12.50' when I want ' 12.50' (leading space). There's got to be an easy way to do this!
    Thanks for your help

    What you probably wanted to do was print some numbers in a column (of JTextArea's, for example) so that the decimal points line up.
    I wasted some more time and came up with the following:  String formattedNumber = numberPad(number, "###.00E0");
      static String numberPad(double number, String format) {
        int desiredDecimalPosition = format.indexOf('.');
        DecimalFormat numFormat = new DecimalFormat(format);
        String formattedNum = numFormat.format(Math.abs(number));
        formattedNum = formattedNum.replace('E', 'e');
        int exponentPosition = formattedNum.indexOf('e');
        if (exponentPosition < 0)
          exponentPosition = formattedNum.length();
        formattedNum = formattedNum.replaceFirst("e0", "");
        int decimalPosition = formattedNum.indexOf('.');
        formattedNum = (number > 0 ? " " : "-") + formattedNum;;
        if (decimalPosition < 0)
          decimalPosition = exponentPosition;
        int padding = desiredDecimalPosition - decimalPosition;
        if (padding > 0)
          formattedNum = "        ".substring(8 - padding) + formattedNum;
        return formattedNum;
      }Now it turns out that- despite the fact that I've told DecimalFormat to format precisely 2 digits to the right of the decimal, it sometimes randomly gives me 3, and (less often) 1!
    All this trouble just to try save 16kB of Henrik Bengtsson's sprintf in my jar file...

  • Making columns with a long list

    I preformed a query and got a long list.  The output doesn't take up that much horizontal space and so I'd like to make two columns with it to save on scrolling.  Is that possible with CSS?
    Here's my list looks like this:
    Name: Snowfresh
    Brewer: Edelweiss
    Overall: 3.5
    Name: Zepplin
    Brewer: Leibringer
    Overall: 3
    And the code:
    <p>German List:</p>
    <table width="182" height="145" border="0">
      <?php
    //Puts it into an array
    while($info = mysql_fetch_array( $data )) {
    //Outputs the image and other data ?>
      <tr>
        <td><?php echo  "<img src=http://localhost/beer_diary/images/beer_tasted_profile/".$info['image_id'] ."><br/>";?></td>
        <td><?php echo "<b>Name:</b> ".$info['beer_name']. "<br> ";
        echo "<b>Brewer:</b> ".$info['brewer']. "<br> ";
        echo "<b>Overall:</b> ".$info['overall_id']; }?></td>
      </tr>
    </table>
    <p> </p>

    Yea, CSS3 columns are about as helpful as CSS3 regions at this point.  I'd recommend this article for turning a list into columns:
    http://www.alistapart.com/articles/multicolumnlists/

  • Can a number column have spaces in it?

    Dear All,
    Summing the amount column gives me different totals when i do trim or to_number.
    Select sum(amount) from premium_transaction
    where load_date = '18-jun-2007';
    2220732.34
    Select sum(to_number(amount)) from premium_transaction
    where load_date = '18-jun-2007'
    2226892.63
    Select sum(trim(amount)) from premium_transaction
    where load_date = '18-jun-2007'
    2226892.63
    I am assuming that some of the values in the amount column has spaces in it. If it has spaces wouldn't sum function convert implicitly to number before computing.
    Please shed some light on this.
    Thank you,
    Siri

    I am sorry for the late response. I was pulled into bunch of other stuff.
    Thanks so much for the feedback. The analytic function along with dump function helped me in tracking down the actual rows and values that are behaving differently, although i couldn't figure out the pattern of the behavior.
    Below are the sample data:
    SELECT premium_amount,
           TO_NUMBER(premium_amount),
           TRIM(premium_amount)
      FROM truecomp_premium_tbl
    WHERE policy_no IN (2938891, 2942878, 2937642)
       AND data_source = 'TAPPDOUT'
    PREMIUM_AMOUNT     TO_NUMBER(PREMIUM_AMOUNT)     TRIM(PREMIUM_AMOUNT)
    -9.32     -9.32     -0000009.32
    -30.04     0.00     -0000000
    -67.46     0.00     -0000000
    SELECT policy_no,
           premium_amount,     
           SUM(premium_amount) OVER (ORDER BY ROWNUM) AS the_sum,     
           SUM(TO_NUMBER(premium_amount)) OVER (ORDER BY ROWNUM) AS the_sum2,     
           SUM(TRIM(premium_amount)) OVER (ORDER BY ROWNUM) AS the_sum3,
           DUMP(premium_amount) AS the_dump,
           DUMP(premium_amount,1017) AS the_dump
      FROM (SELECT policy_no, ROWNUM rn,
                   premium_amount
              FROM webclient.truecomp_premium_tbl
             WHERE commission_date = TO_DATE('18-June-2007')
               AND data_source = 'TAPPDOUT') t
    ORDER BY rn
    POLICY_NO     PREMIUM_AMOUNT     THE_SUM     THE_SUM2     THE_SUM3     THE_DUMP                                            THE_DUMP_1
    2,916,092             -29.58      -29.58       -29.58       -29.58     Typ=2 Len=7: 59,101,101,101,72,43,102     Typ=2 Len=7: ;,e,e,e,H,+,f
    2,924,967             -15.11      -44.69       -44.69       -44.69     Typ=2 Len=7: 59,101,101,101,86,90,102     Typ=2 Len=7: ;,e,e,e,V,Z,f
    2,930,793            -188.32     -233.01      -233.01      -233.01     Typ=2 Len=7: 59,101,101,100,13,69,102     Typ=2 Len=7: ;,e,e,d,^M,E,f
    2,935,006            -469.00     -702.01      -702.01      -702.01     Typ=2 Len=6: 59,101,101,97,32,102     Typ=2 Len=6: ;,e,e,a, ,f
    2,937,642              -9.32     -711.33      -711.33      -711.33     Typ=2 Len=7: 59,101,101,101,92,69,102     Typ=2 Len=7: ;,e,e,e,\,E,f
    2,938,891            -30.04     -743.42      -711.33      -711.33     Typ=2 Len=7: 59,101,101,101,70,197,102     Typ=2 Len=7: ;,e,e,e,F,c5,f
    2,942,878             -67.46     -812.93      -711.33      -711.33     Typ=2 Len=7: 59,101,101,101,32,255,102     Typ=2 Len=7: ;,e,e,e, ,ff,f
    2,943,529            -175.68 -988.61      -887.01      -887.01     Typ=2 Len=7: 59,101,101,100,26,33,102     Typ=2 Len=7: ;,e,e,d,^Z,!,f
    2,946,041           -127.88-1,116.49-1,014.89 -1,014.89     Typ=2 Len=5: 61,100,74,13,10            Typ=2 Len=5: =,d,J,^M,f
    2,955,186             -21.60-1,138.09-1,036.49 -1,036.49     Typ=2 Len=7: 59,101,101,101,80,41,102     Typ=2 Len=7: ;,e,e,e,P,),f
    2,957,617            -25.32-1,163.41-1,061.81 -1,061.81     Typ=2 Len=7: 59,101,101,101,76,69,102     Typ=2 Len=7: ;,e,e,e,L,E,f
    2,957,827             -52.20-1,215.61-1,114.01 -1,114.01     Typ=2 Len=7: 59,101,101,101,49,81,102     Typ=2 Len=7: ;,e,e,e,1,Q,f
    Thank you,
    Siri                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Encountered this error message 500   Internal Server Error at EP

    Hi,    I have encountered this error at EP, when trying to approve (cancelled leave request) in the EP. Can please advise how to correct this webdynpro error? Failed to process request. Please contact your system administrator. [Hide] Error Summary W

  • Data signatures

    I'm in troubles. I've a pdf form, made with livecycle, where I've put a submit by email button with data signature. The reicever can verify the signature visually by signature tab. There is a way to verify data signatures automatically, by javascript

  • Where can I get a free christmas template for Mail?

    I would like to send out an invitation for a Christmas luncheon and would like a template with a Christmas theme.  Can you tell me how to get one? Thank you

  • New Numbers crashes by every start

    I updated to the new numbers, pages and keynote. i also updated to mavericks before. Now when i start one of the iworks app, they crash instantly. i tried to reinstall the apps, but nothing changed.

  • Use an additional cost in the cost calculation

    How to make to use one or more additional costs during the calculation of the cost of a finished product Could you help me, please. Thank you. Jean-Marc