Wrong colum definition? or other reasons?

Table 1
Col 1 : Flag1
one:
two:
Flag1 will be set manually based on some conditions. Currently, none of the records in the db mets the condition, hence the field is empty. Users will log into the db and update the Flag1 to Y for those records that meet the conditions. Once a month, i will run the query below to extract those that does not have 'y' in the Flag1 column
select a.rowid,a.* from table1 a where a.flag1 <> 'y' */The above code returns nothing.
select a.rowid, a.* from table1 a The above code returns all rows.
Col 1 : Flag1
one:
two:
why the the first query come back with nothing? Shouldn't it return all rows?

NULL in flag1 column makes the difference. That is why, good design should make flag1 NOT NULL and store either 'Y' or 'N' based on your business conditions.
SQL>drop table a
  2  /
Table dropped.
SQL>create table a (col1 varchar2(5), col2 varchar2(1))
  2  /
Table created.
SQL>insert into a values('one', NULL)
  2  /
1 row created.
SQL>insert into a values('two', NULL)
  2  /
1 row created.
SQL>commit
  2  /
Commit complete.
SQL>select a.rowid, a.* from a
  2  where a.col2 <> 'Y'
  3  /
no rows selected
SQL>c/a.col2/nvl(a.col2, 'N')
  2* where nvl(a.col2, 'N') <> 'Y'
SQL>;
  1  select a.rowid, a.* from a
  2* where nvl(a.col2, 'N') <> 'Y'
SQL>/
ROWID              COL1  C
AAANH1AALAAAAIiAAA one
AAANH1AALAAAAIiAAB two
SQL>Cheers
Sarma.

