Forum Replies Created

Viewing 15 posts - 11,941 through 11,955 (of 15,381 total)

  • RE: How to convert this XML into columns

    Sean Lange (5/7/2012)


    You're welcome. Does this mean you finally have your answer? 😛

    I assume by your silence that you did in fact get your issue resolved. It is somewhat customary...

  • RE: Data Sel Pull

    Group by would likely get you what you are looking for.

    so what is this query doing?

    Select *

    From LLA_Audits t12

    Join LLA_Audits t13

    ON t12.AgencyID = t13.AgencyID

    Where t12.AgencyID = t1.AgencyID

    And year(t12.ReportDueDate) = year(t1.ReportDueDAte)...

  • RE: Data Sel Pull

    pgmr1998 (5/15/2012)


    Here is my code, but i get an error that says:

    Server: Msg 156, Level 15, State 1, Line 13

    Incorrect syntax near the keyword 'FROM'.

    SELECT AgencyId, AgencyName, AgencyType,

    ...

  • RE: Alias Exists Subquery

    SQLKnowItAll (5/15/2012)


    Why do you violate ISO-11179 rules?

    Hehehe... Because nobody learns them or cares to. I'll tell you a question I have never been asked at an interview... "Are you familiar...

  • RE: Data Sel Pull

    ???

    Select AgencyID, AgencyName,AgencyType, Count(docs)

    from Agencies

    where isOpenAllegation= 1 and WorkType = 'Agreed-upon Procedures'

    group by AgencyID, AgencyName, AgencyType

    ???

    From your brief description is appears that your data is not normalized. You should...

  • RE: Sum

    Can you try to more clearly explain what you are looking for?

  • RE: Alias Exists Subquery

    CELKO (5/15/2012)


    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. If you know how,...

  • RE: Updating text within a single column, but not the entire string, duplicates string being updated

    rabisco (5/15/2012)


    Sean Lange (5/15/2012)


    CLR is a way of executing a stored proc whose code is actually .NET code. This type of string manipulation is tricky and probably a bit easier...

  • RE: Updating text within a single column, but not the entire string, duplicates string being updated

    CLR is a way of executing a stored proc whose code is actually .NET code. This type of string manipulation is tricky and probably a bit easier to code in...

  • RE: Order by clause

    There are lots of ways you can sort data in .NET. It really depends on what you are doing.

    http://msdn.microsoft.com/en-us/library/13wb36xf.aspx

  • RE: Need help regarding displaying data

    Something like this?

    select name, Gender

    from

    (

    select name, Gender, ROW_NUMBER() over (order by name) as RowNum

    from #tmp

    where Gender = 'M'

    union all

    select name, Gender, ROW_NUMBER() over (order by name) as RowNum

    from #tmp

    where...

  • RE: Update using subquery help!

    That would be another way. 😀 Nicely done!!!

  • RE: varchar(max) field throwing truncated field error

    Are you 100% certain that the column that is throwing this error is the one you changed to varchar(max)? Is it possible that there are more characters than a field...

  • RE: Update using subquery help!

    bighow2008 (5/15/2012)


    Hi all,

    I'm trying to update a table using a subquery. when I run the below script I get an error Msg 512. I have done updates like this in...

  • RE: Self Service SQL

    Steve Jones - SSC Editor (5/15/2012)


    How often do we see on this site decisions made by people who work as DBAs that are awful? These people are often trained for...

Viewing 15 posts - 11,941 through 11,955 (of 15,381 total)