Forum Replies Created

Viewing 15 posts - 151 through 165 (of 230 total)

  • RE: Subquery returned more than 1 value Error

    Can you give me an example of what you mean?

    FWIW, although I only specifically checked whether emplid is null, it effectively is checking all the values that I joined on....

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Subquery returned more than 1 value Error

    What your statement is doing here is saying if <single scalar value> not in (<List of stuff)...

    The problem is (select emplid+applicationid+ProgramID from table1) can (and does) return more than one...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: call a stored procedure within a stored procedure

    There are probably lots of schools of thought on this. IMHO, I try to avoid nesting procedure calls, primarily because it can be difficult to troubleshoot. I have fond memories...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Combining Columns into One

    The same principle applies for numeric columns. Again, just setting up some fake numeric data, you can do this:

    --This is just setting up some fake source data

    ;with t (AAA, BBB,...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Combining Columns into One

    Depends on how exactly you want to combine the data, but would something like this work?

    ;with t

    (

    AAA,

    BBB,

    CCC

    )

    as

    (

    ...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Estimating index size before creating it

    If you're concenred about the exact size of the index, it would behoove you to read through that article more thoroughly. That or you could build the index in a...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Modify Script for Multiple Parameter Values

    Three options come to mind (in my personal order of preference):

    1) A delimited string of to and from values. This requires that you have a string split function built on...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Case Statements and Performance

    While this doesn't necessarily mean it isn't true, I have not heard of case statements causing a degradation in performance. If anything, I would think a case statement would probably...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Return specific data from table

    The first query is just a reiteration of what djj just posted. The idea is that you use the row_number window function to partition, or group, the data by name,...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Looking for advice on DATE_FORMAT()

    It would just go in your list of select columns. So from your query, you'd do

    SELECT c.cust_fullname AS Name,

    ...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: request updated data from three tables

    Welcome to the forums romy. I would first suggest you look over this post on how to best ask questions on the forums. You'll find many people willing and able...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Calculate 90 days and 3 Years agon from an Effective Date in a table?

    Use LinksUp code, just add the from clause that you supplied in your OP

    select EffectiveDate, DATEADD(dd, -90, DATEADD(yy, -1, EffectiveDate))

    from FL.CEFHistory

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Trying to replace cursor

    I'm still a little unsure on what it is you're trying to get at, but you may want to look research Quirky Updates.

    A word of caution: please note that...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Help Needed to Convert Numeric Value to CHAR(7)

    Here's what I'd do. Cast whatever your original float input is as a very large decimal (say (38,10)) then cast that to a string. It will retain all the points...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Rolling Max Value

    Thanks, Dwain. I'll look this solution over as well and see how it fits the data set I'm working with.

    Fwiw (and this doesn't quite work in pure SQL), I did...

    Executive Junior Cowboy Developer, Esq.[/url]

Viewing 15 posts - 151 through 165 (of 230 total)