Forum Replies Created

Viewing 15 posts - 1,621 through 1,635 (of 2,458 total)

  • RE: XML Nodes to retreive the child and its list of values.

    Do you have some DDL (the create table statement) for ETL.STG_LETTER_RQST?

  • RE: grouping

    This will get you the data grouped as required.

    -- sample data

    DECLARE @yourtable TABLE (Clt char(5), Part char(5), Date_a datetime, Val_b decimal(8,2), percent_b varchar(6));

    -- only did the first three groups...

  • RE: Group data into 15 minute intervals

    PSB (4/8/2015)


    For the interval between 8-8:30 , it's showing multiple rows

    2015-04-08 08:00:00.000300

    2015-04-08 08:00:00.00000

    2015-04-08 08:00:00.00000

    2015-04-08 08:00:00.00000

    2015-04-08 08:00:00.00000

    2015-04-08 08:00:00.00000

    2015-04-08 08:00:00.00000

    2015-04-08 08:00:00.00000

    2015-04-08 08:00:00.0001150

    2015-04-08 08:00:00.00000

    2015-04-08 08:00:00.00000

    2015-04-08 08:00:00.00000

    2015-04-08 08:00:00.00000

    should be

    2015-04-08 08:00:00.000,145 ,0

    I edited...

  • RE: Group data into 15 minute intervals

    You said 15 minute intervals but your example shows 30 min. To do 15 change @interval to 15. You could also dynamically calculate the start and end dates. This should...

  • RE: default date of date parameter

    In what tool? Are you looking for an SSRS, SSIS or SSAS expression?

  • RE: How to execute SQL scripts in batch

    In addition to what everyone else has suggested you can use SSIS and do a loop task (if you are familiar with SSIS). This is good if you don't want...

  • RE: Suggestion

    If you can get a consulting job with a company that focuses on BI and has lots of consultants and clients I think that would be ideal. I live in...

  • RE: Average number of days between orders

    Alan.B - You did notice that your solution truncates the average number of days right?

    Yep. I'm out of gas for today. I'll post a correct solution in the morning.

  • RE: Stored procedure taking longer in Prod

    Walton (4/7/2015)


    dwain.c (4/7/2015)


    Walton (4/7/2015)


    Hello All,

    I have one stored procedure being called by the job that runs everyday. It generally takes 2-3 minutes to run. But sometime, for some reason it...

  • RE: Are the posted questions getting worse?

    dwain.c (4/7/2015)


    I just posted this to "The Worst Comments" discussion thread:

    dwain.c (4/7/2015)


    -- Some nitwit posting under the moniker of Dwain.C with a big fish for an avatar

    -- gave me this...

  • RE: Adding memory to SQL

    If your server supports it you can add memory without restarting.

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (4/3/2015)


    Koen Verbeeck (4/3/2015)


    SqlSanctum (4/3/2015)


    No, it was never rescinded after Vatican II, almost everyone thinks it was though. Even my mother didn't believe me when I told her. I've...

  • RE: Average number of days between orders

    pietlinden (4/7/2015)


    Alan,

    Yup, I noticed that... The link I posted is to an article by Pinal Dave simulating LAG/LEAD in 2008. Otherwise, I would have posted a query.

    I guess he...

  • RE: Average number of days between orders

    Luis Cazares (4/7/2015)


    Alan.B (4/7/2015)


    pietlinden (4/7/2015)


    Found an article at SQLAuthority that covers your options:

    Simulate LEAD() and LAG() without Using SQL Server 2012 Analytic Function[/url]

    This is 2008 forum 😉

    That's why it...

  • RE: Average number of days between orders

    pietlinden (4/7/2015)


    Found an article at SQLAuthority that covers your options:

    Simulate LEAD() and LAG() without Using SQL Server 2012 Analytic Function[/url]

    This is 2008 forum 😉

Viewing 15 posts - 1,621 through 1,635 (of 2,458 total)