Forum Replies Created

Viewing 15 posts - 8,206 through 8,220 (of 15,381 total)

  • RE: Are the posted questions getting worse?

    SQLRNNR (5/28/2013)


    Steve Jones - SSC Editor (5/28/2013)


    Brandie Tarvin (5/28/2013)


    Cadavre (5/28/2013)


    Why can't you just do an IPConfig?

    Because until Greg gave me the keystrokes I needed, I couldn't get to a command...

  • RE: Order by date not by alphabatical order but by usual jan - Feb etc required

    keshava.murthy (5/28/2013)


    If I use like above suggestion then I will not get the sum which is grouped by the month

    Did you actually try it? It is grouped by MONTH(starttime). Not...

  • RE: add a new column to a table with conditions

    pooya1072 (5/28/2013)


    hi friends

    i want to add a column to a table with conditions below :

    1- it has a default value=0

    2- this column can get null value

    3- no constraint should be...

  • RE: Order by date not by alphabatical order but by usual jan - Feb etc required

    keshava.murthy (5/28/2013)


    In the query below:

    select right(convert(varchar, CCD.startDateTime , 106), 8) as startmonth,

    sum(case when CCD.contactDisposition = 1 then 1 else 0 end) as TotalCalls1,

    sum(case when...

  • RE: Can you delcare an operator?

    TJT (5/28/2013)


    I was hoping to use it in WHERE statement and this is just an example.

    DECLARE @MYTEST AS VARCHAR(3)

    SET @MYTEST = '<>'

    SELECT CARS.Year

    FROM CARS

    WHERE CARS.Year @MYTEST '2011'

    No that...

  • RE: Can you delcare an operator?

    TJT (5/28/2013)


    Can you declare an operator?

    DECLARE @MYTEST AS VARCHAR(3)

    SET @MYTEST = '<>'

    Well you can declare a varchar that has those characters. Not sure what you are wanting to do...

  • RE: Result set to be modified

    Mark's excellent query looks like it should return the data you are looking for.

    However if I could make a couple of suggestions. You are using the old style joins. You...

  • RE: Funnies on Views???

    Lynn Pettis (5/28/2013)


    Sean Lange (5/28/2013)


    Lynn Pettis (5/28/2013)


    Sean Lange (5/28/2013)


    Yet another reason NOT to use select *. 😛 I have answered this exact same question at work twice in the last...

  • RE: Funnies on Views???

    Lynn Pettis (5/28/2013)


    Sean Lange (5/28/2013)


    Yet another reason NOT to use select *. 😛 I have answered this exact same question at work twice in the last week.

    I have to agree...

  • RE: Converting a old .sql to new

    As Lynn said this appears to be MySql. You will have to confirm what datatypes you actually want but this should be close.

    CREATE TABLE nwn_sessions

    (

    session_id varchar(32) NOT NULL default...

  • RE: Procedure with Table-Valued Parameters in 2 databases ?

    You can't use TableValued parameters across databases. It seems like it should be ok but the reality is the datatypes are NOT the same. You know they are declared the...

  • RE: How to read each row and update table

    edw_munya (5/27/2013)


    Arrears

    Credit Line Dates AvailableAmount Principal Interests Principal Interests

    0015321-01 31/01/2003 220,000 40,000 30,000 - ...

  • RE: Funnies on Views???

    Yet another reason NOT to use select *. 😛 I have answered this exact same question at work twice in the last week.

  • RE: WHERE clause

    Mark Harley (5/28/2013)


    I am trying to write a where clause that tests for a string which may or may not contain a specific character. Specifically, I need to check...

  • RE: string or binary data would be truncated error

    balaji.ganga 68339 (5/28/2013)


    Hi

    There is a " string or binary data would be truncated error " raised while executing the stored procedure. The stored procedure get inserts the records...

Viewing 15 posts - 8,206 through 8,220 (of 15,381 total)