Forum Replies Created

Viewing 15 posts - 316 through 330 (of 2,458 total)

  • RE: Non-alphanumeric Search Frustration

    I think Luis' solution is the way to go. To answer your question about the trailing hyphen - you could go with:

    AND QuestionableColumn NOT LIKE '%-'

    As Drew mentioned, this will...

  • RE: Are the posted questions getting worse?

    Luis Cazares (12/27/2016)


    Carrie Fisher is now one with the force.[/url] :crying:

    Can 2016 end already?

    2016: The Movie (Trailer)

  • RE: Are the posted questions getting worse?

    Sean Lange (1/3/2017)


    The real downside is that overall it really seems like the number of questions has significantly decreased over the last 6-12 months. Hopefully this is just a trend...

  • RE: How to create error conditions inside function

    mcfarlandparkway (1/3/2017)


    Here we are returning 4 columns as I mentioned only one @NUM.

    There is another reason to use table valued function.

    Switching gears a little... If your statement is in response...

  • RE: Report Showing Month with Highest Count

    drew.allen (1/3/2017)


    Alan.B (1/3/2017)


    This wont work because you can't nest aggregates like this so we'll have to break out the RANK Window Function like so (including sample data so you can...

  • RE: Azure vs AWS for databases

    I'm no expert at either but have worked with both. I'm going to assume that by, "Postgres on AWS" you are talking about Redshift.

    My experience has been that a beefy...

  • RE: Report Showing Month with Highest Count

    So what you want is the MAX(COUNT) of sales for each (e.g. "GROUP BY") EmployeeID by Month and Year. Let's start with some sample data; since you did not provide...

  • RE: The Salary Range

    Great post Steve, 5 stars.

    I found out a few weeks back that my department is moving to Phoenix AZ. I did not chose to transfer so I'll be back...

  • RE: Issue with column parsing

    sgmunson (1/2/2017)


    Jeff Moden (12/28/2016)


    IIRC, PARSENAME has an element length of NCHAR(128) as a limit on each part it returns and is heavily dependent on the consistent position of items but...

  • RE: Best way to publish 2012 SSRS reports on the web

    Zososql (12/31/2016)


    I have created a series of reports via vs2010shell - SSDT - sql2012, wondering whats the best way to publish these on an intranet where other workers can access...

  • RE: Issue with column parsing

    Phil Parkin (12/27/2016)


    Nice, Alan. I saw the word 'split' and I was off like one of Pavlov's four-legged friends. Did not even consider alternatives.

    😛

    I did make the assumption that there...

  • RE: Issue with column parsing

    mcfarlandparkway (12/27/2016)


    Set based approach? How to do this?

    How to parse(split) this 9000430944:7|Information

    -> 9000430944 - emp number

    -- 7 - stud number

    --Information - Description

    How to split on pipe? and How to...

  • RE: Filtered Index, Getting 'Created failed for Index"

    comic_rage (12/27/2016)


    Hi,

    Thanks for the input, is this correct approach,

    In my VIEW, vMyTable

    select col1,

    isnull(column50,1) as column50,

    column51

    from dbo.MyTable

    where Column50 = 1

    In the MyTable indexes, I added the following script

    create nonclustered index ixIndex_Column50...

  • RE: I am very new to SQL

    I'm with Jeff, there is no substitute for T-SQL expertise and database design. SQL Server Developer edition (2014 and 2016) is identical to SQL Server Enterprise except that you can't...

  • RE: Index with leading BIT column

    I don't see any problem with using a leading bit column for an index. I can think of many more examples where it would be appropriate as part of a...

Viewing 15 posts - 316 through 330 (of 2,458 total)