Forum Replies Created

Viewing 15 posts - 1,051 through 1,065 (of 3,233 total)

  • RE: How to print 1st row of one table followed by 1st row of second and so on

    And w/o the CTE:

    DECLARE @Table1 TABLE (col1 char(2), col2 int)

    INSERT INTO @Table1

    SELECT 'aa', 12 UNION ALL

    SELECT 'bb', 22 UNION ALL

    SELECT 'cc', 33

    DECLARE @Table2 TABLE (col1 char(2), col2 int)

    INSERT INTO @Table2

    SELECT...

  • RE: Query optimation help

    OK, how 'bout this one:

    ;WITH DirectReports (UniqueID, CurrentProcessStepID, NextProcessStepID, [Name])

    AS

    (

    SELECTROW_NUMBER() OVER(ORDER BY tp.TransactionID) as UniqueID,

    tp.CurrentProcessStepID,

    tp.NextProcessStepID,

    Name

    FROM itTransactionProcess AS tp

    LEFT OUTER JOIN dbo.itProcessSteps ON tp.CurrentProcessStepID = dbo.itProcessSteps.ProcessStepID

    WHERE LotNumber =...

  • RE: Query optimation help

    So from what it sounds like, the UniqueID and Level values are arbitrary numbers that need to be incremental and as long as they appear in the right order, all...

  • RE: Query optimation help

    What about that Processing Step ID 8 question?

    I guess what I'm getting at is, based off of the result sets in your spreadsheets, why is Step 8 our of numeric...

  • RE: Query optimation help

    And what about Level?

    So in your correct results, why would you want to see CurrentProcessingStepID 8 our of numeric order?

  • RE: Query optimation help

    What is the purpose of the UniqueID value?

    edit....

    And the Level values?

  • RE: Importing XML Structure to SQL Server DB

    Mat (8/27/2009)


    I guess the question now is can I take a single step (or a single pathway) to upload this data into a SQL Server Destination. Or do I need...

  • RE: Problem: Slowly Changing Dimension - 2 rows with the same PK

    You can't import both rows if they have the same Primary Key. Even if the rows were imported in different transactions, it will fail because of the Primary Key...

  • RE: Query optimation help

    I appologize in advance for posting an incomplete post, but I have to get out of the office for the day and I didn't want to leave you hanging.

    Your problem...

  • RE: SQL teaser...easu for you pros !

    DECLARE @Table TABLE (Data1 char(1), Data2 int, Data3 int)

    INSERT INTO @Table

    SELECT 'A', 100, 20 UNION ALL

    SELECT 'A', 102, 30 UNION ALL

    SELECT 'A', 103, 40 UNION ALL

    SELECT 'B', 104, 10...

  • RE: Combatting Teradata

    Agreed. And while you're on site, ask to visit the users too.

  • RE: SQL teaser...easu for you pros !

    What SQL have you tried that has you stuck?

  • RE: Combatting Teradata

    David is correct. Good Teradata administrators are very hard to find. On top of that, you need to consider what kind of environment you want to create. ...

  • RE: Importing XML Structure to SQL Server DB

    The XML source adapter, as you've seen, breaks the XML up into it's relational components. So you'll need a destination for each output.

    You may be able to...

  • RE: Error in BCP

    Well, are you going to post your table DDL and sample data?

Viewing 15 posts - 1,051 through 1,065 (of 3,233 total)