Forum Replies Created

Viewing 15 posts - 316 through 330 (of 463 total)

  • RE: Doing a subselect from a temporary table

    I guess these are the two different queries that you are trying, (sorry if I've not understood ur requirement)

    select * from @GlueRoomStock order by case_code, scheduleddate, shift

    Should not it read...

    ---------------------------------------------------------------------------------

  • RE: What is difference between SQL Server 2000 and SQL Server 2005 for DEVELOPER ?

    webtekkie (10/13/2009)


    Hi,

    Looking at this from another perspective, you could say that the difference is 5.

    ๐Ÿ˜›

    Martin

    Yeah that makes sense too from developer perspective, 5 major DML enhancements,

    OUTPUT Keyword

    Common Table Expressions

    PIVOT...

    ---------------------------------------------------------------------------------

  • RE: Syntax Error

    PP was quicker

    Thanks:)

    thatok (10/13/2009)


    Beautiful, Thanks a lot to both of you

    you're welcome ๐Ÿ™‚

    ---------------------------------------------------------------------------------

  • RE: Syntax Error

    How about this?

    select ee_occup_levels, [1] as M, [2] as F

    from (select ee_occup_levels, gender, race

    ...

    ---------------------------------------------------------------------------------

  • RE: Syntax Error

    thatok (10/13/2009)


    Hi

    can someone please tell me what is wrong with this query

    select ee_occup_levels, gender, race

    from (select ee_occup_levels, gender, race

    from dtiheadcount inner join reportingstructure

    on dtiheadcount.costcenter = reportingstructure.costcenter

    where (period =...

    ---------------------------------------------------------------------------------

  • RE: update row multiple times using single update statement

    i am also not sure why you say that it only matches the first row in t2. when i do this

    select

    t1.*,

    ...

    ---------------------------------------------------------------------------------

  • RE: problems during 2005 install

    dvora.id (10/12/2009)


    i mean system data base.

    when i try to open the sQL 2005 after the installation i get a error during the connection, but i don't understend because I don't...

    ---------------------------------------------------------------------------------

  • RE: Select 1 day of data

    Garadin (10/12/2009)

    The dateadd/datediff method that someone will likely post shortly......

    Just to honour it ๐Ÿ™‚

    SELECT dateadd(dd,datediff(dd,0,getdate()),0)

    What Mike is saying could apply in this case also since its using function...

    ---------------------------------------------------------------------------------

  • RE: problems during 2005 install

    When you say basic databases, do you mean to say system databases. It will be under system databases folder under databases, if you are talking about test (sample) databases, its...

    ---------------------------------------------------------------------------------

  • RE: sql server

    Not sure what you are trying to achieve with this, but syntax would be this,

    UPDATE PS

    SET ps.StatusID = 2

    FROM profiles p, profiles_submitted ps

    WHERE p.ProfileID = ps.ProfileID and p.Visited is...

    ---------------------------------------------------------------------------------

  • RE: Need help regarding test MCITP 70-441

    Sorry may not be able to answer all ur questions, but regarding book, I thought this is good!

    MCITP Self-Paced Training Kit (Exam 70-441): Designing Database Solutions by Using Microsoftยฎ SQL...

    ---------------------------------------------------------------------------------

  • RE: Please help with pivot

    Those two aforementioned articles are one in the same ;-).

    Ohh, sorry I just dint see that! ๐Ÿ˜‰

    But I dont know if I am missing something here, but this query below...

    ---------------------------------------------------------------------------------

  • RE: Please help with pivot

    I would suggest to read the article as suggested by Garadin before using this, but crosstab query would look like this,

    CREATE TABLE PIVOTIN(ID int, [date] datetime, Parameter Varchar(50), [Value]...

    ---------------------------------------------------------------------------------

  • RE: Get records with maximum date only

    How about this?

    Select * from (Select *, Row_Number()

    OVER (PARTITION BY studentid order by issuedate desc) as rownum

    from scenario) urtable where rownum = 1

    ---------------------------------------------------------------------------------

Viewing 15 posts - 316 through 330 (of 463 total)