Making a # turn red when it hits a limit

I am trying to put a counter on a page as shown in the select statement.
SELECT count(C1)
FROM T1
WHERE C2= 0
I am not sure how to make the counter turn red when it hits a fixed number, C3 from table2 as in this sentence.
If count(C1) < C3 from T2, display count(C1) as <FONT COLOR = "red"> count(C1)
Any clues?
Thanks.

Hi new guy.
In my case I like to use cases:
SELECT CASE WHEN MAX (T1.C1) < MAX (T2.C3) THEN '<span style="color:red;">' || TO_CHAR (MAX (T1.C1)) || '</span>'
ELSE TO_CHAR (MAX (T1.C1)) END CTR
FROM (SELECT count(C1) C1 FROM T1 WHERE C2= 0) T1, (SELECT SUM(C3) C3 from T2) T2
(PLEASE REFINE THE QUERY!!)
or you can separate values from formats in two colums: "CLR" for the color, and "CTR" for the value=
SELECT CASE WHEN MAX (T1.C1) < MAX (T2.C3) THEN 'red' ELSE 'black' END CLR, MAX (T1.C1) CTR
FROM (SELECT count(C1) C1 FROM T1 WHERE C2= 0) T1, (SELECT SUM(C3) C3 from T2) T2
Then if you can define a html expresion like
<span style="color:#CLR#;">#CTR#</span>
Regards, Marcelo

