Forum Replies Created

Viewing 15 posts - 4,621 through 4,635 (of 8,754 total)

  • RE: Integer column shows 5.00000000000000000 as value

    mar.ko (9/4/2015)


    INSERT WITH SELECT HAS THIS:

    ,Convert(Int,TARG_SALES) AS TARG_SALES

    Treats the column as if it were formatted decimal !!

    Looks more like a rounding trick in the insert, pretty certain the column's datatype...

  • RE: Are the posted questions getting worse?

    J Livingston SQL (9/5/2015)


    TomThomson (9/4/2015)


    Eirikur Eiriksson (9/3/2015)


    TomThomson (9/3/2015)


    Ed Wagner (9/3/2015)


    I would definitely attend your presentation on DBCC Timewarp. However, given the topic, expect some serious heckling. 😉

    Those who have...

  • RE: URGENT HELP- SQL Query - Sum Function?

    Quick thought, yes you will have to sum up the quantity, probably similar to the PackageTotals.TotalActualWeight

    😎

    Although one could try to decypher the query it is unlikely that answers derived from...

  • RE: Need help creating a function please

    Quick thought, make certain that you use an inline table value function and NOT a scalar function, the performance of the latter is horrendous, see the simple test harness and...

  • RE: How to convert SQL query into xsl file

    jacksonandrew321 (9/5/2015)


    I need to develop a client side XSLT that can transform that can extract only the required information that should be published e.g. Full name of scholar, department name,...

  • RE: Calculate User Payment

    MotivateMan1394 (9/5/2015)


    Yes you are right.

    Thank you for your kindness.

    It is complete and right;-):-P

    You are very welcome and thank you for the feedback.

    😎

  • RE: Calculate User Payment

    MotivateMan1394 (9/5/2015)


    No It's not true.

    If I Group by Cartid,SHCode , I get all records in my result.

    I Need sort of Group BY cartid And get max(editDate) >>> at...

  • RE: Only one record from table with multiple records

    hegdesuchi (9/4/2015)


    Hi,

    I have a scenario where ID has three flags.

    For example

    ID flag1 flag2 flag3

    1 0 1 ...

  • RE: Need to calculate PS1 time and Ps2 time from two tables

    rsrvas (9/4/2015)


    Thanks a lot..it really helped me..It solved my issue

    You are very welcome!

    😎

  • RE: Are the posted questions getting worse?

    Ed Wagner (9/3/2015)


    Eirikur Eiriksson (9/3/2015)


    Has anyone seen the Crystal ball?

    😎

    Given what you were given, I think you did pretty well. If you nailed it, then we know who has...

  • RE: Help Needed in cross logic Query

    KGJ-Dev (9/3/2015)


    Thanks Eirik for the straightforward method. Appreciated.

    You are welcome.

    😎

    Quick question, will you always know the number of columns in the output?

  • RE: Help Needed in cross logic Query

    born2achieve (9/3/2015)


    Hi Eirik is there performance difference between pivot and cross tab? Curious to know. Thanks

    In simple terms there is hardly any difference on smaller sets (10K rows or less),...

  • RE: Are the posted questions getting worse?

    Ed Wagner (9/3/2015)


    Eirikur Eiriksson (9/3/2015)


    Has anyone seen the Crystal ball?

    😎

    Given what you were given, I think you did pretty well. If you nailed it, then we know who has...

  • RE: Help Needed in cross logic Query

    Jayanth_Kurup (9/3/2015)


    pivot makes sense if the message column is a int or numerical data type on which aggregations need to be performs else if the number of messages is static...

  • RE: Help Needed in cross logic Query

    Quick cross-tab suggestion

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    Declare @Store table(id int primary key identity(1,1),StoreId int);

    Declare @Message table(StoreId int, Messages varchar(100));

    Insert into @Store(StoreId)

    select 100 union all select 200 union all select 300 union...

Viewing 15 posts - 4,621 through 4,635 (of 8,754 total)