Help for Delete command syntax

1. When i use command:
select * from families f, type_family t where f.family_name = t.family and f.type_id != t.type_id
I get the output successfully.
2. But I want to run a command like:
Delete from families f, type_family t where f.family_name = t.family and f.type_id != t.type_id
then it is giving me error....
Any solution for this Delete command??????????????

delete from families where family_name=(select family from type_family) and type_id 1=(select type_id from type_family)
this query :-
select family from type_family returs more than one more row
you should use "In" operator. Hey study the ORACLE Basic Documents you doubts will be clear..
Thanks & Regards,
Pavan Kumar N

Similar Messages

  • Help for delete data!!!

    hi,
    i want to delete some data from a table and i wrote a sql query likes that
    DELETE
    FROM crm2.employee e
    WHERE e.lastname = 'VOX'
    AND length(e.loginname) >= 39
    AND e.pkey NOT IN (SELECT employeegroup FROM groupmember)
    AND ROWNUM < 2;
    although that query deletes 1 row but it takes too much time to delete.
    how can i fix that problem, i want to do that delete operation very fast.
    PS: groupmember is the parent table of the crm2.employee
    Thanks...

    This should help you delete your data faster.
    When your query takes too long ...

  • In need of help for a command

    Hello again evryone,
    So far you guys have been of great help. Now I have another
    question. It is related to the command
    sprite(spriteNumber).intersects spriteNumber. In my last post I
    asked how to make a ball bounce realisticly, however this idea is
    now replaced by the platform at the bottom of the screen shooting
    the boxes above (Space Invaders sort of). For those who are not
    familiar with my previous post the game is: square shapes falling
    down from the top of the screen and the player has to shoot them
    all to advance with his ship at the bottom of the screen (ship is
    controlled left/right by the mouse, shoot - LMB). To detect if the
    bullet sprite has hit a box I use the command
    sprite(BulletBeingHere).intersects(BoxBeindHere). But with this
    command I do not get consistent results - it detects that the two
    sprites intersect whenever it feels like it. I cannot recorgnise a
    pattern, it is absolutely random (from my point of view). I will
    attach the piece of code I am using. Please if you can guide me
    into fixing this. I suspect I am doing something wrong with the
    sprites' properties, the sprites are bitmaps firs one is box,
    second one is oval-shaped object, both with Ink:Matte (from
    Property Inspector), so to 'merge' with background. In the code:
    custom handler detectHit, spNum is the number of the box sprite, 11
    and 12 are two bullets sprites, sprite(spNum).locV = -600 kicks out
    of the stage the box which has been hit by the bullet, sprite(11 or
    12 here).locV = 0 resets the bullets in their original position.
    P.S. I get this weird problem with Director not being able to
    publish/compile properly the project, everything is working just
    fine whilst in Director, and after publishing to exe file, either a
    critical error, or background is not displayed, or some sprite is
    not displayed. But I don't think that is related to the above
    problem.
    Thanks

    > Looks like you are not using the intersect function
    correctly (note: it does
    > not end with an "s"). It doesn't return a boolean. It
    returns a rectangle of
    > the overlap region. If they don't overlap it will give
    you a value of rect(0,
    > 0, 0, 0)
    There's nothing wrong with 'intersects()' - from the docs:
    sprite...intersects
    Usage
    -- Lingo syntax
    sprite(sprite1).intersects(sprite2)
    sprite sprite1 intersects sprite2
    Description
    Keyword; operator that compares the position of two sprites
    to determine
    whether the quad of sprite1 touches (TRUE) or does not touch
    (FALSE) the
    quad of sprite2.
    If both sprites have matte ink, their actual outlines, not
    the quads,
    are used. A sprite’s outline is defined by the nonwhite
    pixels that make
    up its border.
    This is a comparison operator with a precedence level of 5.

  • Need Help for Ping command?

    I have a basic question ,In windows machine we use ping -t IP address command for continous ping until we stop with Ctrl+C, so is there any method in cisco routers to use the Ping command for infinity until we stop manuallay.

    Every you may want to know about the ping commands is available here http://www.cisco.com/en/US/products/sw/iosswrel/ps1831/products_command_reference_chapter09186a00800d9840.html#1018913, and here http://www.cisco.com/en/US/products/sw/iosswrel/ps1831/products_command_reference_chapter09186a00800d9840.html#1019084
    Cheers,
    Josef.

  • Help for correct generics syntax

    I'm trying to write a generics version of an old non-generics program. But after a few hours trials in this afternoon, I still fails in compile.
    Error message from javac is:
    Library3.java:55: cannot find symbol
    symbol  : constructor SoftReference(BookShelf,java.lang.ref.ReferenceQueue<BookShelfReference>)
    location: class java.lang.ref.SoftReference<BookShelf>
        super(shelf, collectedQueue);
        ^
    1 errorAnd below is the code:
    /* Library3.java
    * from Item 11, Java Pitfalls, M.Daconta et al
    * John Wiley & Sons, 2000
    * trying to adapt to Java Generics feature
    * hiwa, 13 Aug. 2007
    import java.util.Random;
    import java.lang.ref.SoftReference;
    import java.lang.ref.ReferenceQueue;
    class TextPage
      char[] symbols = new char[300];
    class Book
      String      name;
      TextPage    pages[] = new TextPage[100];
      public Book ()
        for (int i = 0; i < pages.length; i++)
          pages[i] = new TextPage();
    class BookShelf
      String subject;
      Book[] books = new Book[100];
      public BookShelf (String subject)
        this.subject = subject;
        for (int i = 0; i < books.length; i++)
          books[i] = new Book();
        if (subject.equals("Sports"))
          books[0].name = "History of Ping Pong";
    class BookShelfReference extends SoftReference<BookShelf>
      String subject;
      //?? what should be the correct syntax here?
      static ReferenceQueue<BookShelfReference> collectedQueue
        = new ReferenceQueue<BookShelfReference>();
      public BookShelfReference (BookShelf shelf)
        //?? and here?
        super(shelf, collectedQueue);
        this.subject = shelf.subject;
    class GarbageMonitor extends Thread
      ReferenceQueue queue;
      public GarbageMonitor (ReferenceQueue queue)
        this.queue = queue;
      public void run ()
        while (true)
          try
            BookShelfReference shelfRef =
              (BookShelfReference) queue.remove(5000);
            System.out.println("Monitor: Shelf subject '" +
                shelfRef.subject + "' was collected.");
          catch (Exception e)
          {   break;  }
    public class Library3
      public static void main (String args[])
        String subjects[] = { "Sports", "New Age", "Religion",
          "Sci-Fi", "Romance", "Do-it-yourself",
          "Cooking", "Gardening", "Travel",
          "Mystery", "Fantasy", "Computers",
          "Business", "Young readers", "JW Books" };
        GarbageMonitor monitor =
          new GarbageMonitor(BookShelfReference.collectedQueue);
        monitor.start();
        BookShelfReference[] shelves = new BookShelfReference[25];
        int checkIndex = 10 + getRandomIndex(15);
        for (int i = 0; i < shelves.length; i++)
          String subject = subjects[getRandomIndex(subjects.length)];
          System.out.println("Creating bookshelf: " + (i + 1) +
              ", subject: " + subject);
          // Keep track of shelves as SoftReference objects
          shelves[i] = new BookShelfReference(new BookShelf(subject));
          // at a random interval check to see where the last
          //  "Sports" shelf was
          if (i == checkIndex)
            System.out.println("Checking for Sports...");
            for (int j = i; j >= 0; j--)
              // get BookShelf reference from SoftReference
              BookShelf shelf = (BookShelf)shelves[j].get();
              if (shelf != null)
                if (shelf.subject.equals("Sports"))
                  System.out.println();
                  System.out.println("Shelf " + (j + 1) +
                      " is Sports");
                  System.out.println("First book is: " +
                      shelf.books[0].name);
                  System.out.println();
                  break;
                else
                  System.out.println("No match. " +
                      "Subject was: " + shelf.subject);
      private static Random rnd = new Random(System.currentTimeMillis());
      private static int getRandomIndex (int range)
        return ((Math.abs(rnd.nextInt())) % range);
    }

    About ten minutes after posting previous post, I found the correct syntax by chance:
    The previous code
      static ReferenceQueue<BookShelfReference> collectedQueue
        = new ReferenceQueue<BookShelfReference>();should be:
      static ReferenceQueue<BookShelf> collectedQueue
        = new ReferenceQueue<BookShelf>();But I still don't understand why the content of the referencequeue is specified as a referent type, not a reference type.

  • Need help for deleting XI message performance header

    Hi,
    In our production system, we are sheduling job SAP_XMB_PERF_REORG to removes all XI message performance headers (as per SAP note 820622). In this job we are using report SXMS_PF_REORG. But when are trying to execute this report, it asks for some input parameter.
    Can anybody gives us detailed information about these parameters? Below are the 5 input parameters.Also please let us know whether all these parameters are mandatory or optional.
    1. Days Until Raw Data Deletion
    2. Days Until Delete Aggregation
    3. Block Size
    4. Max Data Record No. per Select
    5. Parallelization Level
    Thanks & Regards,
    Sari

    per 5: With this parameter you can activate the built-in parallelizer. This one is deactivated per default and it was implemented for dealing with giant backlogs. If, for example, the reorganization did not run for quite some time and there are millions of data records remaining in the database, the parallizer is designed to deal with it. However, activating the parallelizer will put a high load to the database and it will also consume a large percentage of CPU resources.
    What happens in detail is this:when running this report as batch job having the parallelizer deactivated the job will simply use it's own background work process. When activating the parallelizer this background work process starts up several parallel tasks running in dialog work processes. This is pretty important as entire message processing is done in dialog work processes. Consequnently a large number of parallel reorg tasks will speedup the reorganization, but it will also impact the overall performance of message processing.
    Enter -1 to make the system default 1 active (meaning: degree of paralleization  = 1 = parallelizer off) or enter any value 2 .. 5 to activate the parallelizer and to run up to 5 reorg tasks in parallel.
    As lined out above there is no need in the normal case for setting all these parameters explicitely. Simply run the report using the default -1.
    In case you do want to use the parallelizer you should adjust the number of data records read per select (4.) to an accordingly. This number should at least be 10 times higher that the degree of parallelism (5.) multiplying by the block size (3.).
    Example: you would like to run 4 reorg tasks in parallel and each task shall delete up to 6,000 records in one go.
    Hence,
    Max Data Record No. per Select >= 10 * 4 * 6,000 = 240,000
    Here you might want to set Max Data Record No. per Select to 250,000.
    Best regards,
    Harald Keimer
    XI Development Support
    SAP AG, Walldorf

  • Delete Command button doesn't take more than one parameter while update command does

    Hi,
    Does anybody have an idea WHY sharepoint does not send the parameter information to a delete command while the exact same parameter is being sent to the Update command?, the data is being pulled from an asp:TextBox bound  to the 'comments' field in
    the data source which happens to be the field I need to update, the code works for Update commands but not for Delete commands. Unfortunately I have to use sharepoint designer because SP is restricted at work, so I can't write code behind the scenes. I would
    appreciate any help, here's my code
    <%@ Page Language="C#" masterpagefile="../_catalogs/masterpage/v4.master" title="Test" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document" meta:webpartpageexpansion="full" %>
    <%@ Register tagprefix="SPSWC" namespace="Microsoft.SharePoint.Portal.WebControls" assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register tagprefix="cc2" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register tagprefix="WebUI" namespace="Microsoft.Office.InfoPath.Server.Controls.WebUI" assembly="Microsoft.Office.InfoPath.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register tagprefix="WebPartPages" namespace="Microsoft.SharePoint.WebPartPages" assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content id="Content1" runat="server" contentplaceholderid="PlaceHolderMain">
    <asp:SqlDataSource runat="server" ProviderName="System.Data.SqlClient" UpdateCommand="sp_updateStartedApprovals" ID="SqlDataSource2" ConnectionString="Data Source=MCARLOSJ2;User ID=sa;Password=****;Initial Catalog=MyDB;" SelectCommand="SELECT * FROM mainView " __designer:customcommand="true" UpdateCommandType="StoredProcedure" DeleteCommand="sp_rejectApprovals" DeleteCommandType="StoredProcedure">
    <UpdateParameters>
    <asp:Parameter Name="comments" Type="String"/>
    <asp:parameter Name="id" Type="Int32" />
    </UpdateParameters>
    <DeleteParameters>
    <asp:Parameter Name="comments" Type="String"/>
    <asp:parameter Name="id" Type="Int32"/>
    </DeleteParameters>
    </asp:SqlDataSource>
    <asp:GridView runat="server" id="GridView1" AutoGenerateColumns="False" DataSourceID="SqlDataSource2" DataKeyNames="id" GridLines="None" ForeColor="#333333" CellPadding="4">
    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
    <Columns>
    <asp:boundfield DataField="description" HeaderText="Status" ReadOnly="True" SortExpression="description">
    </asp:boundfield>
    <asp:boundfield DataField="Employee Last Name" HeaderText="Employee Last Name" ReadOnly="True" SortExpression="Employee Last Name">
    </asp:boundfield>
    <asp:boundfield DataField="Employee First Name" HeaderText="Employee First Name" ReadOnly="True" SortExpression="Employee First Name">
    </asp:boundfield>
    <asp:boundfield DataField="Pending approval" HeaderText="Pending approval" ReadOnly="True" SortExpression="Pending approval">
    </asp:boundfield>
    <asp:boundfield DataField="Atnmt %" HeaderText="Atnmt %" ReadOnly="True" SortExpression="Atnmt %">
    </asp:boundfield>
    <asp:boundfield DataField="Country" HeaderText="Country" ReadOnly="True" SortExpression="Country">
    </asp:boundfield>
    <asp:boundfield DataField="comments" HeaderText="comments" ReadOnly="True" SortExpression="Comments">
    </asp:boundfield>
    <asp:boundfield DataField="processStartedDate" DataFormatString="{0:MM/dd/yyyy}" HeaderText="Date Opened" ReadOnly="True" SortExpression="processStartedDate">
    </asp:boundfield>
    <asp:boundfield DataField="Due Date" DataFormatString="{0:MM/dd/yyyy}" HeaderText="Due Date" ReadOnly="True" SortExpression="Due Date">
    </asp:boundfield>
    <asp:templatefield>
    <ItemTemplate>
    <asp:TextBox runat="server" id="comments" Text='<%# Bind("comments") %>'/>
    <asp:LinkButton runat="server" Text="Approve" id="Button1" CommandName="Update" CausesValidation="False" />
    <asp:LinkButton runat="server" Text="Reject" id="Button2" CommandName="Delete" CausesValidation="false"/>
    </ItemTemplate>
    </asp:templatefield>
    </Columns>
    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <PagerStyle HorizontalAlign="Center" BackColor="#284775" ForeColor="White" />
    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <EditRowStyle BackColor="#999999" />
    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    </asp:Content>

    Hi,
    you have multiple options here:
    1) upload as a script:
    a) save the statements in a file
    b) go to sql workshop > sql scripts
    c) upload script and run the script
    2) run the script line by line in the sql commands window directly:
    a) go to sql workshop > sql commands
    b) copy all statements there
    c) highlight the first statement with the mouse
    d) click "run" or press <ctrl>+enter
    3) use sql developer
    a) go to http://www.oracle.com/technology/products/database/sql_developer/index.html
    b) download and install
    c) connect to XE
    d) run the statements there
    Regards,
    ~Dietmar.

  • Function modules for deleting photos in archive

    Hi all,
    I got the requirement to delete the photos which was uploaded through archive link (OAAD).
    Could I know which function modules should I use to delete the link as well as document?
    When I searched in forums I found some function modules:
    ARCHIVE_OBJECT_DELETE
    HRXSS_COD_DELETE_OLDPHOTO
    But these function modules doesnot exists in my client.
    Could you suggest me some other function modules with parametrs passing.
    Also explain me how to pass parameters for SCMS_DOC_DELETE function module.Is this helpful for deleting of photos?
    Thanks in advance.

    Hi Harika,
    you could try using the FM ARCHIV_DELETE_META.
    Also, the FM HRXSS_COD_DELETE_OLDPHOTO appears to have been create for this purpose of deleting employee photos; and only requires the personnel number to be entered.
    KR,
    Karen.

  • SAP help for release-dependent modifications

    Hi,
    I like to know the addition features of ABAP depending on the Version. I know you can find them in the SE80 using the F1-help. Unfortuantely I don't have a system with current release level available at the moment.
    Is there another possibility to access this F1-help provided within the ABAP-Editor in order to receive all necessary information on release updates.
    Thanks in advance for your help
    kind regards
    Torsten

    Thanks, but I have looked already in the release notes as well as in the SAP NW Developer guide.
    I could not find the ABAP f1-help for the command which might in clude the release changes. Does anybody have an idea where to find it.
    Bye
    Torsten

  • HT1338 Guys I need some help with deleting junk mail/bulk mail...I keep getting this air message that says THE IMAP COMMAND "UID COPY" (TO DELETED MESSAGES) FAILED FOR THE MAILBOX "BULK MAIL" WITH SERVER ERROR: UID COPY SERVER ERROR- PLEASE TRY AGAIN LATE

    I need help in deleting my junk mail/bulk mail...when I dump junk mail and bulk mail into the trash it not allowing me to delete all mail only some. HELP!!

    What program are you using?  And what version?

  • UPDATE command syntax for mulitple checkbox update

    Hi,
    I intend update the checkboxes by id in bulk.
    My table is below. I want to update the selected form_id
    checkboxe and their
    values accordingly. That, I click the checkboxes (containin
    form_id
    information) of 1, 3, and 6; and I check their respective
    fields for column
    check01 and check02.
    form_id check01 check02
    1 1 0
    2 0 1
    3 0 0
    4 1 1
    5 1 1
    6 1 0
    I am using below code for deleting. I can do insert into. But
    I could not
    figure out the correct syntax for UPDATE command similar to
    below example.
    Sample for deleting:
    DELETE FROM ADS
    WHERE AD_ID IN (varCheckBox)
    Thank you
    Hakan

    Check here for SQL UPDATE syntax..
    http://www.w3schools.com/sql/sql_update.asp
    Regards,
    ..Trent Pastrana
    www.fourlevel.com
    "Hakan834" <[email protected]> wrote in message
    news:e9tdd8$ppk$[email protected]..
    > Hi,
    >
    > I intend update the checkboxes by id in bulk.
    >
    > My table is below. I want to update the selected form_id
    checkboxe and
    > their values accordingly. That, I click the checkboxes
    (containin form_id
    > information) of 1, 3, and 6; and I check their
    respective fields for
    > column check01 and check02.
    >
    > form_id check01 check02
    > 1 1 0
    > 2 0 1
    > 3 0 0
    > 4 1 1
    > 5 1 1
    > 6 1 0
    >
    > I am using below code for deleting. I can do insert
    into. But I could not
    > figure out the correct syntax for UPDATE command similar
    to below example.
    >
    > Sample for deleting:
    > DELETE FROM ADS
    > WHERE AD_ID IN (varCheckBox)
    >
    >
    > Thank you
    >
    > Hakan
    >

  • Please help I just accidentally deleted a very very important note from my "Notes" on my iPhone 4s.  How can I get it back? Is there a "Trash" file somewhere for deleted notes?  Thank you, Susan

    Please help I just accidentally deleted a very very important note from my "Notes" on my iPhone 4s.  How can I get it back?
    Is there a "Trash" file somewhere for deleted notes?
    Thank you,
    Susan

    Had you never backed up the phone before? When you saw the iTunes logo and cable, the device was in recovery mode. The data was already lost. The only way to recover from that is to restore the device, which will delete all of your data. You will only be able to restore to your last backup, whenever that was. Sorry this happened, but this highlights the importance of doing regular backups. The backup is the only protection you have against a problem like this.

  • Need help for record deletion from custom table

    Hi friends
    I have to write a custom program which will be generic to delete any table record with date field.
    This program needs to be generic (should be able to delete records from any custom table) in nature with selection screen parameters as:
    Table Name and Number of Days prior to which records are deleted, both mandatory.
    Program Flow:
    1.     From number of days calculate date before which records are deleted, ( current date u2013 no. of days = past date).
    2.     Custom table have date field, delete records prior to that date.
    3.     Program may be scheduled for background job, put default values for both fields. No. of days should not be less than 60.
    4.     Classical Report output with number of records deleted.
    My query is how will I know the name of the Date field so that I can write a DELETE query.
    If I use 'DDIF_FIELDINFO_GET' it gives me all field names but how to filter out?
    with regards
    samikhya

    Hi
    I have added  field on the selection screen as p_fieldname and got the F4 help for it , so that the user will get the field name run time as per the table name.
    Now I am facing problem while writing the DELETE query.
    I wrote like
    DELETE (fp_tab)
    where (fp_fieldname) LE date
    It is not working. I also tried with taking a string to concatenate fp_fieldname, LE and date to l_string
    when I write like this:
    DELETE (fp_tab)
    where (l_string) , sy-subrc is getting 4 and no records are getting deleted.
    I do not understand where the dynamic Delete is failing??
    with reagards
    Samikhya

  • Problem with 'LS' command syntax for generating 'recursive' files list

    I'm having trouble getting a recursive (-R) directory listing of the contents of a flash drive --
    -- i.e., when I run the 'ls' command with the -R switch (in Terminal), I get either a recursive directory of what appears to be 'all volumes' (i.e., a very large file) or a zero-byte (empty) file.
    Terminal also keeps reporting "No such file or directory" but I don't know what it's referring to (it reports it with both the 'zero byte' listing and the 'large file' listing).
    Obviously, I'm making some 'syntax error' but I don't know what it is.
    Assuming the following . . .
    User = MK
    Flash drive = NO NAME
    . . . what is the correct command syntax to list only the contents of the flash drive (not 'all volumes')?
    My last try (it doesn't work) was:
    *ls -RTlp /Users/MK/Volumes/NO\ NAME > /Users/MK/Documents/flashdrive.dir*
    Thanks.

    Re: the original post, I should clarify that what I'm looking for is the syntax that will generate the recursive list of the flash drive's files +without first logging the flash drive+ (NO\ NAME) +as the working folder+.
    If I do the latter, I can get the recursive listing easily enough.
    What I haven't been able to do is generate the listing without first logging NO\ NAME as the working folder.
    Thanks.

  • Export command syntax for OA page in R12

    Hi,
    Can any one let me know the syntax for export command for an OA page in R12.
    I have tried with the 11i export command, but could not get the page.
    Thanks,
    Divya

    Hi,
    sorry, wrong forum (its about JDeveloper and ADF) - See: OA Framework
    Frank

Maybe you are looking for

  • How to set file names?

    Using TCS 5, RH11, FM12, all patched up, if I set a marker, such as "Filename" in FrameMaker, can RoboHelp use the contents of that marker to set the file name of the HTML file it creates? How? Thoughts? Cheers, Sean

  • RPC Style Web Service and SSL

    Hi, Has anyone tried (and maybe succeeded) in accessing an RPC-style Web Service deployed on WebLogic Server 6.1 using SSL? I have a Web Service deployed and am able to access it using JNDI and the weblogic.soap.http.SoapInitialContextFactory INITIAL

  • Will Lightroom 5 work in Apple OSX Yosemite?

    Will Lightroom 5 work in Apple OSX Yosemite?

  • ABAP Programming or JAVA programming, in SAP - Which has got the edge?

    Hi, I've been intrigued by the use of JAVA in  SAP. Though I'm a novice and have been working only on ABAP, I would like to know which is better. Will JAVA overtake ABAP in future(in its use within SAP ofcourse! )? I would like to know the pros and c

  • Creating Hot Spots in DPS

    I have a spot where I would like the same position to have both the open and the close button. For example, an image with a little "+" icon : when you tap the "+" icon, a box opens up with information, and the "+" icon changes to an "x" icon (the "x"