Forum Replies Created

Viewing 15 posts - 2,596 through 2,610 (of 5,111 total)

  • RE: Running Balance query

    John Mitchell-245523 - Tuesday, November 14, 2017 2:31 AM

    I just typed "running balance query" into my favourite search engine - it's amazing...

  • RE: Error

    I feel like I'm on a witch hunt now, as I've asked in your questions so many times (with no reply),but Jigjitsigh, DDL and Sample data... please.

    You're doing...

  • RE: SSRS & Chrome - Partial Report

    Chrome is not supported by SSRS I'm afraid. Well, not 2008. SSRS 2016 does, and was the first to officially, support it, but prior to that you will often get...

  • RE: Add line break to string

    GAH!!! Comic Sans!!!! MINE EYES!!!!!!!!!!!!! MINE EYES!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Ok, back to normality. CHAR(10) is the Line Break character. So you'll need to use the REPLACE function.
    REPLACE(StringData,';',';' + CHAR(10))

  • RE: Need help/ push in right direction with assignment 3NF, Composite Key to SQL+

    Chris Harshman - Monday, November 13, 2017 4:41 PM

    twgrops - Monday, November 13, 2017 4:12 PM

    November 14, 2017 at 1:45 am

    #1967903

  • RE: format datetime to varchar

    I would also avoid using FORMAT as well. CONVERT and the style code 126 returns the display format you are after.

    If, however, you are storing your datetimes as...

  • RE: Need help/ push in right direction with assignment 3NF, Composite Key to SQL+

    Looks like you have a many to many relationship. It's true that an order will contain many items of equipment, and a piece of equipment can be within many orders,...

  • RE: Query

    Hi jagjitsingh,

    I don't mean to be rude, but you've been asked and shown enough times to post your questions properly (with DDL, Consumable Sample Data, Expected results, etc)....

  • RE: Are the posted questions getting worse?

    Jeff Moden - Monday, November 13, 2017 5:42 AM

    Thom A - Monday, November 13, 2017 5:35 AM

  • RE: Are the posted questions getting worse?

    Ed Wagner - Monday, November 13, 2017 5:19 AM

    Careful there, Sean.  You're starting to sound a lot like me when it...

  • RE: How OVER clause works ?

    MAX(LEFT(c1, 1)) OVER(ORDER BY id ROWS BETWEEN CURRENT ROW AND 5 FOLLOWING)
    Let's split this into several sections:
    LEFT(c1, 1)
    Returns the left most x character(s) from a string. The...

  • RE: Difference in value

    John Mitchell-245523 - Monday, November 13, 2017 3:14 AM

    Thom A - Monday, November 13, 2017 3:01 AM

  • RE: Date format check

    I have to ask, but why are you permitting dates to be stored as I string in the first place? They should be stored as a date or datetime(2). Storing...

  • RE: Difference in value

    Use a CTE and ROW_NUMBER(), ordered by Date Descending. Then only return the rows (from the CTE) where the value of your ROW_NUMBER() column is 1.

  • RE: CASE statement and inner join giving duplicates

    hurricaneDBA - Monday, November 13, 2017 2:25 AM

    Thom
    Which tool do you use to write SQL?
    Just out of curiousity for myself :)...

Viewing 15 posts - 2,596 through 2,610 (of 5,111 total)