Similar Messages

  • Why are my scanned images turning red when put in a slideshow or iMovie?

    Why are my photos turning red when put in a slideshow?

    Can you start a new document and then load one of the duotones known to be good in the working file and have it correct? If so, try one of the duotones known to be bad in the working document in the new file. Does it work?
    If no to either suggestion, can you share one of the images known to be good and one known to be bad? ZIP 'em up and upload to dropbox and plop a link here. Or, to keep the file sizes down, you can quickly make a new set and provide those.
    As well, the ID version and OS info would probably be helpful.
    Take care, Mike

  • Why do my scanned photos turn red when I try to edit them in IPhoto?

    Why do my scanned photos turn red when I try to edit them in IPhoto?

    Assuming these are Black and white, iPhoto still needs an RGB colorspace assigned, it can't work with images that are in B&W colorspace.
    Scan in color and de-saturate in iPhoto, if required.

  • Why does my contact turn red when I try to text someone?

    Why does my contact turn red when I try to text someone?

    What version of iPhoto and of the OS?
    For iPhoto '11 Start by repairing permissions - usually this is a permissions issue - Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - repair your iPhoto permissions
    LN

  • Pics turn red when ken burns is turned on

    hi i was just editing a slideshow im making and when i added the ken burns effect all my photos turned red and stayed that way i was wondering how to get rid of this

    I had this problem with red tinted photographs and found it was only those pictures saved in bitmap. After converting the pictures to jpeg things seemed to work just fine.
    Hope this helps.
    iMac G5   Mac OS X (10.4.5)  
    iMac G5   Mac OS X (10.4.5)  

  • Published iWebsite pages turn red when scrolling pages in iWeb

    Hi everyone,
    Just wondering if I'm the only person who has this issue; when I publish my iweb sites and pages (to MobileMe) all goes well, but when I then scroll my page up and down in iWeb the site turns red again as if I have changed its content.
    I've tried the usual stuff (deleted caches, prefs, logged into MM under a bogus username and password) to check if the problem is a MM issue but this also occurs when I publish to a folder...
    I've repaired disk permissions and did a fresh install of OS X (10.6.7) two weeks ago.
    Does anyone have any other suggestions which might solve this issue? Or perhaps even the same problem?
    cheers,
    koen

    Brilliant OT!
    Although immediately posting to the discussions group says something about my personal opinion on the reliability of iWeb ... the problem was caused as you expected; the double digit finger action.
    So 'no swiping in iWeb' I suppose.
    The 'turning red' of published site pages was 100% reproducible by scrolling down using my trackpad, but it doesn't happen when I use my mighty mouse or the arrow buttons/scroll bar thing. (Even although nothing was selected in iWeb, bit of a bug if you'd ask me)
    Thanks again for pointing out the logical and to me not so obvious
    cheers,
    koen

  • Screen turns red when dark

    My wonderful little Indigo iMac 400mhz slot load is acting funny. When there is too much darkness on the screen, such as a dark picture that takes up a majority of the screen, it seems to turn red. Its as if the computer sees the darkness as a problem at tries to correct it by turning the screen reddish. Any ideas?

    Nah, there is nothing wrong, you just need to calibrate it...

  • Image turns red when trying to add text?

    I'm using CS5 64 bit on a Win7 64-bit machine, with 8GB RAM.
    I have been creating images, then adding text to them, with no problem. All of a sudden, something is going wrong.
    I have created an image out of a white background with green text. I saved it as a .psd
    Later, I opened it in CS5, and clicked the Text tool. I put the cursor on the image, and the whole image box turned red.
    All the options under Layer (like New or Duplicate) are grayed out.
    The Layers box shows just one layer, named Index. Right clicking on that shows all grayed out options.
    I also tried to add text to a previously saved .jpg with the same result.
    If I make a new image, I can add text correctly.
    And I can also add text to other .jpgs I've made previously.
    So apparently it is something to do with the way these particular files were saved or something?
    I tried resetting the Text tool but that did no good.
    What am I doing wrong? What makes these images different?
    I tried to upload the .psd image in question, but I got an error message saying that "the content type of this image is not allowed".
    Thanks!

    If you want to post a large image or one of a format that isn't supported by direct attachment here, here's a suggestion:
    Go to YouSendIt.com.
    Create a free account.
    Upload and send the image to yourself.
    When you get the URL, post it here.
    -Noel

  • HT5148 Why did my clip turned red when importing from QT to FCPX?

    Hello. When I import my saved screenshot clip (Quicktime) to FCPX for assignment. It automatically turned red. I tried different ways of turning it back to orginial color. I failed. Help? pease....

    Tom Wolsky wrote:
    QuickTime screen captures don't work in FCP.
    I think this a little too definitive. I have used these captures in FCP X, so I would not make such a blanket assumption.
    I do reallize that issues are likely to arise, mostly due to inconsistent frame rates.

  • Why does the selector label turn red when i try to change it?

    I need 6 cases in the case structure. When i try to change the default True label to Zero, I see that it turn red. why is that? and how do i prevent that?   
    Solved!
    Go to Solution.

    ...or you just created it and the default selector type is boolean. As Dennis said wire a number to it and all will be well with the world.
    If you are going to have multiple cases, do you know how to define ranges in the labels? That can be very helpful.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Timeline turns red when a clip is moved in Premiere Pro CS3

    When I move a clip in the timeline in Premiere Pro CS3 the entire thing turns red until I open one of the menus. I uploaded a video of the issue here:
    http://youtu.be/53VLFm-EN_o
    Does anyone know how to fix this?
    System specs:
      Model Name:          MacBook Pro
      Model Identifier:          MacBookPro4,1
      Processor Name:          Intel Core 2 Duo
      Processor Speed:          2.6 GHz
      Number of Processors:          1
      Total Number of Cores:          2
      L2 Cache:          6 MB
      Memory:          4 GB
      Bus Speed:          800 MHz
      Chipset Model:   NVIDIA GeForce 8600M GT   
      Type:          GPU
      Bus:          PCIe
      PCIe Lane Width:          x16
      VRAM (Total):          512 MB
      Vendor:          NVIDIA (0x10de)
      Device ID:          0x0407
      Revision ID:          0x00a1
      ROM Revision:          3212
      Display Type:          LCD
      Resolution:          1440 x 900

    Could be grapficscard issue.
    Also your mac does not meet minimal requirements for display.
    http://helpx.adobe.com/x-productkb/policy-pricing/system-requirements-premiere-pro.html#ma in_Adobe_Premiere_Pro_CS3_system_requirements

  • When I close my laptop lid and it goes to sleep so that I can use an external monitor, monitor does not turn on when I hit a key to start laptop

    When I use my external monitor, I cannot get it to work after awakening my laptop using any key.  My monitor won't light up although laptop keyboard is backlit showing that it has come out of sleep mode.  Why does the monitor not get the signal from the laptop?

    I still cannot figure out why it doesn't always work.  All parameters were met and my bluetooth keyboard is set correctly to wake the computer.  My keyboard becomes backlit, but my LG monitor does not pick up a video signal and is black and my laptop monitor is off.  The only way I can get out is to hold on button on laptop until it shuts down and I can start up again.  This happens on an intermittent basis.  Sometimes it works and other times I get black screens.   I need to know if I can use command F1 to get the laptop to detect the display or is their another key combination to send the signal to the external monitor when I can't see anything because I hate to do a hard shut down to get out of this mode!  Please advise!

  • I used to have an add-on that made the reload icon to the right of the address bar turn red when the page was downloading . What is it called?

    It has disappeared after I had to do a restore.
    I can't remember what the add-on is called. I am using FireFox 22 on a Win8 64 bit system.
    Can anyone tell me what it is called so I can get it back?

    After using the Firefox Reset feature, a folder named Old Firefox Data should appear on your desktop. This folder should contain all your old extensions. However, there is a gotcha: many of them are filed under alphanumeric identifiers rather than readable names. Still, it's worth a quick look.
    Actually, here's a thought: if you drag a .xpi file from the Old Firefox Data\extensions folder and drop it on an open Firefox tab, you should get the install dialog which, presumably, will tell you the extension's name. In theory you could try one after another until you find the one you want. Please note that installing an extension from disk rather than the Add-ons site may make it impossible for Firefox to find updates, so it would be better to figure out the name and get it from the source if you can.
    Any luck?

  • All iWeb folders turn Red

    Last week when I opened iWeb all the pages were Red and I had to try and re-publish the whole site. Tonight it has happened again but this time I have the option to publish site changes, although it is really the whole site. There are quite a large number of pages and it can run the whole night trying to re-create them and of course publishing can fail so I have to keep retrying.
    Does anyone know why they would all turn Red when no actual changes have been done and what is the best way to stop this happening>
    Thanks
    Douglas

    If this is happening to you every time, you should contact MobileMe support. Here's the URL for the UK....
    http://www.apple.com/uk/support/mobileme/
    If they tell you its iWeb that's the problem then post back here.

  • Red Timeline box. Not render line entire timeline box turns red

    I ran into an issue on Premiere Pro cs3 after updating my mac to Mountain Lion. No issues until update. The entire timeline box turns red when I insert a video. Not the render line but the entire box turns completely red. anyone have any ideas?
    I realize I need to update, I am a college student, but I do freelance for a nonprofit so I need this up and running as fast as I can.

    That SEEMS like a case where your graphics driver needs to be updated... but NO way for anyone to tell without hardware information
    More information needed for someone to help... click these links and provide the
    requested information
    -http://forums.adobe.com/message/4200840
    -http://forums.adobe.com/thread/416679
    -http://forums.adobe.com/thread/419406
    ADDED
    IF you have nVidia (you did not say) read
    Mac & nVidia Driver http://forums.adobe.com/thread/1075592

Maybe you are looking for

  • How to HD content into Apple TV

    How do you HD video on the Apple TV? What are users doing to do this? (The only source I have see is the download movie trailiers (720p) via the Apple site)

  • Dropdown List in table - multicolumn foreign key

    Hello, Steve Muench has a nice screencast how to create a dropdown list in an editable adf table. Is there a way how to update this example to work with multicolumn foreign key between edited table and lookup table? Let's say lookup table has Code, L

  • Most recent iOS version available for 2nd gen iTouch

    What is the most recent version of iOS that can be put on a 2nd generation iPod Touch?  It seems like everything in the app store needs a much newer version of the iOS, and I'm not sure if I can put it on my iPod.  (And I'm sure not going to go out a

  • C project - data retrival for report

    Hi can any one help me in the c project we  have created project thro c-project and we are not able to retrive the data where it is getting stored  , it is not avlb in DPR_proj we need to develop a report to display all the project details thanks in

  • How my podcast appears in iTunes

    I manage a global, corporate web site. I have two questions: 1) How can I get a display page that would allow me to display multiple channels and multiple feeds -- under one brand. Examples: USC Marshall Business School, Business Week, Quick & Dirty