Forum Replies Created

Viewing 15 posts - 106 through 120 (of 898 total)

  • RE: Execution plan whose components add up to 248%

    Thanks for the link Sean. That explains it really well.

    I was surprised when I saw the plan initially but now I am clear.

  • RE: Query Required

    techmarimuthu (6/25/2013)


    i have data in this format only

    Is there no way you can change it or make somebody else change it?

    techmarimuthu (6/25/2013)


    i wanna store one date so that why i...

  • RE: Query Required

    techmarimuthu (6/25/2013)


    create table members

    (

    id int identity,

    firstname varchar(30),

    lastname varchar(40),

    dob int

    )

    insert into members(firstname,lastname,dob) values ('Michel','David',19890630)

    insert into members(firstname,lastname,dob) values ('Raja','Kumar',19900625)

    insert into members(firstname,lastname,dob) values ('Rahul','Sundar',19910501)

    insert into members(firstname,lastname,dob) values ('Arun','Edward',19901219)

    i wanna...

  • RE: select where patient has more than 1 provider

    We would definitely need more information to help you

    Please explain the issue a bit more and also provide the DDL of the tables involved, some sample data and the expected...

  • RE: Query Required

    This doesn't look difficult and it would be good if you try this yourself

    If you are stuck somewhere, we would like to see what you have tried and where exactly...

  • RE: How to add Aggregate column with Pivot

    I am not really sure about the output you are expecting

    It would help if you can provide DDL of the table involved with some sample data and the expected results...

  • RE: general

    Adarsh Chauhan (6/25/2013)


    select * from Orders

    where isnull(order_amt,0) =0

    or

    select * from Orders

    where order_amt is null or order_amt = 0

    This is exactly the opposite of what the OP wants

  • RE: Problem

    You have been here for some time now.

    I expect you to help us with some DDL of the tables involved, some sample data and the expected results based on the...

  • RE: Move currentdate+1 to field when null?

    Will this work?

    WHERE table.AdminDate <= @startdate AND ( table.DischargeDate >= @enddate OR table.DischargeDate IS NULL )

  • RE: Date add with Different DataType

    Hugo Kornelis (6/21/2013)


    Though adding an integer to a datetime works (and is even documented HERE and HERE), I would strongly recommend against using it.

    First, let's look at the internals. Operators...

  • RE: Problem Inserting records per Portfolio into a temp table

    Neil.McKinnon (6/20/2013)


    You were right Kingston!

    Big thank you to Abu and yourself for your invaluable help! All working as intended!!

    Many thanks

    Neil

    Glad we could help you out 🙂

  • RE: splitting up a start time and end time into different dates

    meltingchain (6/20/2013)


    Sorry, here is the data.

    --===== If the test table already exists, drop it

    IF OBJECT_ID('TempDB..#mytable','U') IS NOT NULL

    ...

  • RE: query required

    Duplicate post. Please direct all the replies here

    http://www.sqlservercentral.com/Forums/Topic1465520-391-1.aspx

  • RE: Need some help with retrieving correct Device IP Address

    Do you want to exclude the IP addresses only when a machine has more than 1 assigned?

    What if there is a machine which has only one IP address assigned and...

  • RE: Rows to Columns (pivot or anyother way)

    knakka99 (6/20/2013)


    Thank you Dhasian you have showed me a new approach to fix this issue (I thought that Pivot is the only way)

    I appreciate your help 🙂

    Also I have an...

Viewing 15 posts - 106 through 120 (of 898 total)