Different States with buttons as graphical elements

Hello! I have a few graphic elements and want to make them with different States, that is active buttons and hover. But I don't see any possibility to do. When I change the State of an item and try to replace the image it replaces in all. I can't believe that this single feature could not be carried out. Thanks in advance for all versions to solve!

Because we're changing CSS with different States, you cannot change the src of an image. Instead, you can get what you want to do the following:

1. draw a box to the size of your desired button.

2. Add a default background mode image.

3 move to something like 'stationary' and then change the source of the background image.

When you preview your design, you will see that the background image changes with the hover.

Hope this helps,

Joan Lafferty

Tags: Edge Reflow

Similar Questions

  • In the forum Coursera pages there are different icons and buttons, but I see that only holders of palce, small squares with letters in there. Any help?

    In the pages of the coursera.org forum, there are different icons and buttons. They do not display correctly. I can see only tiny forms square with characters in them. Hovering on them can display information in some cases, but it is not very convenient. Although they recommend Firefox, I use Chrome instead. Chrome has no questions here so far. Is it possible to view these icons correctly?

    Many sites now use downloadable fonts to create their icons instead of the traditional image files. So, there are some Firefox settings that might be a factor, as well as the NoScript extension, if you use this (blocked objects).

    (1) in the dialog box fonts Advanced, unchecking the checkbox which allows the site to use its own choice of fonts. To check that:

    "3-bar" menu button (or tools) > Options > content > button "Advanced".

    Here you must "allow pages to choose their own fonts.

    (2) on the deactivation of fonts downloaded in: config. It's less likely, or you remember probably not, but here's how to check on it.

    • In a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.
    • In the search box at the top of the list, type or paste the gfx and make a pause so that the list is filtered
    • If gfx.downloadable_fonts.enabled preference is bold and user, set false, double-click it to return it true.

    This seems useful.

  • I have 6 buttons on the navigation bar that point to 6 different pages - the buttons are all the same color - if I am currently on [say] page 3-How can I me key menu 3 to change color and state that I am on page 3?

    I have 6 buttons on the navigation bar that point to 6 different pages - the buttons are all the same color - if I am currently on [say] page 3-How can I me key menu 3 to change color and state that I am on page 3?   using DreamWeaver CC

    Among the contributors here has a nice page explaining how to do what you want, using css.

    Indicator of persisting in the Menus - Page http://alt-web.com/

  • Adding an item placed in a State of button

    Hello World-

    First of all, I use InDesign CS5 on a MacBook Pro.

    I have problems with a positioned element I want to add a button of targeting.  It was my understanding that when you place a file, it could be referenced as master.pageItems [0]. This is the extract, I've tried.

    var doc = app.activeDocument;
    var master = doc.masterSpreads.itemByName("A-Body_Page");
    var lay = doc.layers.item("navigation");
    var imgFile = File( "~/desktop/eGuide/NavBtnNormal.png");
    master.place(imgFile,["131.25px", "637px"], lay);
    var img = master.pageItems[0];
    
    var btnHide = master.buttons.add();
    btnHide.geometricBounds = ["637px","131.25px", "670px","164.25px"];
    btnHide.states[0].addItemsToState(img);
    

    On some documents, it will work. On the other hand, it seems to randomly add a different page of the State of the button element. As I added a button to the page, I thought that this master.pageItems [0 was], changed. Therefore, I tried to approach it differently, adding the button I tried targeting the id of the img or adding a name to the img variable. I tried to access the graph in this way. I also tried to store the instruction 'master.place' within the img itself variable. As I said, sometimes it works; Sometimes it doesn't.

    I guess I just want to really know - when you place an item, how do you target at this point later in the script? I'm pretty new to JavaScript, but I really enjoy learning. As a result, more descriptive you could be better.

    Thanks in advance for your help.

    The problem is that "pageItems [0]" points to your point placed just, but only if it is the only element on this page! If not, he made it that she usually (in fact, always) does, that is, it points to the first object on your page. Note that this does not contradict my first line :-)

    If you place an element with a script and immediately want to do something with it, you must save the return value of the "place" command It is an array of 'pageItem', and generally you place only a single element, so it would be

    placedContentArray = master.place (imgFile, ["131.25px", "637px"], secular);

    var img = placedContentArray [0];

    or, simply (without danger, because you always place a single image at a time)

    IMG = master.place var (imgFile, ["131.25px", "637px"], lay) [0];

    (Note the [0] at the end).

    > It was my understanding that when you place a file, it could be referenced as master.pageItems [0].

    I guess you have picked up your original example of a sample script that wasn't expecting other items on this page.

  • Qosmio G10 with the new graphics card and pcb - CD update tools do not work

    Hello world

    I hope you can help me. Before a few weeks, I received my Toshiba Qosmio G10 return of aid, because the laptop no longer works. So I get it back with a new graphics card and a new PCB. With my laptop I have a CD called the update tool CD and a sheet of instructions, where it says to start with this tool CD-Rom update after you have installed the Windows with the reovery CD.

    So I did, but when I know the update tool CD to put in and I start with it, the computer installs something, but after a short then it is a message that it is a different model and that I have to put a button to close Notepad. So I did it, but Windows does not start.

    Why is it so? I had done everything that has been said on the instruction sheet.

    Please help me

    Hello

    It will be interesting to find more information on this CD-Rom tool update. Are there tags Toshiba? Can you please write what is described here?

  • change a State of buttons based on another value of buttons

    do not remember how to change a State of buttons depending on the value of another button.

    I think it was a structure of the event?

    can someone point out an example?

    Thank you

    There are several elements to your question:

    In response to a status change button: this can be done with either a structure of the event in a loop, or by querying the button in the loop. Examples are provided with LabVIEW on the use of the structures of the event.

    Changing the value of another button: this can be done with either a local variable or a "Value" property node (Cue the crowd of local variables at this stage.). Note that the lock of your button action will affect if you can do it. See this article for more information: why is my property a Boolean node a Variant?

  • Muse is not let me change the color of the text in different States - "changes to text can be edited or formatted by the State [...]"

    When I watch tutorials on the buttons of the State etc.. I see that Muse allows you to select different States, then highlight the text and change the color to set the color of the text in this State.

    But whenever I select the State I want to change, and then select my text and change its color, it changes the color of all States as a default color to be applied only for a State.

    I get the message "text ranges cannot be edited or formatted by the State. Change to this mode effect all States. "in the window of the States while text is highlighted.

    But people seem to be able to do it just like that. Any help is very appreciated.

    Hello

    States are associated with blocks of text rather than the text itself. Please make sure that the entire text block is selected instead of text to apply changes on different States.

    Please see the attachment.

    Kind regards

    Neha

  • Acrobat adds a small graphical element when converting to a Visio diagram

    I have the diagram Visio multi-page (Visio Professional 2003) that I am trying to convert to PDF (Acrobat 3D Version 8) for distribution. I have forms with links pointing to pages these links seem to be converting correctly, bookmarks generate correctly and everything seems OK, except towards the end of the conversion process, Acrobat up a faint but noticeable graphical element in the upper left corner of each page (see image below). It is nowhere in the drawing and it occurs with several different designs.

    The object appears only when I converted using the "Convert to PDF" selection in the Adobe PDF menu. It does not appear when I create the PDF using the print dialog box.

    I can't understand what this thing or why Acrobat adds. Does anyone have an idea?

    Be consulted in PDF format at 100% Zoom:

    100percent.png

    Partial object read in PDF format to 3000% Zoom:

    3000percent.png

    Hello

    You can try the following workaround right now:

    Just before the conversion of the visio to PDF file, go to the drop down list "Format-> Shadow-> Style" on and select ' 00: None' it. Then save and convert to PDF format.  Creating the Visio file, you can keep these settings that you want, but before conversion to PDF using PDFMaker, above given the configuration must be set to ' 00: None "."

    I hope this helps.

  • Thunderbird does not work in the different State

    I installed Thunderbird on the laptop of a friend and everything works fine and has been for a few years. However, when my friend went on holiday to a different State, Thunderbird would not work. She could connect the laptop to the local wireless internet and browse the web without any problem, but Thunderbird wouldn't work at all.

    I cannot think of any reason why Thunderbird wouldn't work, ideas?

    To sum up, some providers only allow access to their e-mail servers if you connect to the internet using their service. Others offer a special mail server settings for those who travel. Yet a third group assumes that everyone travel at some point and harden their service with passwords and step aside holidays and mobile silliness that invades the United States market particularly secure connection port.

    The short solution is really not use ISP provided email addresses. GMX, Yahoo, hotmail and gmail are free, do not have most of the things stupid ISP continue with more spam and limits and works the same from any internet connection.

  • My computer shuts down is no longer with button closure

    My computer shuts down is no longer with button closure. Works only with button on the computer case.

    * original title - system update updates microsoft windows *.

    Hello

    1 are there any changes or updates made on the computer?

    2. what operating system is installed on the computer?

    3. what happens when you try to shut down the computer?

    4. do you get an error message? If Yes, what is the full and exact error message?

    Step 1:

    Try restarting your computer in safe mode and check if the problem persists.

    a. restart your computer.

    b. when the computer starts, you will see your computer hardware are listed. When you see this information begins to tap the F8 on your keyboard key repeatedly until you are presented with the screen Windows Advanced Startup Options.

    c. using the arrow keys, select the Safe Mode option.

    d. press the Enter key on your keyboard to start Windows Safe Mode.

    e. when Windows starts, you will be at a typical logon screen. Connect to your computer and Windows goes into safe mode.

    f. check if you still have the problem.

    If it works fine in safe mode try performing a clean boot in order to find the cause root.

    Step 2:

    See the article about how to start your computer in a clean boot state.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Note: when the diagnosis is complete do not forget to reset the computer to a normal startup.

    If the problem is not resolved, please provide more information to help you best.

  • I can't drop my icons on the desktop next to the Start button. My 'elements of the locked office' is disabled, and "auto arrange" is unchecked. What can I do so that he abandoned the ions next to the Start button?

    I can't drop my icons on the desktop next to the Start button. My 'elements of the locked office' is disabled, and "auto arrange" is unchecked. What can I do so that he abandoned the ions next to the Start button?

    Hi richardcollis,

    You did changes to the computer before this problem?

    You try to run the system restore that will repair return the computer to the point while it was working fine.

    How to restore Windows XP to a previous state

    Hope the helps of information.

    Please post back and we do know.

  • My window 7 showing message "a problem with the NVIDIA Graphic driver", but I can't download the solution

    My Windows 7 PC at home keep crashing and I keep losting my screen when I played the game on the last 6 months.  After I restart my PC, it says that there was a screen.   I had since a few Update window update driver and try the NVIDIA drivers with no will.  There were a few times he were message indicating the "resolve a problem with the NVIDIA graphics driver" on the taskbar.  When I click on the message and try to download.  It gives me the message that "your computer was not able to download the solution at this time.  Make sure that your computer is connected to the internet, and then try to download again"that had happen all the time, and of course, I had access to the internet all the time!  I'm getting nowhere for solve this problem.  Can anyone help?  I want to know if there is something I need to know the video driver as usual outside the upgrade.

    PS I tried a lot of stuff, running the troubleshooter from the performance.  I had an i7 with plenty of RAM, running only a few program, hard disk error not... etc.  It seems related to the video driver. I update my window.

    Hello Lewie,

    Thanks for posting your query in Microsoft Community Forum.

    1. What is brand and model your computer?
    2. You did it any significant hardware or change software on the computer before this problem?

    I understand that you lose your screen when you play a game. This happens usually if the installed graphics driver has corrupted or unstable. Therefore, I suggest trying the following methods and check if the problem persists.

    Method 1: Run the tool material and devices

    Try running the next fixit and check whether the problem is resolved.

    Hardware devices do not work or are not detected in Windows

    http://support.Microsoft.com/mats/hardware_device_problems/en-us

    Method 2: Update your graphics card

    1 open Device Manager by clicking the Start button, click Control Panel, click System and Security, and then, under System, click the Managerof peripheral . If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    2. in the list of hardware categories, find the display adapters and select the device driver you want to update, and then double-click the device name.

    3. Click tab driver , click Update driver, and then follow the instructions. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    For more information, visit the below mentioned link:
    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    If you are not able to update the device driver via windows update, you can visit your computer or graphics card manufacturer (NVIDIA) Web site and download & install the latest driver. Or contact the manufacturer of your system to do.

    For reference, you can also consult the following Web page. Click on continue to this site Web (not recommended) if you are prompted for any error of certification.

    A problem of NVIDIA graphic driver

    Hope this information is useful. If the problem still persists, please post back for further assistance, we will be happy to help you.

  • Creating a menu with button rollover images

    Hello

    I am building a menu with buttons rollover images. It is the 5 buttons, one under the other.

    I built a class with a background image that changes between the development and the status of non-focus, to make the transfer. To enable the active state, I simply added a transparent gif (width setSpace to cover the entire background).

    The unfocus/update works fine, but when I reached the button up or down, the transparent gif and its area becomes white...

    We can see the background on the right side of the white square...

    Here's the class of the button:

    OK I solved this problem with the help of this thread:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=39506

    Thank you

  • State Refresh buttons

    Hello

    I currently have a problem with States the buttons in my form. I use Jdev 12.1.3. My form contains a scenario master detail. Responsibility of the form:

    It is a scenario master detail to disable the button again for retail (lower toolbar) the disabled property has been set on the links. AgrCode.currentRow.entities [0] .entityState! = 0

    When the new Master toolbar button is the detail toolbar click New button is then activated as such:

    The user can now enter a new record of master and detail. Now at this point if I click on the delete button of the Master toolbar, the disabled property of the new button on the toolbar of detail is not refreshed automatically:

    Make Ctrl + F5 on the form, the new button on the toolbar of detail is disabled.  I would like to know how the Details button can be updated automatically, since now the rollback the recordset is empty.

    Is there a way to make the updating of controls based on their properties?

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:ui ui:composition ' http://Java.Sun.com/JSF/Facelets "xmlns:f =" " http://Java.Sun.com/JSF/core "

                    xmlns:af=" http://xmlns.Oracle.com/ADF/faces/rich "xmlns =" http://Java.Sun.com/jsp/JSTL/Core ">

    < c:set = "res" var value = "#{adfBundle ["resourceBundle"]}" / >

    < af:panelGroupLayout id = "pgl1" styleClass = 'global' partialTriggers = "b3 b2 b1 b11 b13, b14 b6 qryId1 btnLast" >

    < af:panelGridLayout id = "pgl2" >

    < af:gridRow marginTop = "0px" height = "auto" id = "gr1" >

    < af:gridCell columnSpan = "2" halign = "DΘmarrer" id = "gc1" marginEnd = "0px" marginStart = "0px".

    styleClass = "red-Toolbox" >

    < af:panelHeader text = ' #{res.» MASTER}"id ="ph9"/ >

    < af:toolbar id = "tb1" > <! -upper toolbar->

    < af:outputText value = "#{bindings." AgrCode.currentRow.entities[0].entityState}"/ >

    < af:outputText value = "#{bindings." EditIndicator.attributeValue} "/ >"

    < af:button actionListener = "#{bindings." Last.Execute}.

    Disabled = "#{!}" bindings. Last.Enabled or links. Rollback.Enabled}.

    Icon = "#{Resource ['images: Last.png']}" id = "btnLast" partialSubmit = "true" / > "

    < af:button actionListener = "#{bindings." Next.Execute}.

    Disabled = "#{!}" bindings. Next.Enabled or links. Rollback.Enabled}.

    Icon = "#{Resource ['images: Forward.png']}" id = "b3" partialSubmit = "true" / > "

    < af:button actionListener = "#{bindings." Previous.Execute}.

    Disabled = "#{!}" bindings. Previous.Enabled or links. Rollback.Enabled}.

    Icon = "#{Resource ['images: Back.png']}" id = "b2" partialSubmit = "true" / > "

    < af:button actionListener = "#{bindings." First.Execute}.

    Disabled = "#{!}" bindings. First.Enabled or links. Rollback.Enabled}.

    Icon = "#{Resource ['images: First.png']}" id = "b1" partialSubmit = "true" / > "

    < af:button icon = "#{resource ['images: Print.png']}" text = "#{res. PRINT}"id ="b5">

    < af:showPrintablePageBehavior / >

    < / af:button >

    < af:button icon = "#{resource ['images: cancel.png']}" id = "b12" immediate = "true" text = "#{res. '" CLAIRE"}

    action = 'dismantling' partialSubmit = "true" partialTriggers = "b9" >

    < af:resetActionListener / >

    < / af:button >

    < disabled af:button = "#{!}" bindings. DeleteIndicator.attributeValue}.

    Icon = "#{Resource ['images: Delete.png']}" id = "b13" text = "#{res. '" DELETE"}

    actionListener = "#{backingBeanScope.MASTER.showDeletePopUp}" > < / af:button >

    "< af:button disabled =" #{! bindings.Commit.enabled} "icon =" #{resource ['images: Save.png ""]} "id ="b11 ".

    Text = "#{res.» SAVE}"actionListener="#{backingBeanScope.MASTER.showPopup}"/ >

    < af:button actionListener = "#{bindings." CreateInsert1.execute}.

    Disabled = ' #{bindings. " "{[Rollback.Enabled}" icon = "#{resource ['images: Add.png]}"]} "id ="b14 ".

    Text = "#{res.» NEW} "/ >"

    < childCreation = "deferred" autoCancel af:popup = "disabled" id = "p2".

    Binding = "#{backingBeanScope.Master.deletePopUp}" >

    < af:dialog id = "d2" title = "#{res.» Type CONFIRM}"'Cancel' = >

    < af:outputText value = "#{res.» DO_YOU_WANT_TO_DELETE}"id ="ot7"/ >

    < f: facet name = "buttonBar" >

    < af:button text = "Ok" id = "b8" action="#{backingBeanScope.MASTER.commitDelete}"/ >

    < / f: facet >

    < / af:dialog >

    < / af:popup >

    < childCreation = "deferred" autoCancel af:popup = "disabled" id = "p3".

    Binding = "#{backingBeanScope.Master.savePopup}" >

    < af:dialog id = "d3" title = "#{res.» ALERT type}"="Cancel">

    < af:outputText value = "#{res.» DO_YOU_WANT_TO_SAVE}"id ="ot6"/ >

    < f: facet name = "buttonBar" >

    < af:button text = "Ok" id = "b7" action="#{backingBeanScope.MASTER.commit}"/ >

    < / f: facet >

    < / af:dialog >

    < / af:popup >

    < / af:toolbar >

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow marginTop = "0px" height = "auto" id = "gr2" >

    < af:gridCell halign = "stretch" id = "gc2" marginStart = "0px" width = "50%" >

    < af:panelGroupLayout id = "pgl3" layout = "vertical" >

    <! - train here - >

    < / af:panelGroupLayout >

    < / af:gridCell >

    < / af:gridRow >

    < af:gridRow id = "gr3' height = 'auto' marginBottom marginTop"0px"="0px"= >

    < af:gridCell columnSpan = "2" halign = "DΘmarrer" id = "GCQ4" marginEnd = "0px" marginStart = "0px".

    styleClass = "show table" >

    < af:panelTabbed id = "pt1" >

    < af:showDetailItem text = ' #{res.» ATTACHED_DOCUMENTS}"id ="sdi2">

    < af:panelGroupLayout id = "pgl14" layout = "vertical" styleClass = "display-with-bar-table."

    partialTriggers = "b9, b10" >

    < af:toolbar id = 'tb3"styleClass ="data-bar-button">

    < af:panelHeader text = "" id = "ph7" / > "

    < disabled af:button = "#{!}" bindings. Delete2.enabled}.

    Icon = "#{Resource ['images: Delete.png']}" id = "b10" text = "#{res. '" DELETE"}

    actionListener = "#{bindings." Delete2.execute} ">"

    < af:showPopupBehavior popupId = "p4" / >

    < / af:button >

    < af:button text = ' #{res.» CLAIRE}"id ="b16"disabled =" #{!} " bindings. Delete2.enabled}.

    Icon = "#{Resource ['images: Cancel.png']}" "

    actionListener = "#{backingBeanScope.MASTER.clearAttDocs} '"

    immediate = "true" / >

    < disabled af:button = ' #{bindings. " AgrCode.currentRow.entities [0] .entityState! = 0} »

    Icon = "#{Resource ['images: Add.png']}" id = "b9" text = "#{res. '" NEW"}

    actionListener = "#{bindings." CreateInsert2.execute} "/ >"

    < childCreation = "deferred" autoCancel af:popup = "disabled" id = "p4" >

    < af:dialog id = "d4" title = "#{res.» CONFIRM"}

    dialogListener = "#{backingBeanScope.MASTER.deleteAttDocs}" >

    < af:outputText value = "#{res.» DO_YOU_WANT_TO_DELETE}"id ="ot13"/ >

    < f: facet = 'buttonBar' name / >

    < / af:dialog >

    < / af:popup >

    < / af:toolbar >

    < af:table value = "#{bindings." Var DETAIL.collectionModel}"="row ".

    lines = ' #{bindings. " DETAIL.rangeSize}.

    styleClass = "MASTER-table-the data table 1" scrollPolicy = "page".

    emptyText = "#{bindings." DETAIL.viewable? "{'No data to display.': 'Access Denied.'}".

    rowBandingInterval = '0 '.

    selectedRowKeys = ' #{bindings. " DETAIL.collectionModel.selectedRow}.

    selectionListener = "#{bindings." DETAIL.collectionModel.makeCurrent}.

    rowSelection = 'single '.

    fetchSize = "#{bindings." DETAIL.rangeSize}"id ="t1 ".

    partialTriggers =": b9: b10" > "

    < / af:table >

    < / af:panelGroupLayout >

    < / af:showDetailItem >

    < / af:panelTabbed >

    < / af:gridCell >

    < / af:gridRow >

    < / af:panelGridLayout >

    < / af:panelGroupLayout >

    < / ui:composition >

    Thank you

    Mohamed

    Conversely, retail it s new button must have a partial trigger with the id of the Master Clear button: b9-> b12 instead (assuming these are the corresponding id´s).

    Carlos

  • Case statement with a select &amp; date in

    Hello everyone,

    This is my first discussion, so please bare with me.

    I am trying to write a case statement with a select statement that compares the dates.

    When I write an instruction box with a select statement in it compares everything but dates it works fine.  Once the date is there, he collapses.

    Here is a super simple example of what I'm trying to do, "b.in_serv_dt" is a date

    Select unit_no,

    case when ((sélectionnez b.in_serv_dt de b unit_dept_comp_main où a.unit_id = b.unit_id et b.in_serv_dt) > = 1 January 2012 "") then "everybody wins."

    When ((sélectionnez b.in_serv_dt dans l'unit_dept_comp_main b où a.unit_id = b.unit_id et b.in_serv_dt) < = 1 January 2012 "") then "Nobody wins".

    end

    of ottawa_unitmain_v one

    Any help would be greatly appreciated

    Thank you very much

    Hello

    your statement of formatting:

    Select unit_no
    case when ((select b.in_serv_dt
    of unit_dept_comp_main b
    where a.unit_id = b.unit_id
    and b.in_serv_dt
    ") > = JANUARY 1, 2012"
    ) and then "everybody wins."
    When ((select b.in_serv_dt
    of unit_dept_comp_main b
    where a.unit_id = b.unit_id
    and b.in_serv_dt
    )<=>
    ) and then "no winner".
    end
    of ottawa_unitmain_v one

    I see "partial conditions": <... and="" b.in_serv_dt="">> that have no meaning.
    I guess it's a kind of "typo" and I ignore them.
    If the statement is:
    Select unit_no
    case when ((select b.in_serv_dt
    of unit_dept_comp_main b
    where a.unit_id = b.unit_id
    ") > = JANUARY 1, 2012"
    ) and then "everybody wins."
    When ((select b.in_serv_dt
    of unit_dept_comp_main b
    where a.unit_id = b.unit_id
    )<=>
    ) and then "no winner".
    end
    of ottawa_unitmain_v one

    I guess that the "b select" retrieve one line, through the design of database (forced...)

    As already written: be careful with data types: avoid "implicit conversions" (when you compare different data types, Oracle has convert the data type of the other side, a side example: "mystring = mynumber" is transformed into 'TO_NUMBER (mystring) = mynumber', or 'mydate = mystring' translates mydate = TO_DATE (mystring, ) ")
    Even better: use explicit conversions, use explicit formats when necessary.
    Best: use no conversion on columns from the constants, but use the correct data type for the constant.

    With this in mind:
    Select unit_no
    case when ((select b.in_serv_dt
    of unit_dept_comp_main b
    where a.unit_id = b.unit_id
    ) > DATE = ' 2012-01-01'
    ) and then "everybody wins."
    When ((select b.in_serv_dt
    of unit_dept_comp_main b
    where a.unit_id = b.unit_id
    )<= date="">
    ) and then "no winner".
    end
    of ottawa_unitmain_v one
    But note that b.in_serv_dt EQUAL to 1 January 2012 (at 00:00:00) is OK for both WHEN the conditions; then the a "win."

    Now: the subselect statement is identical in the 2 options of the case... You could work differently: (I add the "ELSE" in case one line as NULL in_serv_dt;) I guess that an INNER JOIN is OK, maybe you need a LEFT OUTER JOIN (if some lines of A have no corresponding row in B)

    SELECT a.unit_no
    , CASE WHEN b.in_serv_dt > = DATE '' 2012-01-01
    THEN "everyone wins"
    WHEN b.in_serv_dt< date="">
    While "Nobody wins".
    ELSE ' who knows... ". »
    END who_wins
    Of ottawa_unitmain_v one
    INNER JOIN unit_dept_comp_main b
    ON a.unit_id = b.unit_id
    ;

    Best regards

    Bruno Vroman

Maybe you are looking for