Forum Replies Created

Viewing 15 posts - 7,036 through 7,050 (of 10,144 total)

  • RE: top without using TOP

    mister.magoo (11/16/2010)


    I don't know if I like being hashed like that! :hehe:

    LOL! It's a gate, mate 😉

  • RE: top without using TOP

    mister.magoo (11/16/2010)


    @chris-2 - but how do you select only the 3rd Salary?

    Very quickly!

    SET ROWCOUNT 3

    SELECT *

    INTO #Magoo

    FROM #sal

    ORDER BY Salary DESC

    SET ROWCOUNT 1

    SELECT *

    FROM #Magoo

    ORDER BY Salary

  • RE: GROUP BY PROBLEM IN SP

    steveb. (11/16/2010)


    if you are having trouble getting the test data into a usable form for help, there is a nice script here that may help.

    http://www.sqlservercentral.com/articles/T-SQL/66987/

    Thanks Steve.

  • RE: Are the posted questions getting worse?

    Paul White NZ (11/16/2010)


    Hah! No, seriously then, I would have given up on that thread a good while ago. Not eager to help himself is he?

    Some of his...

  • RE: GROUP BY PROBLEM IN SP

    Amusing, but unhelpful. Now if you could just put in all the commas, quotes, SELECTs etc. to make this a runnable script, we'd have a terrific set of data to...

  • RE: Are the posted questions getting worse?

    Paul White NZ (11/16/2010)


    Chris Morris-439714 (11/16/2010)


    I never know when to take you seriously Paul, even when there's a shiny bit of code visible 😛

    That must be really irritating.

    Only on tuesday...

  • RE: top without using TOP

    CREATE TABLE #SAL(

    [name] [varchar](12) NULL,

    [salary] [int] NULL

    )

    INSERT INTO #sal ( name,salary)...

  • RE: Are the posted questions getting worse?

    Paul White NZ (11/16/2010)


    Chris Morris-439714 (11/16/2010)


    Am I being too harsh with this poster?

    You are the very model of self-restraint.

    I never know when to take you seriously Paul, even when there's...

  • RE: Are the posted questions getting worse?

    Am I being too harsh with this poster?

  • RE: GROUP BY PROBLEM IN SP

    brainblower13 (11/16/2010)


    ...

    In that whole StoredProcedure , final Select Query Of SP output giving difference...

    It's lunchtime here in the UK, I've got a whole hour to spend on this if...

  • RE: Can stored procedure be called from sql query

    Eswin (11/16/2010)


    1)Is it possible to call a Stored procedure from a SQL query

    Kind of:

    ...INSERT INTO...EXEC...

    The target table columns must match the output of the stored procedure - sequence and datatype.

    Eswin...

  • RE: GROUP BY PROBLEM IN SP

    Please be patient, and don't contact me again by personal mail. By posting your scripts here, you are inviting others to assist you, which helps with the diagnosis of your...

  • RE: GROUP BY PROBLEM IN SP

    The script for creating the table works fine, thank you.

    The script for populating the table with three rows of data does not run:

    Msg 205, Level 16, State 1, Line 22

    All...

  • RE: GROUP BY PROBLEM IN SP

    This runs with errors:

    Msg 102, Level 15, State 1, Line 4

    Incorrect syntax near 'varchar'.

    Msg 102, Level 15, State 1, Line 22

    Incorrect syntax near 'ID'.

    Msg 102, Level 15, State 1, Line...

  • RE: GROUP BY PROBLEM IN SP

    brainblower13 (11/16/2010)


    ID main ID SplitIDstreamIDOffered TimeTerminated TimeCallerANICallerDNISIVR DigitMenuNamePrevIVR DigitPrevMenuNAmeNext IVR DigitNectMenNameIVR DISCONNESTED

    1211602D021A083004300:44.01:34:0091417414529141155155Main Menu1Product and promotion1

    Thank you, but there isn't a CREATE TABLE statement.

    The data isn't presented as INSERT statements.

    We...

Viewing 15 posts - 7,036 through 7,050 (of 10,144 total)