Forum Replies Created

Viewing 15 posts - 1 through 15 (of 17 total)

  • RE: what happens when a query is submitted?

    Can I post image from my local PC?

  • RE: what happens when a query is submitted?

    This is very good poster to have. I think this is what happens after a query plan is created. I am looking for sql engine components that are involved in...

  • RE: left join help

    i got 64 rows with your query.

  • RE: left join help

    It worked, I had to add distinct to select.

    I am going to try using pivot.

    Thanks for your help.

  • RE: left join help

    Sorry for not reading your message properly.

    I have a report which has days of a given month as columns. Each client will have row and his schedule_date will be marked...

  • RE: left join help

    Below SQL gives me 32 rows only. I am looking for 62 rows , 31 rows - one day per client for entire month. client-id 301 should have 31 days...

  • RE: dynamic object(database/schema/obj) in stored procedure

    Does this help???

    table variables provide the following benefits:

    A table variable behaves like a local variable. It has a well-defined scope. This is the function, stored procedure, or batch that...

  • RE: SQL query help

    Here is example of what I am looking for

    --Here is sample view definition

    create view individual

    select person.first_name as FirstName

    ,person.last_name as LastName

    ,address.street1 as Address1

    ,address.street2 as Address2

    ,city.name as City

    From person

    left join [address] on...

  • RE: can i avoid cursor?

    To explain more about the situation, above mentioned T-SQL issue is one among 10-15 complex data issues with in a single stored proc. I know I can go with T-SQL...

  • RE: can i avoid cursor?

    Thanks for your comments.

    I did solve above issue and got stuck with other. As I have tight production deadlines, I am going for cursor in a stored procedure.

  • RE: single quotes to sql server stored procedure

    Correct me if I am wrong.

    1) we need to handle double quotes before passing it into stored proc / executing stored proc?

  • RE: tricky SQL

    Thanks:)

  • RE: Query help needed

    THANKS FOR THE SQL. IT HELPED ME A LOT.

  • RE: Query help needed

    create table t1(

    id int identity

    ,client_id int

    ,status varchar(10)

    ,date1 datetime)

    insert into t1 values(100,'admit', '2007-1-1')

    insert into t1 values(100,'discharge', '2007-2-1')

    insert into t1 values(200,'admit', '2007-1-1')

    insert into t1 values(200,'discharge', '2007-2-1')

    insert into t1 values(300,'admit', '2007-1-1')

    insert into t1...

Viewing 15 posts - 1 through 15 (of 17 total)