Why there is a conflict in this block of codes? thanks.

//Assume elliptical references are allowed
Employee : Record
Name : Record
first : String (1..20); // First name
last : String (1..20); // Last name
End Record
count : Integer; //Number of tardies
End Record
Begin
count : int; //Total count of tardies
Bob : Employee; //Declaration of employee Bob
With Bob
count += count;
End With
Sally : Employee; // Declaration of employee Sally
With Sally
count += count;
End With
End

May be it has something to do with the variables scope in this language. Any idea whether the expression:
count += count;
references the count variable of the Emploee record or the main program? Or both of them? If so they are of different type.

Similar Messages

  • Why there is a error in this query ?

    why there is a error in this query ?
    declare
    v_exist pls_integer;
    v_search varchar2(255) := '175';
    v_sql varchar2(255);
    begin
    for s in
    (select table_name, column_name
    from user_tab_columns
    where data_type like '%CHAR%'
    order by table_name, column_name)
    loop
    v_sql := 'select count(*) from '||s.table_name||
    ' where instr('||s.column_name||',' || CHR(39)|| v_search|| CHR(39) ||') > 0';
    execute immediate v_sql into v_exist;
    if v_exist > 0 then
    dbms_output.put_line(s.table_name||'.'||s.column_name||' matches the string.');
    end if;
    end loop;
    end;
    Error:
    The following error has occurred:
    ORA-00933: SQL command not properly ended
    ORA-06512: at line 14
    Edited by: user575089 on Dec 23, 2009 4:14 AM
    Edited by: user575089 on Dec 23, 2009 4:14 AM

    See, Right now i am in schema and see below :
    set serveroutput on;
    declare
    v_exist pls_integer;
    v_search varchar2(255) := 'SCOTT';
    v_sql varchar2(255);
    begin
    for s in
    (select '"'||table_name||'"' table_name,'"'||column_name||'"' column_name
    from user_tab_columns
    where data_type like '%CHAR%'
    and table_name not like '%$%'
    order by table_name, column_name)
    loop
    v_sql := 'select count(*) from '||s.table_name||' where instr('||s.column_name||',' || CHR(39)|| v_search|| CHR(39)||') > 0';
    --dbms_output.put_line(v_sql);
    --execute immediate v_sql;
    execute immediate v_sql into v_exist;
    if v_exist > 0 then
    dbms_output.put_line(s.table_name||'.'||s.column_name||' matches the string.');
    end if;
    end loop;
    end;
    "EMP"."ENAME" matches the string.
    "EXCEPTIONS"."OWNER" matches the string.
    "FLOW_TABLE"."OBJECT_OWNER" matches the string.
    "MYEMP"."ENAME" matches the string.
    PL/SQL procedure successfully completed.
    I am getting output; that i search "SCOTT" word in my search string.

  • What this block of codes of C output? thanks

    What is the output of this block of codes of C? what about short-circuit true of C
    when the user enter 5? i dont have C o r C++ so can anyone help me out, thanks.
    int fun (int *x ) { return (*x)++; }
    int main() {
    int a;
    a = 0;
    printf("%d\n",a); /* prints the integer a, with newline to the screen */
    scanf("%d",&a); /* scans an integer from the user into a */
    if ( (a>0) && fun(&a) ) printf("%d",a); /* prints the integer a conditionally */
    printf("%d\n",a);

    What is the output of this block of codes of C? what
    about short-circuit true of C
    when the user enter 5? i dont have C o r C++ so can
    anyone help me out, thanks.
    int fun (int *x ) { return (*x)++; }
    int main() {
    int a;
    a = 0;
    printf("%d\n",a); /* prints the integer a, with
    h newline to the screen */
    scanf("%d",&a); /* scans an integer from the user
    r into a */
    if ( (a>0) && fun(&a) ) printf("%d",a); /* prints
    s the integer a conditionally */
    printf("%d\n",a);
    }why would 5 cause a short-circuit?

  • My music library seems corrupted. Nearly every song (431 albums) displays "the song ... could not be used because the original file cannot be found". Is there any way to correct this? Please help, thanks, Kelly

    Almost my entire itunes music library seems corrupted. Nearly every song (431 albums) displys "the song ...  cannot be used because the original file cannot be found". Is there any way to correct this? Please help!
    thanks,
    kelly61

    Select one of the songs in question and right click, then select "Get Info". On the main dialog page you should see where iTunes thinks the file resides. Then use Windows Explorer to see if the file is actually there. If not, find out where your music is stored.If there is not a correlation between iTunes and reality, go into iTunes and delete all of the files which are not found.  Then, in iTunes, select File->Add Folder to Library and select where the music is stored. iTunes will re-add all of the music into your library.

  • Is there a way to crack this file encryption code?

    The text below is a little irrelevant for the question, it explains how I discovered the code:
    I was randomly making weird binary operations on my notebook (I mean, I REALLY do that, actually...), when I had an idea.
    After a few operations, I found out a way to encrypt files with a password. It was based on operating the original byte with a password in both AND and OR ways, resulting two bytes, then operate them back with: return (byte) ( ( factor & AND ) | ( ( ~factor ) & OR ) );
    It worked, but I a few minutes later I figured it can be cracked by simply decrypting the two bytes with every possible byte and seeing which ones return the same result, then testing these ones with the next AND/OR bytes, and so on until a single byte (or a single sequence) remains. Plus, the encrypted file was twice bigger than the original file.
    Then I thought a little. The two bytes sum sixteen bits, but the result is only eight bits wide, so there are eight bits that aren't used for anything. If I could match the AND and OR bytes by removing the useless bits, I'd get a single encrypted byte, which means the file is the same size as the original and you could not use the strategy I said above, so it's theoretically uncrackable. I figured out the formula in another couple minutes.
    The question itself:
    The formula for generating an encrypted byte is:
    byte res = (byte) ( ( temp & ( ~pass ) ) | ( ( ~temp ) & pass ) );
    //res = the encrypted byte
    //temp = the original byte from the file
    //pass = the password byteI also realized that the same formula can be used both for encrypting and decrypting.
    The question is: Is it possible for anyone to crack this without using the "brute force" method?
    Please note I never studied this security stuff before, so I have no clue whatsoever if this formula already exists or something like that (it probably does, somewhere). A book on the issue would really help. Thanks.

    O.o weird
    I was using XOR operations and I didn't know it. Just noticed.
    Thank you very much. ^^
    By the way, about that book, any suggestions?
    Edit: Oh and, if the key bytes are a sequence as big as the file itself, can it still be cracked under frequency analysis?
    Edited by: KaoroSorane on Jan 28, 2010 12:59 PM

  • HT201415 My iphone has the 3G sign at the top but it if I go on the Internet (using 3G) it says that I'm not enabled to use cellular data? Is there anyway I can fix this! ASAP ! Thanks x

    Yesterday I changed my password for my iphone 4 and forgot it so I had to reset setting in iTunes but now my iphone thinks it is my ipod and although the 3G sin is showing, whenever I try to use 3G, it comes up with "cellular data is not enabled on this device" not sure what to do? Hope someone can help me! Thanks so much!! Xx

    Try a reset on the phone. Hold the sleep/wake and home buttons together until you see the Apple logo and then release. After the phone restarts, see if that will work. You say it thinks it is your iPod, did you restore the phone to a backup from the iPod? The reset should work.

  • Since downloading OS 6 for my iPad, my calendar keeps issuing repeated alerts - even though I didn't even initiate one.  Is there a way to stop this from happening?  Thanks for your input !

    Since downloading OS6 for my iPad, the calendar keeps issuing repeated & different alerts for events even when I initiated none.
    Any suggestions as how to stop this will be most appreciated.
    Thank you in advance !

    This is the same issue that has plagued me for years. I always thought that this was a Flash plugin issue, but it does occur on HTML5 as well. A friend of mine verified that this does not occur in Linux, but only on Windows. It would be great to have this fixed, as it's honestly the only thing that's making me use Chrome all the time, as I don't want to have multiple browsers open.

  • Why there r two functions (do post & do get)

    why there r two functions doget() & dopost() while any code can run in any of them and give me the same result.
    sure, here is difference but what this difference ?
    thnx in advance

    thnx shudha
    this thread is very good, i pasted it here to clear the vision for otheres too:
    There are two points between GET and POST
    01) Amount of information u can get.
    02) Post is secure for getting Passwords and credit cards numbers.
    GET puts the form values into the URL string. GET is limited to about 256 characters (usually a browser limitation) and creates really ugly URLs.
    POST allows you to have extremely dense forms and pass that to the server without clutter or limitation in size. e.g. you obviously can't send a file from the client to the server via GET.
    Below lines are from http://www.microsoft.com/windows2000/techinfo/reskit/en/iisbook/c06_the_difference_between_get_and_post.htm
    QUOTE
    The GET method, which was used in the example earlier, appends name/value pairs to the URL. Unfortunately, the length of a URL is limited, so this method only works if there are only a few parameters. The URL could be truncated if the form uses a large number of parameters, or if the parameters contain large amounts of data. Also, parameters passed on the URL are visible in the address field of the browser�not the best place for a password to be displayed.
    The alternative to the GET method is the POST method. This method packages the name/value pairs inside the body of the HTTP request, which makes for a cleaner URL and imposes no size limitations on the form�s output. It is also more secure.
    UNQUOTE
    Hope abv will help.

  • I no longer have my apple login email address as it was associated with my previous job. I can't change it over to my current email address as this was my secondary. Is there any way to do this?

    I no longer have the email address associated with my Apple account as it was through my previous employer. When I attempt to change it to my current email address, I can't as it was my backup to the old one. Is there any way to do this?

    Hey arnwrkr,
    Thanks for the question. It sounds like you wish to change the email address associated with your Apple ID, however the address you wish to use is already in use as your rescue email address. To accomplish your goal, we’ll need to first remove your rescue email address:
    Manage your Apple ID primary, rescue, alternate, and notification email addresses
    http://support.apple.com/kb/HT5620
    Next, you can change your Apple ID to new this email address:
    Change your Apple ID
    http://support.apple.com/kb/HT5621
    And finally, be sure to update the features and services that you use with your Apple ID:
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796
    Thanks,
    Matt M.

  • My iPhone 4 does not "switch" from portrait to landscape mode in any app. Is there a way to fix this? I'm running 5.0.1

    My phone does not toggle between landscape and portrait mode any more. This is, as far as I tested, in any application. Is there any way to fix this?

    Hi ckuan,
    Thanks a lot for that fast reply. Must have touched that lock button by mistake without noticing.
    Stupid me :-D. Btw happy new year!!!!!

  • On Google Chrome the Adobe edge web font looks fuzzy and broken-up. Is there a way to fix this?

    I have created a website with Adobe Muse and I am using an adobe edge web font that looks great on all browsers except for google Chrome... On chrome the font looks fuzzy and broken-up. Is there a way to fix this??? Thanks.

    Thank you Sanjit,
    I have redone the site using using the font TREBUCHET. The font that I was using that was giving me the problem was EXO which is an Adobe Edge Web font. I'd rather use EXO... Here is a screen shot of a sample page, areas where the type looks especially messed up are circled in red.
    This only happens when opened in Google Chrome on a Windows PC. However it looks fine with Chrome on my MAC.
    Regards,
    Jan

  • I am having trouble downloading purchased songs to my iphone.  I keep getting an error message that the song could not be downloaded.  Why?  How do I fix this?

    I am having trouble downloading purchased songs to my iphone.  I keep getting an error message that the song could not be downloaded.  Why?  How do I fix this?

    Hello Dawnellk,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    Previous purchases may be unavailable if they have been refunded or are no longer on the iTunes Store.
    Best of luck,
    Mario

  • I just bought a newer Nano and I need to upgrade my itunes for a laptop (with Windows) that no longer has the capability to go online.   Is there a way to do this?

    I just bought a newer Nano and I need to upgrade my itunes for a laptop (with Windows) that no longer has the capability to go online.   Is there a way to do this?

    Hi John,
    Thanks for your response, but if you read my first mail, it's the original serial number that I don't have. I bought the original LR as download and have misplaced the serial number. Is there any way to find it???
    Linda

  • I am having difficulty downloading attachments (i.e. pdfs, photos) from email. Is there a way to improve this process?

    I am having difficulty downloading attachments (i.e. pdfs, photos) from email. Is there any way to make this process faster? Thanks!

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • My up button for volume does not work and need to turn incoming call volume up. is there an app to do this

    my up volume button does not work and i need to turn the incall volume up. is there an app that does this?

    Hey skeith75,
    Thanks for the question. Based on the information you have provided, your iPhone may need to be serviced to fix that button. However, if in the meantime you would like a workaround for turning the volume up on a phone call, you can use Assistive Touch:
    iOS: Using AssistiveTouch
    http://support.apple.com/kb/HT5587
    If you do wish to service your iPhone, the following link should help you get started with the process. Included, you will find information on topics such as warranty, service pricing, and express replacement service.
    Apple - Support - Service Answer Center
    http://www.apple.com/support/iphone/service/faq/
    Thanks,
    Matt M.

Maybe you are looking for

  • Stck on posting date for vendor.

    can i have the Transaction code to check stock on posting date of vendor stock (i..e vendor stock on specific date ) MBLB is the transaction code to check vendor stock. mb5b special stock

  • Value of Check Box

    Hi, I want to give a value to the check box using the following code: <input type="checkbox" value="SelectAll" onclick="$f_CheckFirstColumn(this)" /> -- This code has been put in the column heading of the report generated using the following sql sele

  • Error in call adapter: Sequence already terminated

    Hi sdn experts We get the com.sap.engine.interfaces.messaging.api.exception.MessagingException: Sequence already terminated error when sending data from PI to the JMS adapter. The error occurs in the step u201Ccall adapteru201D on the abap-stack. We

  • How to use substitution variable in case of dim build

    Hi all, Lets say I have 3 sub vars - Prevmonth, prevmonth-1, prevmonth-2. These will change every quarter. I want to build a cube which will have which will have only the above 3 months in the Fiscal dimension. This will be used once at the end of qu

  • OS X Mavericks downloading for 2 days?

    It has barely moved and I have no idea why. How do I restart or correct this? Is anyone else having the same problem?