Forum Replies Created

Viewing 15 posts - 406 through 420 (of 898 total)

  • RE: SQL

    dineshbabus (11/30/2012)


    thanks..

    pls xplain wat does breaking of relationship means?

    Breaking of relationship means any action( INSERT, UPDATE or DELETE ) that results in an entry in FOREIGN KEY table that does...

  • RE: SQL

    dineshbabus (11/29/2012)


    We can delete a row in primary table if CASCADE option is chosen On DELETE rite?

    Yes. You can delete a row in the PRIMARY table if the CASCADE DELETE...

  • RE: Count primary key violations on a table

    One way could be to use an INSTEAD OF trigger

    The below mentioned link could be of help to you

    http://msdn.microsoft.com/en-us/library/ms175521%28v=sql.105%29.aspx

  • RE: Reg: Interview Questions

    CELKO (11/6/2012)


    Now we have to track down this interview so we can tell them that you cheat. I have gotten two students and one lecturer kicked out of their schools...

  • RE: Reg: Interview Questions

    vs.satheesh (11/6/2012)


    I face one interview question.One salary table i have three column like (id,name,salary)

    Table Name:SalaryDetail

    id name salary

    1 arun ...

  • RE: Calling function on select statement

    muthukrishnan.e (11/2/2012)


    DECLARE @r VARCHAR(MAX)

    SELECT @r = ISNULL(@r+'/', '')

    + t2.col4 + ' - ' + 'Rs. '...

  • RE: simple update statement

    Probably something like this..

    UPDATE#temp_ticket

    SETclub_group_joined = CASE

    WHEN club_group_id_col = @lClub_group_joined_test

    THEN STRING(club_group_id_col, ',', CONVERT(date, club_group_joined_datetime))

    ELSE NULL

    END

    WHEREclub_group_joined_datetime IS NOT NULL

  • RE: Regarding indexed views

    After a unique clustered index is created on the view, the view's result set is materialized immediately and persisted in physical storage in the database, saving the overhead of performing...

  • RE: Table Variables

    Good QOTD.

    This will clear quite a few misconceptions people have about Table Variables.

  • RE: UDF AND Stored Procedures

    patelmohamad (10/17/2012)


    Kingston Dhasian (10/17/2012)


    No. You cannot use a Stored Procedure like a UDF.

    You can insert the results from a Stored Procedure into a temporary table and work on the temporary...

  • RE: UDF AND Stored Procedures

    No. You cannot use a Stored Procedure like a UDF.

    You can insert the results from a Stored Procedure into a temporary table and work on the temporary table further.

  • RE: replace

    phamm (10/15/2012)


    Thank you very much. what if my column1 have value 'abcdef0000' and column 2 value is 123. Then I cannot convert them to integer to add them...

  • RE: If anyone can help i am the most happiest person in world

    Well, nobody can help with this limited amount of information

    Please describe your issue and give us some sample data and the expected results as per your sample data

    It would be...

  • RE: Query Help

    You can use a Modulo operator to remove the hard coding of values

    DELETEtemp

    FROM(

    SELECTROW_NUMBER() OVER(PARTITION BY x.cStudentId,x.dtEnrollmentDate ORDER BY dtEnrollmentDate asc ) AS DSeq, x.*

    FROM#temp1 x

    ) temp

    WHERE ( DSeq % 5...

  • RE: DECLARE - 1

    kapil190588 (10/2/2012)


    can anyone explain me why select len(@a) as 'declared' gives output as 1

    The answer to this is available in the explanation to the question( also shown below )

    When n...

Viewing 15 posts - 406 through 420 (of 898 total)