Forum Replies Created

Viewing 15 posts - 316 through 330 (of 2,894 total)

  • RE: compare SQL syntax but need the total and %???

    karim.boulahfa (7/3/2013)


    ANSWERS

    Please follow the link in my signature to find how to post your question in order to attract relevant and prompt ANSWERS 😉

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Convert Row to Column

    J.Moden "must read" article should help you:

    http://www.sqlservercentral.com/articles/Crosstab/65048/

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Query Help

    SELECT SchoolID

    ,REPLACE(REPLACE(SchoolName, '-',' - '),' - ',' - ') AS SchoolName

    FROM #x1

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: sql sales

    kapil_kk (7/3/2013)


    You can use LIKE keyword for this-

    SELECT dbo.Trnasction.Salesorder, dbo.SalesPerson.SalesPersonName

    FROM dbo.Trnasction CROSS JOIN

    dbo.SalesPerson

    WHERE dbo.SalesPerson.SalesPersonName LIKE 'John%'

    Looks good! But...

    The above will return every possible transaction for the every sales person...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: a query like factorial

    That what a "quirky update" is about...

    But!

    To make it bullet-proof you need to read J.Moden article and see what else should be added into your query, so it...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: the script that will enable you to create the new values for each of the measures listed above. The financial year end is 28 February 2011 Then confirm the Financial Year, Quarter, Month, Week and Weekday,please help

    Please stop spamming the forum!

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: sql quantity sold per day

    engstevo (7/3/2013)


    the script that will enable you to create the new values for each of the measures

    What do you mean by that?

    There are build in T-SQL datetime function to...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: sql quantity sold per day

    All of these looks like a homework to me.

    In the real life this one better to be done using calendar table.

    And you would only use the script to populate it...

    Also,...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Replicating tables (temp) on another server

    There are few ways to implement such thing.

    Actual strategy would depend on many factors.

    In general, I would use SSIS to perform such task.

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Import multiple files into multiple tables

    I would not use this method of uploading files at all for many reasons. Do you have 32-bit or 64-bit system?

    Anyway you can try specify your delimeter in a connection...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Using RAISERROR with Dynamic SQL

    Could you please post your sql which builds dynamic SQL your INSERT INTO statement.

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Import multiple files into multiple tables

    You cannot upload differenet files at once.

    I dont' think anyone would have a cript which you could use "out of the box".

    There are two main ways for uploading flat files...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: How to maintain Audit history during Update Operation

    As you have mentioned about using the audit data for building cube, I would recommend to create a dedicated table to keep all audit history of Product changes.

    Then you...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: ORDER BY when inserting into table variable

    Luis Cazares (6/28/2013)


    Ok, won't argue on this, but will definitively search on why I was told that.

    EDIT: I believe they told me to change a non-clustered index (only index on...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Return records with lower Average Sale Price compared to last year

    SELECT

    y2013.[Year]

    ,y2013.[SKU Number]

    ,y2013.[Country]

    ,y2013.[Units]

    ,y2013.[Sales]

    ,y2013.[ASP]

    ,y2012.[ASP]

    FROM [Wirt].[dbo].[Basal_Media_2] AS y2013

    JOIN [Wirt].[dbo].[Basal_Media_2] AS y2012

    ON {whatever keys for this tables are}

    ORDER BY y2013.[SKU Number]

    ,y2013.[Country]

    ,y2013.[Year]

    WHERE y2013.[Year] = 2013

    AND y2012.[Year]...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

Viewing 15 posts - 316 through 330 (of 2,894 total)