Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)

  • RE: Many to many relationship

    thanks Jack

    Is that the option that I should take whenever this problem arises

  • RE: finding not null parameters

    thanks guys actually solved the problem in the app. Was tryng to write a query that wouldnt have worked

  • RE: SPROC Problem

    thanks for the replies .My problem is now solved

  • RE: ltrim and whitespaces

    thanks Jeff. the select statement returned 9 which i believe means tab character. Strange because the text file wasnt tab delimited as far as i can see. The replace function...

  • RE: exam 70 229

    thanks for the info chris

  • RE: return multiple rows in subquery

     

    create table OrderDetails(

     OrderID int not null REFERENCES Orders(OrderID)on delete cascade,

     ProductID int not null REFERENCES Products(ProductID),

     OrderedDate smalldatetime not null CHECK (OrderedDate>=datepart(day,getdate())),

     Quantity int not null DEFAULT 1,

     UnitPrice money not null,

     RequiredDate smalldatetime null...

  • RE: return multiple rows in subquery

    create procedure DeleteOrder

    @OrderID int

    AS

    if not exists(select*from Orders where <A href="mailtorderID=@OrderID">OrderID=@OrderID)

    BEGIN

    RAISERROR('The selected order was not made',16,1)

    RETURN     

    END

    update Products  set UnitsInStock=UnitsInStock+

    (select Quantity from OrderDetails where...

  • RE: updating multiple rows

    I dropped the delete trigger which is below as i only needed it to update my products table. But because i tried to move the code into a stored procedure...

Viewing 8 posts - 1 through 8 (of 8 total)