Forum Replies Created

Viewing 15 posts - 766 through 780 (of 2,894 total)

  • RE: ORDER BY Should be same as my input in IN()

    GilaMonster (12/20/2012)


    ... My suggestion, start using it now, then there will be less code to change in 10, 15 or more years time when (if) the ; finally becomes mandatory.

    Or...

  • RE: Correlated Subquery - Stream Aggregate

    ...

    And consider the following selects

    select Col4 from Indexing2

    inner join Indexing

    on Indexing2.Col4 = Indexing.Col2

    where Col4 between '200' and '250'

    select Col4 from Indexing2

    where exists (select * from Indexing where Indexing.Col2 =...

  • RE: Finding combinations of values

    ... you were just ahead of your time.

    Yeah, I'm always! But "they" don't understand me.

    That is common among us, great painters... :crying:

    ¦¦¦¦¦¦¦¦¦¦¦¦¦

    ...

  • RE: Finding combinations of values

    To SELKO:

    GSquared (12/18/2012)


    ...

    So your point doesn't actually prove your point, if you get my point. 😀

    On the other hand, code portability has certainly worked out well for you. You...

  • RE: concatenate of two values

    CELKO (12/17/2012)


    IDENTITY has a very important place in RDBMS and especially in SQL Server. It's very often the best candidate for a surrogate PK.

    You might want to actually read...

  • RE: String collation

    krishp (12/14/2012)


    Hi:

    Given any random data string, is there a way to know the collation of the string? I guess more than one may apply and that is okay too....

  • RE: concatenate of two values

    OP requirements very obscure.

    What should happen if there is another group of data with different FacilityId:

    INSERT [dbo].[Mas_Shift] ([ShiftId], [FacilityId], [ShiftType], [Shift]) VALUES (7, 2, N'3', N'A')

    INSERT [dbo].[Mas_Shift] ([ShiftId], [FacilityId],...

  • RE: concatenate of two values

    CELKO (12/14/2012)


    I hope you know that IDENTITY has no place in RDBMS. It is how non-SQL programmers fake a magnetic tape file in SQL. You also do not know about...

  • RE: Finding combinations of values

    CELKO (12/14/2012)


    .. Total failure.. Besides which, I believe my earlier post

    Yeah, it was awful! :crazy:

    What I wanted to do was avoid the CASE expression solution and go for...

  • RE: ORDER BY Should be same as my input in IN()

    Jeff Moden (12/15/2012)


    Eugene Elutin (12/11/2012)


    ....

    SELECT AA.*

    FROM @T AA,

    @T_INPUT BB

    WHERE...

  • RE: Need help on creating SQL statement for deriving Consecutive worked days.

    What about weekends and public holidays? Should they restart your counter?

  • RE: ORDER BY Should be same as my input in IN()

    Exactly as I thought - it's really hard to overdo the real master of "outburst"... :hehe:

  • RE: ORDER BY Should be same as my input in IN()

    Phil Parkin (12/11/2012)


    Eugene Elutin (12/11/2012)


    Here I will play J.CELKO: ......

    Steady on, don't overdo it :hehe:

    I hope I didn't, as I have not complained about lack of PK and didn't state...

  • RE: ORDER BY Should be same as my input in IN()

    ....

    SELECT AA.*

    FROM @T AA,

    @T_INPUT BB

    WHERE AA.NAME=BB.NAME

    ORDER BY BB.ID

    Here I...

  • RE: Is there a loop in this query

    olivia.forde (12/11/2012)


    GilaMontser - so the way I have it is the most efficient - it takes hours to run so I was hoping it could be improved.

    Could you please post...

Viewing 15 posts - 766 through 780 (of 2,894 total)