Forum Replies Created

Viewing 15 posts - 7,966 through 7,980 (of 15,381 total)

  • RE: Get 2 column result from 1 field

    Luis Cazares (6/13/2013)


    How about using a CASE statement to filter the year needed?

    DECLARE @Something table

    (

    Years int,

    SomeValue int

    )

    insert @Something(Years, SomeValue)

    Values

    (2000, 2)

    ,(2001, 4)

    ,(2002, 5)

    ,(2003, 3)

    ,(2004, 2)

    SELECT SUM( SomeValue) SumOfAll, SUM(...

  • RE: Get 2 column result from 1 field

    Seems like a semi strange requirement but certainly not to bad. Notice how I posted consumable ddl and sample data? This is something you should do in the future.

    Here are...

  • RE: How to delete duplicates/triplicates etc. except for the latest record based on date?

    Lynn Pettis (6/13/2013)


    Sean Lange (6/13/2013)


    SQL_beginner1 (6/13/2013)


    Hi Lynn,

    I get the following error when I parse your script:

    Msg 156, Level 15, State 1, Line 6

    Incorrect syntax near the keyword 'over'.

    I'm using SQL...

  • RE: Are the posted questions getting worse?

    WayneS (6/13/2013)


    dwain.c (6/12/2013)


    I can only imagine what it must be like to have SQL Server running in some non-English language. MS probably translated the obtuse into the indecipherable.

    Maybe the...

  • RE: Are the posted questions getting worse?

    The Dixie Flatline (6/13/2013)


    Sean Lange (6/13/2013)


    Steve Jones - SSC Editor (6/13/2013)


    The Dixie Flatline (6/13/2013)


    Brandie Tarvin (6/13/2013)


    The Dixie Flatline (6/13/2013)


    Don't talk to me about time. Time is my business.

    Dixie,...

  • RE: How to delete duplicates/triplicates etc. except for the latest record based on date?

    SQL_beginner1 (6/13/2013)


    Hi Lynn,

    I get the following error when I parse your script:

    Msg 156, Level 15, State 1, Line 6

    Incorrect syntax near the keyword 'over'.

    I'm using SQL Server 2008 R2.

    He missed...

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (6/13/2013)


    The Dixie Flatline (6/13/2013)


    Brandie Tarvin (6/13/2013)


    The Dixie Flatline (6/13/2013)


    Don't talk to me about time. Time is my business.

    Dixie, I could kiss you for...

  • RE: Try now SQL

    Abu Dina (6/13/2013)


    Troll :doze:

    I sometimes like feeding the trolls. They make such interesting sounds as they eat. 😛

  • RE: how to caluculate half day

    In order to help we will need a few things:

    1. Sample DDL in the form of CREATE TABLE statements

    2. Sample data in the form of INSERT INTO statements

    3. Expected results...

  • RE: Try now SQL

    qotiyqoy1 (6/13/2013)


    must popular!!!

    Did you have a question?

  • RE: How to connect with SQL Server using http based API

    afreen281989 (6/13/2013)


    Hi

    Thanks for ur rply..

    I am working on Salesforce Platform(Cloud technology) using Apex language..

    i have to connect to Sql Server from Salesforce.

    Just wanted to know whether any API or...

  • RE: Access Query ported to SQL

    Hard to give anything resembling specifics with not much detail. I think it would be far better if you can get rid of the looping and just do an update....

  • RE: How do you drag a table to view diagram Pane

    rick_markham (6/12/2013)


    thanks for trying to help. I think a DBA out there should be able to point me to the correct setting. I had a DBA show me...

  • RE: Converting nvarchar value to int

    sql1411 (6/12/2013)


    I've a column name called "Codes" and the datatype is nvarchar. The data looks like

    X200, 516, XD1, YTG, 24ZY, 40Y, 01DX

    Now, I just need the numeric...

  • RE: Are the posted questions getting worse?

    SQLRNNR (6/12/2013)


    Steve Jones - SSC Editor (6/12/2013)


    jasona.work (6/12/2013)


    I have to wonder how often Gail and the other pros here get frustrated with people asking questions where the answer is in...

Viewing 15 posts - 7,966 through 7,980 (of 15,381 total)