Forum Replies Created

Viewing 15 posts - 6,946 through 6,960 (of 7,608 total)

  • RE: Dynamic SQL - which would you use?

    CELKO (1/4/2013)


    We're giving "power employees" of the company access to the company's data to derive business benefit.

    The power employees I work with regard me as the "Data...

  • RE: Dynamic SQL - which would you use?

    CELKO (1/4/2013)


    What specifically should requester do then?

    As I said, read books on basic Software Engineering. Yourdon and Constantine's STRUCTURED DESIGN is still classic. Chapters 6 and 7...

  • RE: Dynamic SQL - which would you use?

    CELKO (1/4/2013)


    When I need to execute code depending upon the values of parameters I often implement one of 2 methods:

    I see that you also confuse rows and...

  • RE: Quert regarding getting the results based on months.

    CELKO (1/4/2013)


    Since SQL is a database language, we prefer to do look ups and not calculations. They can be optimized while temporal math messes up optimization. A useful idiom is...

  • RE: Cluster design comment wanted.

    Do you have only a few clients with huge numbers of orders each?

    Or for a large number of clients, some with large numbers of orders, some with small numbers of...

  • RE: String REPLACEMENT Question

    Those embedded REPLACEs are looking more tempting now, huh? 🙂

  • RE: Quert regarding getting the results based on months.

    dwain.c (1/3/2013)


    ScottPletcher (1/3/2013)


    CELKO (1/2/2013)

    Since SQL is a database language, we prefer to do look ups and not calculations.

    That "we" is undefined and thus meaningless. But people who have...

  • RE: String REPLACEMENT Question

    Lynn Pettis (1/3/2013)


    You mean something like this?

    DECLARE @TestStr VARCHAR(20) = 'QWERY56920TYEU';

    SELECT @TestStr;

    WITH eTally(n) AS (SELECT ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) FROM sys.all_columns a CROSS JOIN sys.all_columns b)

    SELECT

    ...

  • RE: String REPLACEMENT Question

    Embedded REPLACEs is your best option really, from a performance standpoint.

    You could generate the REPLACE statements so you didn't have to write them by hand.

  • RE: Phone numbers in a Help Desk application

    GilaMonster (1/3/2013)


    kwoznica (1/2/2013)


    You also wrote

    You have a singular “phone_contact” table name!! ONLY One?!

    I take that this is a suggestion to make the phone_contact table a wider table to...

  • RE: Quert regarding getting the results based on months.

    CELKO (1/2/2013)

    Since SQL is a database language, we prefer to do look ups and not calculations.

    That "we" is undefined and thus meaningless. But people who have to write...

  • RE: Null vs ''

    If you're providing data for report or any type of BI application, remove NULLs entirely. NULLs cause serious and severe logic considerations that most people don't fully understand (including...

  • RE: i want to add column in exiting view

    dan-572483 (1/2/2013)


    If all the queries in combined by the UNION statement are quering the same table (or differenet tables but the coumn names are the same), then you shoudn't need...

  • RE: Need some help with a query

    SELECT

    OccurrenceReport.OccurrenceDate,OccurrenceReport.TimeOfOccurrence,OccurrenceReport.Floor,OccurrenceReport.Description,

    OccurrenceReport.Injured,OccurrenceReport.FDNY,OccurrenceReport.FalseActual,OccurrenceReport.FPManager,

    OccurrenceReport.DateSigned,OccurrenceCauses.Cause,

    Emp.LastName + ', ' + Emp.FirstName as "EmployeeName",

    FireM.LastName + ',...

Viewing 15 posts - 6,946 through 6,960 (of 7,608 total)