Forum Replies Created

Viewing 15 posts - 46 through 60 (of 402 total)

  • RE: query to find average age and percentage of patients with something

    No Probs 🙂

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: query to find average age and percentage of patients with something

    prb88 (5/9/2013)


    ive added the group by but it results to this

    no of operations

    1

    2

    5

    7

    when i need it to result like this:

    Consultant name No. of operations

    Dr Smith ...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Finding min using over(order by) in sql server

    Looks like you need to put your minimum part as a sub query if other columns are involved that you can't group by.

    If this is what the OP is looking...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Finding min using over(order by) in sql server

    if i go woth your suggestion then i need to group it by the other non aggregated columns, if i group it my results will go wrong, so i am...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Clustered indexed primary key not in asc order when selected

    Sql Server will scan the table differently for the query's with and without the hints which is why you may be getting a different sort order..

    The only way to guarantee...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Finding min using over(order by) in sql server

    Cross Post

    http://www.sqlservercentral.com/Forums/Topic1422113-391-1.aspx

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Finding min using over(order by) in sql server

    Hi

    Is there any reason you cant use:

    SELECT

    MIN(ST.BG_DTTM) 'Minim'

    FROM

    tablename ST

    Cheers

    Andy

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Query Help

    Hi

    Another way without the UNION

    Create table #x1

    (

    iSchoolCode int,

    iSchoolYearCode int,

    dtCalendarDate datetime,

    iCalendarDayId int

    )

    insert into #x1 values (301,2012,'2012-08-10 00:00:00.000',NULL)

    insert into #x1 values (301,2012,'2012-08-11 00:00:00.000',NULL)

    insert into #x1 values (301,2012,'2012-08-12 00:00:00.000',NULL)

    insert into #x1 values (301,2012,'2012-08-13...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: script task

    Hi

    i am curious when to use script task where other components in ssis can't do the job

    Well there is your answer! 😉

    One example would be to obtain the error message...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Multiple Ole db sources to a single flat file destination

    Are you sure that having a single flat file containing mixed data would be an acceptable solution

    Depends Phil, the tables may have no relationship but may contain data that does...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Multiple Ole db sources to a single flat file destination

    sunder.mekala (2/18/2013)


    Hello friends,

    i have requirement where i have take data from different tables of sql server db, but here the important thing is tables doesnt have any relationship among them,...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: DWH : Fact table : index creation.

    Bhuvnesh (2/18/2013)


    Andy Hyslop (2/15/2013)


    could test your ETL's by dropping all of your indexes and re-creating and determining the impact so see which is more efficient

    Does it cost intensive if...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Puzzle / CTE Help - NO CURORS :)

    I believe other engines implement cursors quite differently, with much better performance

    In Oracle they are considered by many to be best practice..

    I just detest the interface...!

    Thanks for the code Paul

    Andy

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: DWH : Fact table : index creation.

    Jason-299789 (2/15/2013)


    It depends, what is the ETL process, is it a snapshot Fact (as is) or incremental with Insert new update existing, or Contra correction logic as the decision will...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Naming Convention for UDF's, Views and SP's

    I'll probably have every DW expert in the world yell at me because it violates status quo naming

    Consider this a "Yelling" Jeff 😉

    That, not withstanding, the key for everyone, whether...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

Viewing 15 posts - 46 through 60 (of 402 total)