Why is this simple query failing?

Select T0.[docentry], charindex('-', T0.[U_I_LongDesc])
from [dbo].[RDR1] T0
Gives "Must specify table to select from".
This works fine (without charindex):
Select T0.[docentry], T0.[U_I_LongDesc]
from [dbo].[RDR1] T0
Also the original query works fine in MS SQL Server Management Studio.
What behind-the-scenes garbage is SAP doing now (like adding "FOR BROWSE" to every select)?

Thanks Gordon.  You're right it does work on system fields.  After some further digging it appears the problem must be that all alphanumeric UDF's are created as nvarchar(max) in SQL Server, regardless of the length you specify.
This seems to be a bug in SAP.  The charindex query above fails on all UDF's.
I defined U_I_LongDesc as Alphanumeric (100) in SAP.  Here's what I see defined in SQL Server Management Studio:
Dscription     (nvarchar(100), null)             /* SAP field with correct length */
U_I_LongDesc (nvarchar(max), null)        /* UDF.  Gets set to max for all Alphanumeric fields */

Similar Messages

  • Trying to optimize this simple query

    Hi,
    I am trying to optimize this simple query but the two methods I am trying actually make things worse.
    The original query is:
    SELECT customer_number, customer_name
    FROM bsc_pdt_account_mv
    where rownum <= 100
    AND Upper(customer_name) like '%SP%'
    AND customer_id IN
    SELECT cust_id FROM bsc_pdt_assoc_sales_force_mv
    WHERE area_identifier IN (
    SELECT area_identifier FROM bsc_pdt_assoc_sales_force_mv
    WHERE ad_identifier = '90004918' or rm_identifier = '90004918' or tm_identifier = '90004918'
    The result set of this query returns me the first 100 rows in 88 seconds and they are all distinct by default (don't know why they are distinct).
    My first attempt was to try to use table joins instead of the IN conditions:
    SELECT
    distinct -- A: I need to use distinct now
    customer_number, customer_name
    FROM bsc_pdt_account_mv pdt,
    bsc_pdt_assoc_sales_force_mv asf,
    SELECT distinct area_identifier FROM bsc_pdt_assoc_sales_force_mv
    WHERE ad_identifier = '90004918' or rm_identifier = '90004918' or tm_identifier = '90004918'
    ) area
    where
    area.area_identifier = asf.area_identifier
    AND asf.cust_id = pdt.customer_id
    AND Upper(customer_name) like '%SP%'
    AND rownum <= 100 -- B: strange when I comment this out
    order by 1
    I dont understand two things with this query. First issue, I now need to put in the distinct because the result set is not distinct by default. Second issue (very strange), when I put the rownum condition (<100) I get two rows in 1.5 seconds. If I remove the condition, I get 354 rows (whole result set) in 326 seconds.
    My second attempt was to use EXISTS instead of IN:
    SELECT
    customer_number, customer_name
    FROM bsc_pdt_account_mv pdt
    where Upper(customer_name) like '%SP%'
    AND rownum <= 100
    AND EXISTS
    select 1 from
    bsc_pdt_assoc_sales_force_mv asf,
    SELECT distinct area_identifier FROM bsc_pdt_assoc_sales_force_mv
    WHERE ad_identifier = '90004918' or rm_identifier = '90004918' or tm_identifier = '90004918'
    ) area
    where
    area.area_identifier = asf.area_identifier
    AND asf.cust_id = pdt.customer_id
    This query returns a similar distinct result set as teh original one but takes pretty much the same time (87 seconds).

    The query below hangs when run in TOAD or PL/SQL Dev. I noticed there is no rows returned from the inner table for this condition.
    SELECT customer_number, customer_name
    FROM
    bsc_pdt_account_mv pdt_account
    where rownum <= 100
    AND exists (
    SELECT pdt_sales_force.cust_id
    FROM bsc_pdt_assoc_sales_force_mv pdt_sales_force
    WHERE pdt_account.customer_id = pdt_sales_force.cust_id
    AND (pdt_sales_force.rm_identifier = '90007761' or pdt_sales_force.tm_identifier = '90007761') )
    ORDER BY customer_name
    -- No rows returned by this query
    SELECT pdt_sales_force.cust_id
    FROM bsc_pdt_assoc_sales_force_mv pdt_sales_force
    WHERE pdt_sales_force.rm_identifier = '90007761' or pdt_sales_force.tm_identifier = '90007761'

  • Why did this mini-video fail to go viral?

    Why did this mini-video fail to go viral?
    I created this short motion graphics project in AE and PR Pro for my hearing protection client in Switzerland for their "Sleep Plugs" product. She asked for a European look and feel, where tasteful nudity is common in advertising. Our target demographic is males, aged 18-35. The client posted it at her Zurich-based company’s website and hoped it would spread virally. We believed there was actually a good chance of that happening since we have three main elements of a viral video: sexiness, surprise, and humor. However, the number of views was much lower than we had hoped.
    Please watch the video (it's just 30 seconds) before reading my comments and questions below so that I don't influence your first impression. 
    https://vimeo.com/63794871
    Password: GUNN
    Please give me your thoughts on these questions: 
    1. It was my intention to set the viewer up to expect that the couple was going to have sex, then to provide some unexpected humor when she goes to sleep and snores instead. Did you think that was funny?
    2. In an ideal world, this would have been live video, but, for budget constraints, and since there would've been very little movement in a video anyway, we went for a graphic approach, basically a pan across a wide, horizontal photo, with music bed and voiceovers, and logo/tagline at the end. Do you think this was an acceptable compromise?
    3. With the outtake-style photos at the end, It was my intention to add a touch of silliness and show that we are not taking ourselves too seriously. Do you think that worked?
    4. What do you think of the voiceovers?
    5. What do you think of the choice of music? (I wish we could have had Marvin Gaye's "Let's Get It On"! altho, not sure how big that is with 18-35 year old males in Switzerland.)
    6. These next two may be the most important questions: the context the video was presented in. My intention was to have the viewer sucked in by the sexy partial image and want to know more, thinking "What is this? . . . a  joke? . . . porn?!?" (remember, they are 18-35 yr old males!) and watch it long enough to get to the joke and the appearance of the product. (I know I have watched several videos that turned out to be ads, but they were so entertaining and well done, I did not mind. In fact, I admired how they sucked me in!)
    My client posted the link to the video on her company Facebook page, with the comment "Check out our new video." The link led to her company's official website and the video appeared on a page surrounded by other text, photos, and the company's name. It is my opinion that this took away some of the incentive to watch the video, since now the viewer already knows it is going to be an advertisement. Would you agree?
    7. I feel the video should've been presented "in a vacuum", so the viewer would have no fore-knowledge of what it was or why their buddy forwarded it to them. I think links to most viral videos lead to YouTube or Vimeo (not to a company website.)  What do you think would be the best method of distribution for this little video?
    And, if you have any other thoughts, please let me know.
    Thank you for your time and consideration,
    --Carol Carol Gunn
    Gunn Graphics
    Austin, TX
    www.gunngraphics.biz
    www.linkedin.com/in/carolgunn 

    Hi Carol,
    I have to agree with Jim.  A still image screams 'cheap'.  If I didn't watch the video with the intention of providing feedback, I would have tuned out after about 5 seconds, before even getting to the 'punch line'.  With so many bad videos on YouTube, people's attention span have been reduced to mere seconds.  If we don't like what we see in the first few seconds, we tune out and click on another link.  I imagine many people who watch this video never get to the end since the moment they see it's a still image that probably won't change to live action, they think 'cheap' and tune out.
    For a video to go viral, people have to want to pass it on to all of their contacts.  For this to happen, they have to imagine that others will thank them for sharing the video, not roll their eyes and ask 'Why are you wasting my time with this?'  "sexiness, surprise, and humor" are not enough for a video to go viral.  You also need great execution.
    3. Didn't work for me.  It makes it look like the commercial and product are a joke, especially hearing the guy's laughter in the background.  First the commercial would have to sell us on why the product is worthwhile/needed, which is doesn't.
    4. The girl's voice is sexy, but it does not match the visuals, thus it ends up sounding fake and unnatural.
    The guy's tatoo is a huge distraction.  Is it a human heart?  Why is it there?
    Low budget doesn't have to mean a cheap look.  Unfortunately the titles and the transitions (push, ripple dissolve) at the end also scream cheap.  Nobody uses these kinds of effects on TV, so it's best to leave these for home videos and out of any professional work.  Push transitions can work, but usually only if it's a quick transition, around 3-8 frames long.  Slow push transitions scream 'Power Point', which in turn screams 'cheap'.
    Hope this helps!
    Cheers

  • This simple query takes 2 hrs. How to improve it??

    This is a simple query. It takes 2 hours to run this query. Tables have over 100,000 rows.
    SELECT
      TO_CHAR(BC_T_ARRIVALS.ARR_FLIGHT_DATE,'DD/MM/YYYY') ARR_FLIGHT_DATE
    FROM
      BC_T_ARRIVALS a,  BC_M_FLIGHTS f
    WHERE
      a.ARR_FLT_SEQ_NO = f.FLT_SEQ_NO AND
      f.FLT_LOC_CODE       = PK_BC_R_LOCATIONS.FN_SEL_LOC_CODE('BANDARANAYAKE INTERNATIONAL AIRPORT')  AND TO_CHAR(a.ARR_FLIGHT_DATE,'YYYY/MM/DD') >= TO_CHAR(:P_FROM_DATE,'YYYY/MM/DD')
    AND TO_CHAR(a.ARR_FLIGHT_DATE,'YYYY/MM/DD') <= TO_CHAR(:P_TO_DATE,'YYYY/MM/DD')
    UNION
    SELECT
      TO_CHAR(BC_T_DEPARTURES.DEP_FLIGHT_DATE,'DD/MM/YYYY') DEP_FLIGHT_DATE
    FROM
      BC_T_DEPARTURES d, BC_M_FLIGHTS f
    WHERE
      d.DEP_FLT_SEQ_NO = BC_M_FLIGHTS.FLT_SEQ_NO  AND
      f.FLT_LOC_CODE = PK_BC_R_LOCATIONS.FN_SEL_LOC_CODE('BANDARANAYAKE INTERNATIONAL AIRPORT')  AND TO_CHAR(d.DEP_FLIGHT_DATE,'YYYY/MM/DD') >= TO_CHAR(:P_FROM_DATE,'YYYY/MM/DD')
    AND TO_CHAR(d.DEP_FLIGHT_DATE,'YYYY/MM/DD') <= TO_CHAR(:P_TO_DATE,'YYYY/MM/DD')As I see it, this query will not make the DB engine use any indexes since expressions are used in the 'WHERE' clause. Am I correct?
    How can we improve the performance of this query???

    Maybe (do you really need to convert dates to chars ? That might prevent index use ...)
    select f.BC_M_FLIGHTS,
           TO_CHAR(BC_T_DEPARTURES.DEP_FLIGHT_DATE,'DD/MM/YYYY') DEP_FLIGHT_DATE,
           TO_CHAR(BC_T_ARRIVALS.ARR_FLIGHT_DATE,'DD/MM/YYYY') ARR_FLIGHT_DATE
      from (select BC_M_FLIGHTS,
                   FLT_LOC_CODE
              from BC_M_FLIGHTS
             where FLT_LOC_CODE = PK_BC_R_LOCATIONS.FN_SEL_LOC_CODE('BANDARANAYAKE INTERNATIONAL AIRPORT')
           ) f,
           BC_T_ARRIVALS a,
           BC_T_DEPARTURES d
    where f.BC_M_FLIGHTS = a.ARR_FLT_SEQ_NO
       and f.BC_M_FLIGHTS = d.DEP_FLT_SEQ_NO
       and (TO_CHAR(a.ARR_FLIGHT_DATE,'YYYY/MM/DD') between TO_CHAR(:P_FROM_DATE,'YYYY/MM/DD') and TO_CHAR(:P_TO_DATE,'YYYY/MM/DD')
        or  TO_CHAR(d.DEP_FLIGHT_DATE,'YYYY/MM/DD') between TO_CHAR(:P_FROM_DATE,'YYYY/MM/DD') and TO_CHAR(:P_TO_DATE,'YYYY/MM/DD')
           )Regards
    Etbin
    Edited by: Etbin on 2.3.2012 18:44
    select column list altered

  • Cant get this simple query!

    Hi Guys,
    There is this simple requirement of writing a query which will select most of the columns from a table but grouped on 3 columns from same table.
    Table Str:
    co11 col2 col3 col4 col5 col6 col7 col8 col9 col10
    Required :
    Group By: Col9, col10
    Columns to be selected : co11 col2 col3 col4 col5 col6 col7 col8
    I know there is something simple that I am missing.
    any help will be appreciated.
    Thanks!

    Hi,
    This produces the output you requested fro the data you posted:
    SELECT       MIN (col1)
    ,       MIN (col2)
    ,       MIN (col3)
    ,       MIN (col4)
    ,       MIN (col5)
    ,       MIN (col6)
    ,       MIN (col7)
    ,       MIN (col8)
    ,       col9
    ,       col10
    FROM       str
    GROUP BY  col9
    ,       col10
    ;So does this
    WITH     got_rnum     AS
         SELECT  str.*
         ,     ROW_NUMBER () OVER ( PARTITION BY  col9
                             ,             col10
                             ORDER BY        col1
                             ,             col2
                             ,             col3
                             ,             col4
                             ,             col5
                             ,             col6
                             ,             col7
                             ,             col8
                             )     AS rnum
         FROM     str
    SELECT     col1
    ,     col2
    ,     col3
    ,     col4
    ,     col5
    ,     col6
    ,     col7
    ,     col8
    ,     col9
    ,     col10
    FROM     got_rnum
    WHERE     rnum     = 1
    ;With the sample data you posted, the two queries produce the same results.
    With some other data, the two queries will produce different results.

  • Why does this numeric compare fail in MDX?

    Given the MDX query below you can see that under certain circumstances MDX fails to see the .22 is not less than .22; what's going on here?
    WITH
    MEMBER Measures.X1
    as
     1.0 + ((22.0 - 100.0)/100.0),
    FORMAT_STRING = '.00'
    MEMBER Measures.Y1
    as
     IIF(Measures.X1 < .22,
    'Fail', 'Pass')
    MEMBER Measures.X2
    as
     (22.0/100.0),
    FORMAT_STRING = '.00'
    MEMBER Measures.Y2
    as
     IIF(Measures.X2 < .22,
    'Fail', 'Pass')
    MEMBER Measures.X3
    as
      StrToValue(1.0 + ((22.0 - 100.0)/100.0)),
    FORMAT_STRING = '.00'
    MEMBER Measures.Y3
    as
     IIF(Measures.X3 < .22,
    'Fail', 'Pass')
    MEMBER Measures.Z
    as
     IIF(.22 < .22,
    'Fail', 'Pass')
    SELECT{[Measures].[X1],
    [Measures].[Y1],
    [Measures].[X2],
    [Measures].[Y2],
    [Measures].[X3],
    [Measures].[Y3],
    [Measures].[Z]} ON 0
      FROM [APM]
    Thanks,
    David Skelton

    I'm sure you are correct... thanks for the quick response...
    Given what you've said I think this results for Y1 in this query are misrepresented:
    WITH
    MEMBER Measures.Y1 as
     1 + ((22 - 100)/100), FORMAT_STRING = '.0000000000000000000000000000'
    MEMBER Measures.Z2 as
      Y1 - .22, FORMAT_STRING = '.0000000000000000000000000000'
    SELECT{[Measures].[Y1],
           [Measures].[Z2]} ON 0
      FROM [APM]

  • I have spent dozens of hours over the last years trying to find out why I get the error message "...not authorized to copy" when I try and drag a download from ADE to my nook.  Why is this simple procedure not foolproof.  There are hundreds of people sear

    Typical - what on earth am I doing at this page and why was I sent here
    Now I get a message saying there is an error and my content could not be saved
    What is wrong with you people?
    How can you make such a simple operation so complicated that it is festooned with error messages
    LEARN THE MEANING OF FOOLPROOF YOU IMBICILES

    Unfortunately you've discovered too late how important it is to maintain an up-to-date backup of your iTunes library (and all other data of value).  You could, before wiping the drive, have considered making use of a commercial data recovery service that could (albeit at considerable cost) have extracted your library from the hard disk, even if virus infected.
    In the absence of that option, you will need to restore the content of your library from its original sources:
    Depending on your location, you may be able to re-download any iTunes Store purchases that are still available on the Store
    Likewise, most digital purchases from Amazon (including auto-rip copies of purchased CDs) should be available from the Amazon Cloud and via the Amazon Music application - the same may be true of other commercial sources for digital downloads
    Content imported from your CDs will have to imported again
    The specific situation that you describe regarding the music imported from your friend's external HDD suggests that either the source is badly organized and/or originates from a source other than iTunes (other media players may use alternative tags for information like artist, title, album, etc. that are not wholly consistent with how iTunes handle these).  Without details of the issues you're seeing it is difficult to suggest a remedy other than going through the media album-by-album, track-by-track, and correcting the inconsistencies.
    In the absence of a backup or access to the original library data there is no option other than painstakingly recreating your library as described above.  As you do so, you'll now realize how important creating and maintaining backups are - in my case I have at all times three separate duplicates of my library, in two different locations, where none is ever more than a week old compared to the content of my master library.

  • Topic: Why has this simple midlet stopped working?!!

    I have a midlet which was working fine, but now gives the error, 'No such method getTitle.()Ljava/lang/String;'.
    I have now created a very simple test midlet that includes the problematic line of code:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class GetTitleTestMIDlet extends javax.microedition.midlet.MIDlet implements CommandListener {
        public void startApp() {
            Form f = new Form("Test");
            f.setCommandListener(this);
            Command com = new Command("OK", Command.OK, 0);
            f.addCommand(com);
            Display.getDisplay(this).setCurrent(f);
        public void pauseApp() {
        public void destroyApp(boolean unconditional) {
        public void commandAction(Command c, Displayable d) {
            String cLabel = c.getLabel();
            String dTitle = null;
            if (d instanceof Screen) {
                dTitle = ((Screen)d).getTitle(); //****** THIS LINE IS THE PROB
            else {
                dTitle = "(Canvas)";
    }It is the line, 'dTitle = ((Screen)d).getTitle();' that is giving the error message. It happens both on Sun ONE Studio 4 and with JBuilder with Nokia and Siemens emulators.
    Everything used to work fine. All I have done since it last worked is create a couple of JApplets and JFrame classes in Sun ONE Studio 4. I have noticed that the 'Explorer [Filesystems]' view in Sun ONE Studio 4 has changed in appearance since the midlet last worked, but there are no other clues.
    It must be something to do with my setup rather than my code.
    Can anyone please help!
    Cheers,
    James

    The problem was with the compiler. It stopped working for some reason... Once I downloaded Wireless Toolkit 1 again, and compiled again, it worked!
    Not sure why it stopped working. The only unusual thing I had done prior to it going wrong was adding several emulator instances in SUN One Studio 4 - maybe it didn't like that.

  • What is wrong with this simple query

    Hi,
    I am writting a simple code just to get the maximum no values from a database table
    The query is
    ResultSet = stm.executeQuery("SELECT MAX(column_name) FROM Database_table ");
    it seems to be a simple one but i am getting the message
    column not found
    Please answer soon

    Well, it depends on how your resultset is retrieving the results. If you retrieve by column name, then that's your problem. You need to do something like this:
    ResultSet = stm.executeQuery("SELECT MAX(column_name) AS myColumnName FROM Database_table ");
    String myResult = ResultSet.getString(myColumnName);Using MAX, COUNT, etc, will return your result with a mangled or no actual column name to retrieve from. Optionally, you can solve your problem by:
    ResultSet.getString(1);Michael Bishop

  • Why is this simple PDF file not searchable?!? Someone please help!!

    Hi all!
    I DESPERATELY need to figure out why this PDF file is not searchable, and how to fix it. It's from a teacher of mine at my university, and basically I want to be able to make all of the PDF's she gives out searchable since there is a lot of content. I'm running Adobe Reader 11, ver. 11.0.10, on an early 2014 Macbook Air running OS X Yosemite ver. 10.10.1. I've tried using the search function, the advanced search function, and I've looked for the option to turn OCR on (couldn't find it)....and none of these attempts have resolved the issue.
    The weird thing about this is I've NEVER had a problem searching thru ANY PDF on this Mac -- including really, really complex lecture PDFs from other professors -- so I can't figure out why these are any different. Is it because this PDF was exported out of a Powerpoint presentation (I think)? Or something else? Does anyone have any ideas?
    Lastly, I'm attaching a screenshot (below) so that if any of you give me any directions ("Look under the [such and such] toolbar"), you can see first exactly what I see.
    THANKS guys for any input and consideration!
    -R

    There are some issues with this PDF file.  It's not tagged but even still it has some real problems.  I checked the file to see what created it and it was something called "Wine Postscript Driver" and the PDF Producer was "GPL GhostScript 9.10"  When you check the file in Preflight then you will begin to understand that this is a poorly created PDF file.  Here is a bit of the PDF Syntax report:

  • Why is this FMS query not working for me?

    There is already a FMS query that works in Delivery Pane. The FMS field there is a user defined field called U_NWR_Bin, rom table DLN1. This works fine and it is alpha numeric 10 characters. This FMS is defined in Marketing Documents rows.
    I created another user defined field called U_Bin in table PKL1 for picklist row level. This user defined field shows up in FMS in PickList Pane.
    I created a query - SELECT $[DLN1.U_NWR_Bin].
    I then assigned above query through Shift F2 to Picklist Pane field U_Bin.
    The above query is not executed on clicking the lens it gives the error - Internal error -1004 occured message 131-183.
    What am I doing wrong? Please help. Thanks.

    Hi,
    FMS query can only access the current form. $[DLN1.U_NWR_Bin\] is not valid for PickList Pane.
    Thanks,
    Gordon

  • Why does this simple example output such result?

    for example:
    public class ArithmeticDemo {
    public static void main(String[] args){
    double x = 27.475;
    double y = 7.22;
    System.out.println("Subtracting...");
    System.out.println(" x - y = " + (x - y));
    above example output below:
    Subtracting...
    x - y = 20.255000000000003
    it should output below result:
    Subtracting...
    x - y = 20.255
    who can tell me why?
    who can help me?
    thanks

    hi
    im not precise, but the reason for above result should be internal representation of double.
    there is something called precision when dealing with floats and double.
    if u really bothered about only three digit precision try this!
    DecimalFormat df = new DecimalFormat(".000");
    System.out.println(" x - y = " + df.format((x - y)));
    as my all time favorite author, Kathy sierra used to say,
    if u really want to fall asleep try reading how doubles are represented in system, and how they are manipulated.
    anyway, if u find anything regarding this please lets all know.
    thanks & regards
    vijay

  • Why is this flawed query working fine? -Answered

    DB Version:10gR2
    I wanted to reproduce the flaw of using rownum when used with an ORDER BY clause.
    Because ORDER BY is evaluated at last (after ROWNUMs are generated), the below query should give wrong result set most of the time.
    But the following query
    select ename,join_date
    from test
    where rownum<4
    order by join_dateis giving me the correct result. So , when will this query start giving wrong results?
    alter session set nls_date_format='DD-MM-YYYY HH:MI:SS';
    SELECT SYSDATE FROM DUAL;
    SYSDATE
    15-12-2008 11:40:30
    create table test
    (ename varchar2(15),
    join_date date);
    insert into test values('JAMES',SYSDATE);
    insert into test values('CHESTER',SYSDATE);
    insert into test values('SUNITA',SYSDATE);
    insert into test values('GARRY',SYSDATE);
    insert into test values('KAREN',SYSDATE);
    insert into test values('ABDUL',SYSDATE);
    insert into test values('YING',SYSDATE);
    set lines 400
    select * from test;
    ENAME           JOIN_DATE
    JAMES           15-12-2008 11:41:21
    CHESTER         15-12-2008 11:41:40
    SUNITA          15-12-2008 11:41:56
    GARRY           15-12-2008 11:42:17
    TIM             15-12-2008 11:42:44
    KAREN           15-12-2008 11:52:46
    ABDUL           15-12-2008 11:53:01
    YING            15-12-2008 11:53:18
    CHAICE          15-12-2008 12:14:27
    THELMA          15-12-2008 12:14:54
    select ename,join_date
    from test
    where rownum<4
    order by join_date;
    ENAME           JOIN_DATE
    JAMES           15-12-2008 11:41:21   --correct
    CHESTER         15-12-2008 11:41:40   --correct     
    SUNITA          15-12-2008 11:41:56   --correctEdited by: Nichols on Dec 15, 2008 3:37 AM
    Edited by: Nichols on Dec 15, 2008 3:56 AM
    Edited by: Nichols on Dec 15, 2008 4:09 AM

    Nichols wrote:
    I am an Indian . With Indian login names my questions were ignored a lot of times especially in 'Database-General'?
    Who knows, we might have OTN members who are racists, Ultra-nationalists, people frustrated with outsourcing,...etc.
    I had felt that 'Database-General' ace SYBRAND was one such user.But he is fine now.
    When whiteman runs out money i don't know what he can become. No one knows coz they were never poor in the last 50 years.
    I for one am so used to poverty.
    Edited by: Nichols on Dec 15, 2008 4:28 AMComplete nonsense, imho. This is still mainly a technical forum. My impression is that the only thing that influences the quality of the forum answers is the quality of the initial question. In this thread your question was good. it had almost all the necessary information and it was ask in a precise and orderly manner.
    I myself answer nice questions in a nice way and rude questions ("very urgent!!!!") in a rude way. I know better, but sometimes I can't resist. Maybe check some of your older question, and think if you would have asked them differently with the knowledge you have now.
    Of cause there are intra cultural differences, especially in the way how people speak and write. Some nations/cultures are more direct in their answers (e.g. germans), while others feel a need for an extra portion of politeness (e.g. indians). It is a good thing to be aware of such differences and not to misinterprete this as raceism or other silly stuff.

  • Wat is wrong with this simple query ???

    I am using 10gxe.
    Below is the query which is not working
    Whenever i am executing it a pop up windows is coming up
    and asking me to enter bind variables ..wat shall i do ???
    Here is a prntscrn of the issue .
    http://potupaul.webs.com/at.html
    VARIABLE g_message VARCHAR2(30)
    BEGIN
    :g_message := 'My PL/SQL Block Works';
    END;
    PRINT g_message
    Edited by: user4501184 on May 18, 2010 12:42 AM

    sqlplus "system/sm@test"
    SQL*Plus: Release 10.2.0.2.0 - Production on Tue May 18 12:45:05 2010
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> VARIABLE g_message VARCHAR2(30)
    SQL> BEGIN
    2 :g_message := 'My PL/SQL Block Works';
    3 END;
    4 /
    PL/SQL procedure successfully completed.
    SQL> PRINT g_message;
    G_MESSAGE
    My PL/SQL Block Works
    SQL>

  • Why doesnt this simple thing work?

         * Increment the display value by one, rolling over to zero if the
         * limit is reached.
        public void increment()
            ++ value;  
            if(value = limit)
                value = 0;
    }I won't this method to do what the method header description says but when compiles it says "incompatible types - found int but expected boolean".

    if(value = limit)You're using the wrong equal sign operator. This code is trying to set the value of "value" equal to "limit", an operation that returns an int, to my knowledge. This is because the '=' operator is Java's assignment operator. You want java's comparison operator, '=='. If you use:
    if(value == limit)your thing should compile just fine. Whether it works or not, I can't say =)
    SheepNine

Maybe you are looking for