Possibility to delete records in two different table in the same DB

Regarding the title of the Message, if it is possible, please show me the SQL (using MS SQL 2000) command to perform this operation. Thank you very much.

clixmax wrote:
> Regarding the title of the Message, if it is possible, please show me the SQL code
> command (using MS SQL 2000) to perform this operation. Thank you very much.

SET NOCOUNT ON

REMOVE tableOne
WHERE someCondition = #form.someCondition #.

REMOVE tableTwo
WHERE someCondition = #form.someCondition #.

SET NOCOUNT OFF

Tags: ColdFusion

Similar Questions

  • Insertion of records in two different tables at the same time?

    Hello everyone, I have question about inserting records in two different tables at the same time, I'm looking for is by the way a unique id, which is created in the first statement insert to the second insert statement. Example of this problem:

    < cfquery name = "addRecords1" datasource = 'test' >

    Insert Into Table1 (name, Date, age)

    Values (< cfqueryparam cfsqltype = "cf_sql_char" value = "#arguments.) "Name # ' >.

    < cfqueryparam cfsqltype = 'cf_sql_date' value = '#arguments. "Date # ' >.

    < cfqueryparam cfsqltype = "cf_sql_int" value = "#arguments. Age #"(>); "

    Select SCOPE_IDENTITY() as RecID;

    < / cfquery >

    < cfquery name = "addRecords2" datasource = 'test' >

    Insert into Table2(Company,City,Date,ID)

    Values (< cfqueryparam cfsqltype = "cf_sql_char" value = "#arguments.Company #" >,)

    < cfqueryparam cfsqltype = "cf_sql_char" value = "" #City # ">,"

    < cfqueryparam cfsqltype = 'cf_sql_date' value = "" #Date # ">,"

    ( < cfqueryparam cfsqltype = "cf_sql_int" value = "How to pass RecID to insert in this table?" >).

    < / cfquery >

    In this example, I'm inserting records in table 1 and creation of IDENTITY SCOPE as RecId. I would like to pass this id and insert it in my table 2. This Id, I'll use in my second table as an identifier. If anyone knows anything about this please let me know. Thank you.

    );
    

    QueryName - DOT - ColumnName, so it should be:

    );
    

    HTH,

    ^_^

  • possible to have 2 different application fields for two different clips at the same time

    Hello

    possible to have 2 different application fields for two different clips at the same time for the classification match in terms of the scope, only not to the eye?

    Not that I know of.  And Yes, it would be very useful. As would the ability to go back 2 in reading monitor and a button "game clip under the read head 1. Sigh.

    Neil

  • Is it possible to use two different computers with the same adobe - ID and the same adobe license?

    Is it possible to use two different computers with the same adobe - ID and the same adobe license?

    Hi Morten,

    Yes, you can have your subscription or your license installed on two different computers with the same adobe id, however use one at a time.

    Please let us know if you have any questions, more about it.

  • can I display different tables at the same time?

    Hi all

    It is probably a newbie question, but is it possible to display different tables at the same time? I use SQL Developer 1.5.5 and I seem to be unable to display several tables at the same time, whenever I chose to open another table, the old table disappears. In other words, the Bulletin Board only switches to your new choice in the table list navigation. Any ideas anyone?

    Kind regards
    WF

    Menu item "Tools-> Preferences-> database-> ObjectViewer Parameters"; Make sure that "automatically freeze object viewer Windows" is checked.

    HTH.

    Hrsg.:.

  • How to divide the screen into two parts in order to see the two different parts of the same file? [Suggestion] [Android]

    I am Brazilian and I use Adobe Acrobat Reader DC a lot. I would suggest an implementation of features present in the PC, I missed a lot of things on Android, which is 'New window' or something like that, like split the screen into two parts in order to see the two different parts of the same file.

    For smartphones, its use is restricted, but for tablets, it can be really useful, because it allows the display of two distinct points of the same file,

    I have reduced considerably the use of paper using this application, however, I need to navigate the file always pick up a few points seen earlier, which causes a lot of discomfort compared to printed documents.

    This is a suggestion, but I would like it to be considered.

    Thank you for your request. We have taken note of the same and must try to integrate it into one of our future releases.

    Thank you.

  • Culture in two different places in the same page

    What on Earth, I want to crop in two different places in the same page. For example, I want to keep something in the upper part and something in the lower part, but skip the other parts. What happens on Earth, I can do that, gentlemen?

    There is a rectangle of cropping by page.  What the parties 'ignored' would look like? Flat white?

  • How to find the same column name in different tables in the same schema

    Hello

    I find the 'ename' column name in different tables in the same schema.

    Thank you
    Nr

    Hello

    Try this query

    Select column_name, table_name from user_tab_columns where column_name = 'ENAME ';

    Award points and end the debate, if your question is answered or mark if she was...

    Kind regards

    Lacouture.

  • appearing in two different colors at the same time container attached screenshot.

    post.JPGHello

    I am very impressed with this site's Look, you can see that
    in this the container showed up in two different colors at the same time as shown in the attached screenshot.

    Please tell me how to get there?

    A part is loading advertising and other view their business rules.

    Please tell me how to get this behavior

    Because when I use the Application container = 'black' background color, it displays the container integer oiail color.

    Help, please

    Thanks in advance.

    There are many ways to achieve this. We can be to use the background image for the application. Other means may be to use various containers (Panel, canvas etc with background pictures) to get this look. Think of it in HTML view. How you can use the div tags to your page layout, you can use various containers of Flex to your page layout.

  • A target table is in charge of two different sources but the same columns, but a source is one database and another in a flat file.

    We all hope you are doing well.

    I have a business problem to implement in ODI 11 G. It's here. I'm trying to load a target table from two sources that have the same column names. But a source is to the file format and the other is in the Oracle database.

    That's what I think I'll create two mappings in the same interface by using the Union between the sources. But I don't know how the interface would connect to different logical architecture to connect to two different sources.

    Thank you

    SM

    You are on the right track, all in a single interface. Follow these steps

    (1) pull model of your data in the designer of the source file and your table model target to the target pane.

    (2) all relevant columns map

    (3) in the source designer to create a new dataset and choose as the UNION join type (this will create a separate tab in the source designer pane)

    (4) select the new dataset tab in the source designer pane and pull your source oracle table data model in the designer of the source. All columns that are relevant to the target card

    (5) make sure that your staging location is set to a relational technology i.e. in this case the target would be an ideal candidate because it is where the ODI will organize the data from source two files and oracle and perform the UNION before loading to the target

    If you want to watch some pretty screenshots showing the steps above, take a look at http://odiexperts.com/11g-oracle-data-integrator-part-611g-union-minus-intersect/

  • Why can I get two different results from the same coefficients?

    I get two different results of the evaluation of the polynomial function.

    For the first, I get the coefficients of a polynomial function to adapt.  I feed the coefficients of the function made the function Eval Poly and get the correct 12.8582 result when I evaluate 49940.

    For the second, I create constant array of values that have been returned by the polynomial Fit function (I typed in).  However, I get an incorrect result of - 120.7913 when I feed the constant table the function Eval Poly when I evauate 49940.

    How this can happen when I use the same values in table?

    A picture of what I explained is attached.

    Hi Altran,

    are you sure about using the 'same '?

    You compare them? Do you have (at least) set them to 17 digits display properties?

    Please attach a VI instead of an image...

  • PS shows two different colors under the same

    I have the 61BEBF and the 28BEBF in color Adobe and I try to import them to PS and they look on the screen of the same color. It is not a monitor problem, because Adobe color, I can see the difference between the two colors. What can I do?

    You must realize that the hexadecimal notation is meaningless without reference to a specific color space.

    Hex is not different from RGB - the same number will produce a different color in different color spaces. And conversely, the same color will be different hexadecimal numbers in different color spaces.

    Hex was invented before the modern color management and the concept of the color spaces. The only color space, you had back has your monitor, which is of course different from the configuration to the configuration. Then hex has been designed as a convenient method to designate the monitor values. There was never any pretext of accurate color fidelity.

    Today, we have something much better and hex is really outdated and obsolete.

    I suspect that the reason why it has survived for so long, that is that it sounds very "computerish" and geek, and so people incorrectly assume that it has a special meaning. This isn't.

    Get used to working with the RGB values in the color spaces defined and specific. For the web, this would normally be sRGB.

  • use two different characters in the same domain

    Hi, how to use for different fonts in the same field?

    unless "crush you" painting: you do not have.
    If you do, you can use graphics.setFont

  • How can I add two different colors on the same object?

    Hello

    Say if I have something that I have a circle and I want the black semicircle and the other half with white. How can I do this?

    Thank you

    actually, sorry, forget something: you can fill it with a gradient that has two color stops in the same place. It is maybe a little more ordered according to what you need.

  • Display and update of fields in different tables on the same page.

    I am facing two problems...

    (1) I have a report on which I show several fields of 4 different tables. For each row of data, there is a link to change on the first column. By clicking on the link change, I show you a form where I want to show the respective data. On the link change, even if I send you the data in the report, they do not appear on the form (what edit link is clicked). Also, there is only room for 3 items to ship through the link change.
    How to display the data correctly on the form? Is there another way to use the link change?

    (2) on the form, how do I update the data from different tables?

    Thank you

    Gargi

    Hi Lisa,

    The text of presentation on the INSTEAD OF triggers is in: [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7004.htm#sthref7918]

    First of all, your SQL View contains a unique key so that your triggers and the two Apex know what is updated.

    Then, you can create instead of triggers for "instead of INSERT ON viewname", 'instead of UPDATE ON viewname' and 'DELETE ON viewname' on your SQL view. What do these triggers depends on what you need. In the trigger code, you refer to new data using: NEW.column_name and old data using: OLD.column_name (updates both: OLD and: NEW values).

    I'm not sure of the SEPARATE, the GROUP IN question. You would certainly have a unique key on each record. It could be that the DISTINCT or GROUP BY clause will have to be taken out of the SQL view and is part of the source of the region, so that the SQL view does nothing with the data other than to join several tables in a single "table" from the Primary Key/Foreign Key relationship.

    Andy

Maybe you are looking for

  • Status or bottom bar

    Hi, I just got a new computer with Windows 7 and downloaded Firefox 9. I was able to transfer my profile from my old computer, so everything works fine. My only complaint is that my status bar is gone.When I used to read my mail, I could see how many

  • Deactivation of the system 5341473

    Can anyone please help me I need the administrator password of my computer hp laptop Windows 8 disable the code system that appears is 53414173

  • Satellite P100: How to activate the AHCI mode?

    As all you know, some laptops P100 series are equipped with a controller Intel 82801GBM SATA natively supports the AHCI and with a Fujitsu HDD which takes in charge the NCQ. However, the disc is forced in compatibility mode, and therefore the NCQ is

  • email displays in bold

    I sent an email two days ago and it appears in my "sent" in bold. Does this mean that it has not been sent? It does not appear in the folder 'project '. Given that I have not heard back from the recipient, I wonder if it was sent at all. I've never s

  • Como puedo activar gambler funcionar dejo

    porfavor ayundenme