Similar Messages

  • I changed my sim on my iPhone n reconfigured iMessage, it configured with my number but when i sign in with my apple id it says username/password is wrong while in all other things like FaceTime, App Store it worked with the same id and password

    i changed my sim on my iPhone n reconfigured iMessage, it configured with my number but when i sign in with my apple id it says username/password is wrong while in all other things like FaceTime, App Store it worked with the same id and password..
    can anyone help me to solve this issue

    i just opened my ipad, started my apple account/I.D. and realized I put the wrong e mail. I was having trouble correcting my I.D on the Ipad so I went to my laptop and make the proper changes/slash e mail address I wanted for my apple ID. I got back to my ipad and try to download an app I can't because I have to sign in my apple account and I can't because it still has the irrelivant I.D/email address..
    So, i did what you said.. went to setting>app store> tapped on my e mail.. it asked me to sign in (with my invalid emails address showing). I signed in with the password I had created. It said "incorrect".. I went to reset password. I reset password, tried to sign in and it says again "unvalid password".. this is getting irritating.  I have been asking and no one knows what to do.

  • Test the gpu / other reasons for display anomalities?

    Hello. I use an ATI Radeon HD 4870, and it seems to be not working correctly anymore (slow performance, front application windows behind the panels of one in the back etc.). Is there a way to test it (like Disk Utility is testing hard drives)? And might there be other reasons (on a Mac that has just been installed all from scratch on a blank disk)?
    Thanks

    Focus on your hard drive and system. My recommend has always been:
    Clone your system, use Alsoft Disk Warrior to repair, run off your clone and test performance first. Don't rely on Disk Utility's Apple First Aid repair process.
    FRESH INSTALL? from scratch?
    One item: ANYMORE so what changed? when and what?
    Something else is happening.
    Try unplugging everything but kb and mouse.
    Run Apple Hardware Test
    Did you install any hardware or drivers or applications?
    Did you by chance also migrate from another Mac?
    Totally clean install, huh?
    Nothing stands out to me
    10.6.4 has had some graphic glitches and one or two patches (CS5, CUDA).
    (2009 uses 1066 DDR3 so no need to mention but might mention any other hardware in the .sig)

  • Besides the pixel issue any other reason not to use iphone apps in ipad?

    besides the pixel issue any other reason not to use iphone apps on ipad??

    There are no technical reasons why you can't use them (unless they are some of the few apps that require full phone capability which you won't be able to install). -If you are happy with either using them in an iPhone sized portion of the screen, or with the pixelated 2x size, then use them. I use quite a few apps from my iPhone and iPod Touch, and I've got used to the pixelisation and I don't really notice it as much as I used to.

  • I have my Launch Vidoe ready and the "share" drop down is gray so no ability to send it anywhere.  what is this?  I went on to update the computer for other reasons, now Safari 6.0.2 asit interferred with downloads; and from OS X basic to Mtn Lion 10.8.2.

    I have my Launch Video ready and the "share" drop down is gray so no ability to send it anywhere.  What is this?  I went on to update the computer for other reasons, now Safari 6.0.2 asit interfered with downloads; and from OS X basic to Mtn Lion 10.8.2.  

    Make sure your Project has the focus. You cannot Share an Event.

  • Issue with project having Tag File containing definition of other Tag File

    Hi Everyone,
    I have a small problem which you experts are able to help with.
    As the subject of this Post has suggested, I have a project which was originally built in NetBean 6.0 and I'm trying to migrate it across to JDeveloper 10.1.3. So far, I've managed to compiled all jsps and java source files successfully but I'm now stuck with the following error messages during building of the project in JDeveloper:
    --- START OF ERROR ---
    Error(6): Unable to instantiate tag: menu:tab (class: oracle.jsp._tag._tabmenu._tab_tag) Make sure that the tag class is available and that the tag library containing the class is not excluded from this application.
    Error(6): Unable to find class for bean: null defined by tag with class: oracle.jsp._tag._tabmenu._tab_tag
    --- END OF ERROR ---
    I believe the reason was that I have this Tag file (menu.tag) that contains definitions and references to another Tag file and here is its content:
    --- START OF TAG FILE ---
    <%@ taglib prefix="menu" tagdir="/WEB-INF/tags/tabmenu" %>
    <%@ attribute name="tab" required="true" type="java.lang.String" %>
    <jsp:useBean id="login" class="au.wa.apa.webbeans.WrsLogin" scope="session" />
    <div id="menu">
    <ul>
    <menu:tab tab="NEW" currentTab="<%=tab%>" label="New Query" tooltip="Create New Query" url="aq/adv_new_query.wrs?formMode=new"/>
    <menu:tab tab="OPEN" currentTab="<%=tab%>" label="Open Queries" tooltip="View Open/Active Queries" url="aq/adv_queries_list.wrs?view=OPEN"/>
    <menu:tab tab="CLOSED" currentTab="<%=tab%>" label="Closed Queries" tooltip="View Closed Queries" url="aq/adv_queries_list.wrs?view=CLOSED"/>
    <menu:tab tab="SEARCH" currentTab="<%=tab%>" label="Search" tooltip="Search Query" url="aq/adv_queries_search.wrs?view=OPEN"/>
    <% if (!"STAFF".equals(login.getUserType())) { %>           
    <menu:tab tab="ATTN" currentTab="<%=tab%>" label="Attention Of" tooltip="Attention Of Administration" url="aq/adv_query_attention_of_list.wrs"/>
    <% } else { %>
    <menu:tab tab="TEMP" currentTab="<%=tab%>" label="Templates" tooltip="Template Management" url="aq/adv_query_template_list.wrs"/>
    <% } %>
    </ul>
    <div class="clear"></div>
    </div>
    --- END OF TAG FILE ---
    I've this problem for several days now and have not been able to solve it and I hope you are able to help me with this problem. Thank you for time and assistance and have a nice day.
    Kind Regards,
    John

    Hi Guys,
    Do we have any workaround to this problem? Any feedback will be welcomed.
    Thanks and Regards,
    John

  • Wrong TYPES definition?

    Hi experts,
    For my selection I define a internal table
    This works:
    DATA: it_lab_data  TYPE TABLE OF zmm_lab_offen,
         wa_lab_data  TYPE zmm_lab_offen.
    If I select something I can see the table is filled.
    Now, for my selection I need a temporary field more than my transparent table (zmm_lab_offen) has. So I tried to define a new TYPE including this table.
    TYPES: BEGIN OF s_lab_data,
             struk TYPE zmm_lab_struktur,
             loekz TYPE boolean,
           END OF s_lab_data.
    TYPES: tt_lab_data TYPE STANDARD TABLE OF s_lab_data WITH DEFAULT KEY.
    DATA: it_lab_data TYPE tt_lab_data.
    SELECT *
    FROM  'inner join over 3 tables'
    INTO CORRESPONDING FIELDS OF TABLE it_lab_data
    WHERE ...
    But this doesn't work. The Selection even imports 1600 rows but all fields are empty or has the value '0'!
    What am I doing wrong??? I 've got the TYPES definition by the "ABAP Objects" book...
    Regards,
    Steffen

    can't be used in OO context --> generates an error
    In the keywordmanual it is recommend to use
    DATA: BEGIN OF rec,
            rec LIKE s,
          END OF rec.
    instead of
    DATA: BEGIN OF rec,
            INCLUDE STRUCTURE s.
    DATA:   ...
          END OF rec.
    but this also don't work for me. LIKE and STRUCTURE cannot be used in methods. I have to use TYPE...
    regards,
    steffen

  • Colors in Photoshop all wrong but OK in other apps. (For example "Whites appear yellow.")

    Q: The colors in Photoshop are all wrong. They have a neon look or are discolored with a blue, red, green or Yellow cast. I look at the same pictures in other applications and they look just fine. How do I fix this?
    A: Recalibrate your monitor using Adobe Gamma (OS9) or the Displays Control in System Preferences (OSX). Photoshop uses your monitor profile to display your images other apps don't. Be sure you start the recalibration using a fresh monitor profile (sRGB or the profile that came with your monitor for example). If you try to recalibrate using the old corrupt profile you will still have a corrupt monitor profile and your color will still be bad. Also, if you are using OS 9 make sure you are using ColorSync 3.0.4. The 3.0.4 patch is available on the Apple web site.
    See also support document 319456, "Colors Are Incorrect (For example White Appears Yellow)" at http://www.adobe.com/support/techdocs/319456.html. The document is for Windows, but it may be useful for Macintosh.
    Here is another link to monitor calibration http://www.gballard.net/psd/colorlooksbad.html

    Thanks. But it looks like in all my frustration, I wasn't  sure  my original call for help had posted, so must have  submitted the same question again.
    But I just had a new thought on the problem. While reviewing a story I received from another website,  I noticed that the photos attached to the article  looked  a lot like  what I described  in my  message. It made me wonder if I have a software problem at all . . . or if it's the screen on my Mac that needs recalibration!
    It only took 2 minutes to find a website that discussed it — with sample screens to help determine if that was what I'm dealing with. Since a screen supposedly showing a mix of numbered, grey boxes looked totally white to me and I could only see the white numbers on a screen that supposedly contained boxes in varying shades of black, I think I might be on the right track. Just not sure, since I had to reach the bottom of the page before spotting the pitch for a product that supposedly will recalibrate  for me. I'm not sure I want to tackle recalibration on my own, but may call the Mac Geniuses at our local mall  and see  if my hunch is right . . .and if so, what they would charge to do it for me.
    BTW, if it sounds like a calibration problem, do you think moving my computer  from one desk top another (just 5 feet away) could have caused it? I'm not sure, since it wasn't on my mind at the time, but I think that's roughly when I first started to notice discrepancies in color.

  • Date_popup returns date to wrong colum...

    Hi,
    I am using wwv_flow_item.date_popup in a select statement, but the problem is it is always returning the value selected to the wrong row.
    I tried many things like putting an order by clause etc, but the same problem.
    I have a query as follows:
    select list..
    from table
    union
    select list
    from dual
    order by x;
    I also tried without the union, but still the same problem. I upgraded my htmldb version from 1.3.6. to 1.5.0.0, but still the same problem.
    Any help is appreciated. If this is a know bug, I shall write my own JS for date popups.
    thanks,
    ashok manthina.

    Hi Sergio,
    Thanks for the update. Here is the complete query...
    select wwv_flow_item.text(1,exam_short_name,10) ExamCode
    ,wwv_flow_item.text(2,description,50) ExamDescr
    ,wwv_flow_item.date_popup(4,rownum,exam_date,'DD-MON-YYYY',15) ExamDate
    ,htf.anchor( 'f?p=101:54:'||:flow_session||'::NO::P54_COURSE_CODE,P54_COURSE_INSTANCE_ID,P54_EXAM_ID:'||:P52_COURSE_CODE||','||:P52_COURSE_INSTANCE_ID||','||exam_id,'<img src="/i/edit_big.gif" border="0">') e
    ,wwv_flow_item.hidden(6,exam_id) ExamId
    ,wwv_flow_item.checkbox(7,exam_id) Del
    from course_exam
    where course_instance_id = :P52_COURSE_INSTANCE_ID
    union
    select wwv_flow_item.text(1,null,10) ExamCode
    ,wwv_flow_item.text(2,null,50) ExamDescr
    ,wwv_flow_item.date_popup(4,rownum,null,'DD-MON-YYYY',15) ExamDate
    ,null
    ,wwv_flow_item.hidden(6,null) ExamId
    ,wwv_flow_item.hidden(7,null) ExamId
    from dual
    Now when I click on the date popup, and select a value it returns to either a row above or below. I could see the problem with the button that is getting generated. The JS associated with the button does not have the correct row number associated.
    For e.g. the date popup button on row 3 has a call to javascript:genCalf04_0(), which obviously is wrong, it should instead be javascript:genCalf04_2()..
    Thanks,
    Ashok Manthina.

  • Error because of wrong page definition/binding container

    Hello -
    (Using JDev 10.1.3 JSF w/ADF BC)
    I'm running into a weird "issue" involving setting up the binding container.
    I have one page that has a table of data. I select a row and hit a button to navigate to a page with an edit form.
    In the page definition (for the page with the edit form), I list a managed bean as the ControllerClass. (I use the bean as a PagePhaseListener.) I've also added bindings (#{bindings}) as a managed property for that bean.
    In the managed bean I grab a hold of an attribute binding from the binding container in my beforePhase method (when the phase id is Lifecycle.PREPARE_RENDER_ID). However, I was always getting NULL for the attribute binding (which then caused a null pointer exception).
    When I paused the execution in the debugger, it looks like the binding container was still set up for the previous page (the page with the table in it). Opening up the bindings variable, I found a member mBindingContainerDef which had members mObjName and mFullName which seemed to indicate that the binding container was the one for the previous page, NOT the page with my edit form. (mFullName had the full name and classpath for the first page's page definition.)
    Why is this? I only indicate that the bean is a ControllerClass in the page definition for the 2nd page --> so shouldn't that be the binding container in effect when the PagePhaseListener methods are executed?
    -- Scott

    Scott,
    I assume that your PhaseListener doesn'tdistinguish between the actual navigation and the JSF postback that is issued to the same page. In your case I assume that the PhaseListener is invoked on postback and thus ADF Faces points to the "old pagedef" file.
    Frank

  • HDV Workflow -- What's wrong with this picture (other than some obvious)

    Hi Powerusers,
    I have a client with a canon XH-A1, they are ingesting via iMovie HD, cutting a rough timeline in iMovie, and then porting to FCP (via drag and drop) for me to finish on. Seems plausible all editing via AIC (apple intermediate codec). Final destination will be SD DVD, WEB, Handheld media, etc. Am I missing something or is this somewhat acceptable (other than loss of timecode) which they aren't concerned about since it's pretty lo-budget.
    Is editing using the AIC horrible (picture looks acceptable). I'm not used to this workflow. I work in DV, SD or DVCPROHD codecs/timelines but am baffled by not being able to ingest directly from Final Cut with this Canon HDV camera, but iMovie has that flexibility (view, start, stop, import) whereas I'm not getting any options other than capture now with FCP.
    Thoughts, criticisms, advice greatly appreciated.
    cheers

    I ended up capturing via FCP using HDV1080i60 easy setup with capture setting working with both Sony HDV over firewire and HDV Firewire Basic.
    Seems like all is working well using this setup. It's far more than the client needs as we'll be downconverting the timeline to SD once complete, but good enough now for edit. HDV is not fun to work with I'll tell ya. Still having some errors with log and capture.

  • The image color in Windows Photo Gallery is wrong, same image in other program color is correct.

     This is the correct color form Google Image:
    This is the color from Windows Photo Gallery:
      It looks like it is a issue of Windows Photo Gallery bcause if the same image is opened in another program(Photoshop, paint, etc), the color stays same, the thumbnail color is correct as well. However, it is different in Windows Photo Gallery.
    Does anyone know what the problem is?
    Thanks.
    W520 4276-23U | Intel i7-2920 XM CPU | 16 GB RAM | Nvidia Quardo 2000M | 1920x1080 Display | Intel Advanced- N 6205 | Color Sensor | Finger Print Reader | BIOS1.34

    Windows photo gallery is not colour profile aware, so assumes your monitor is sRGB.  The same is true of the desktop wallpaper.  There is nothing you can do about this, other than use a different default picture viewing application as default, or convert your images to the ICC profile of your monitor (which you can do in photoshop).  I would only recommend this for wallpapers though.

  • Using fiefox 3.6.9 with win7 font-size is all wrong... all other browsers are working fine

    I have a problem using Firefox 3.6.7 with win 7 Professional (64bit) the font size is all over the place sometimes too big and sometimes too small when I look at the same sites in IE 8, chrome , opera and Safari they are all ok... also the same sites are OK with Firefox 3.6.9 using XP

    I have a problem using Firefox 3.6.7 with win 7 Professional (64bit) the font size is all over the place sometimes too big and sometimes too small when I look at the same sites in IE 8, chrome , opera and Safari they are all ok... also the same sites are OK with Firefox 3.6.9 using XP

  • Is there a program that will check for viruses or other reasons why it runs slow?

    For several months my iMac has been running slow or freezing often. Safari often quits unexpectedly as does mail on occasion.

    Programs that check for viruses are a major cause of slow Macs, so let's look at doing steps that don't handicap your computer:
    1) How full is your hard drive? You need a minimum of 10G free for background processes such as Virtual Memory.
    2) How much RAM is installed? RAM for the Mid-2010s is rather cheap at the moment, I upgraded my 27-inch Mid-2010 recently from the original 4GB to 12 GB for about US$55. Installation took only minutes.
    3) If you have an external hard drive for backups, are you using something other than Time Machine to do the backups. Many third-party backup programs can cause a performance hit.
    The next step is a little longer. It checks to see if some runaway background process is eating processor cycles and slowing you down:
    1) Use your computer normally for typical tasks for several hours, then quit any applications you have launched. Do not restart.
    2) In Applications > Utilities, find Activity Monitor. If you've not used it before, you have to change a setting. At the top of the AM window is a "Show" option. By default it is set to show "My Processes." Change it to "All Processes" like this:
    4) Now highlight the "%CPU"column as shown so the most active processes "bubble"to the top (tiny arrow points down).
    Now watch things move up and down for a minute of two. What you are looking for is any single process that is using more than about 10 percent of the processor cycles while the computer is idling. If you see one doing that, post its name in a reply here.
    Awaiting your report,
    Allan

  • T430s, device without driver, wrong driver selection or other problem

    Hi all,
    I've got the problem that under device manager there's a device without driver and is thus shown with a yellow exclamation mark.
    Vendor ID is 1180, device ID is E822, so it seems to be the
    Ricoh PCIe SD/MMC Host Controller.
    But if I download the "Media Card Reader Driver for Windows 7" from the Lenovo website and install it, the device still doesn't have a driver. The smartcard reader driver also doesn't help. An automatic search of Windows doesn't find a driver.
    My system is: Lenovo notebook T430s, Windows 7 (64bit), model number 2356GDG.
    Can anyone post a screenshot of the device manager with all devices listed, so that I can verify that this is the missing device?
    Any suggestions?
    Thanks a lot, babidoo

    Hi there babidoo,
    Was this the driver you downloaded? Media Card Reader Driver for Windows 7
    It was updated August 13th so it's really new. I would also run TVT System Update as well.
    Ed
    *Edit* Also try updating this driver: SmartCard Reader Driver for Windows 7
    TVT System Update should automatically update both of these for you but you can also just update them specifically by visiting those links.
    Was this or another post on the forum helpful? Click the star on the left side of the screen to give kudos! Did someone solve a problem you encountered? Mark it as "solution provided" to help others with the same problem.

Maybe you are looking for

  • Can I update an iMac from another iMac using Carbon Copy Cloner?

    I change office locations every 6 months and move to a similar iMac setup. At each move, using external hard drives, I update the "older" iMac HD with the current Mail, Addressbook, work files, etc. Currently, I am using Snow Leopard; the machine I a

  • Prices Not Displaying On Printed Contract

    There is a contract in our system for services. The conditions for each service appear to be properly maintained. When the contract is printed, the prices are displayed up through a certain outline group, and then after that a 0.00 is printed, regard

  • Must buy protection plan for warrenty support

    Sad day for a 10 year old to learn a hard lesson. 21 days ago my son, after saving his Christmas and Birthday money, made the biggest purchase in his young life. His first time at Best Buy, which he chose because it was a real store and he could talk

  • Spry issues

    If I have an older site that works just fine, why would the current versions of DW force me to include a Spry Assets folder when identifying the local version of that site?

  • Adobe Professional issue

    Hi , I hope someone can assist me, I have a user with Windows XP, using Adobe Professional 8, as far as they told me an update ran, what they normally do is combine JPG's, now they cannot without getting an error, I have tried repair on a full reinst