Forum Replies Created

Viewing 15 posts - 1,081 through 1,095 (of 6,486 total)

  • RE: SQL query datetime theory question

    What are you hoping to use this for? It vaguely looks like a pivot table to total things up by date, or some kind of running total. Am...

  • RE: Order by While inserting

    ACtually - using an ORDER BY during the insert would guarantee the ID's be generated in the correct order. Conor Cunningham confirmed that to be true a long while...

  • RE: What is the benefit of SSIS with respect to ETL?

    PaulB-TheOneAndOnly (2/11/2012)


    Rowles (2/10/2012)


    Generally I understand that SSIS allows for a wide-variety of services/applications to be used with SQL Server. Isn't ETL (extract, transform, load) the importing of raw data...

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (2/13/2012)


    Jeff Moden (2/12/2012)


    Does anyone know how to block "Site Owners" in the "Recent Posts" for today? Although I certainly appreciate links to blog subjects,...

  • RE: xml query

    Here's about as simple as it gets:

    select

    phone.value('(NUMBER)[1]', 'VARCHAR(40)' ),

    ...

  • RE: Using OPENXML with complex XML structure

    Try this one on. You'll find more info on how to set the inline XML queries up in the W3C xquery examples

    declare @xmlstr XML

    set @xmlstr=cast(@str as XML);

    select item.value('(var[./@name="ITEMID"]/number)[1]','float')...

  • RE: xml query

    The issue is that you're repeating sequences of nodes (i.e NUMBER and TYPE) without encapsulating them, so the querying is reasonably ugly. If you were to add the PHONE...

  • RE: Grouping on CASE statements = slow query?

    Have you looked at computed columns to render the contents of the CASE? They all look to be deterministic calculations, so you could even include the "post-calc" values in...

  • RE: Exec sp in response to data changes (w/o triggers)?

    This also might be a way to capture this. SQL Server triggers system events based on firing or executing procedures. You can use SQL Server (event) Broker to...

  • RE: Receive AS400 file to windows

    AS400 is a midrange operating system (think mainframe). You're not going to be able to hook up to it directly because it has a very different file structure (and...

  • RE: Help finding all possible combinations within a group of data

    mmiller 85218 (2/6/2012)


    J Livingston SQL (2/6/2012)


    mmiller 85218 (2/6/2012)


    Sean Lange (2/6/2012)


    J Livingston SQL (2/6/2012)


    2 type of House

    4 type of Colour

    3 type of Size

    5 type of Flavour

    2*4*3*5 = 120 combinations

    though...

  • RE: Unique key concept:Shubham Saxena@Bajaj Capital

    CELKO (2/1/2012)


    In the current ANSI/ISO standards have the IS [NOT] DISTINCT FROM theta operator, but only DB2 might have it -- I am not sure. We can use

    COALESCE...

  • RE: combine two tables without using join

    Question still is - why would you WANT to? As in - why would you not use the best and most obvious methods?

    Knowing the structure doesn't hurt, but having...

  • RE: validate imported spreadsheet data against the original spreadsheet

    GSquared (1/30/2012)


    Matt Miller (#4) (1/27/2012)


    In terms of validation: you can run aggregate functions in both the excel file and against the table to make suer you end up with...

  • RE: Rounding problem in sql 2008

    Jeff Moden (1/30/2012)


    I'ts not my solution. JLS posted it.

    It uses the MODULO function (% operator) which simply returns the remainder of a division. Try running just Amount %...

Viewing 15 posts - 1,081 through 1,095 (of 6,486 total)