Forum Replies Created

Viewing 6 posts - 1 through 7 (of 7 total)

  • RE: Pls help cascade delete

    thank you for all your help, I will do that

  • RE: Pls help cascade delete

    Here is my sql

    Insert into WaitList (candidate_no,exp_start_date,property_type,no_of_rooms,max_rent,no_of_people)

    Select Columns FROM candidateTenant WHERE ID IN (2,4,5)

    DELETE FROM dbo.Candidates WHERE ID IN (2,4,5)

    ERROR The select list for the INSERT statement contains fewer items...

  • RE: Pls help cascade delete

    candiate_no pk first last type_Rqd ...

  • RE: Pls help cascade delete

    so sorry i dont understand, primary key in the first table needs to be inserted into the second tables and then i need to insert the rest of the columns...

  • RE: using DISTINCT?

    try group by

    SELECT DISTINCT field1

    FROM Table1

    WHERE (conditions)

    GROUP BY field2 - hope this helps

  • RE: SQL querie

    I think I must be misunderstanding my querie, just cant seem to get it tow work

    BEGIN TRANSACTION

    USE KWEA;

    INSERT INTO waitList(candidate_no,exp_start_date,property_type,no_of_rooms,max_rent,no_of_people)

    SELECT 1,1-10-2007,'house',3,$300,4

    UNION ALL SELECT 2,4-10-2007,'house',4,$350,4

    ...

Viewing 6 posts - 1 through 7 (of 7 total)