Forum Replies Created

Viewing 15 posts - 856 through 870 (of 1,246 total)

  • RE: Fuzzy Matching

    That's almost an exact description of my previous job. I maintained an ETL process for what we called the Master Patient Index; matching up distinct patients across medical claims, enrollments,...

  • RE: Fuzzy Matching

    Eric M Russell (9/6/2016)


    J Livingston SQL (9/6/2016)


    -- just for fun

    SELECT[dbo].[DoubleMetaPhone]('Pheasant');

    SELECT[dbo].[DoubleMetaPhone]('Phesant');

    SELECT[dbo].[DoubleMetaPhone]('Fessant');

    SELECT[dbo].[DoubleMetaPhone]('Fezant');

    SELECT[dbo].[DoubleMetaPhone]('Phes ant');

    SELECT[dbo].[DoubleMetaPhone]('Fez aunt');

    quite impressive

    Still there is the issue that two words sounding alike are completely different.

    SELECT[dbo].[DoubleMetaPhone]('Pheasant');

    FSNT FSNT

    SELECT[dbo].[DoubleMetaPhone]('Fussy Aunt');

    FSNT FSNT

    It's been my...

  • RE: Fuzzy Matching

    J Livingston SQL (9/6/2016)


    -- just for fun

    SELECT[dbo].[DoubleMetaPhone]('Pheasant');

    SELECT[dbo].[DoubleMetaPhone]('Phesant');

    SELECT[dbo].[DoubleMetaPhone]('Fessant');

    SELECT[dbo].[DoubleMetaPhone]('Fezant');

    SELECT[dbo].[DoubleMetaPhone]('Phes ant');

    SELECT[dbo].[DoubleMetaPhone]('Fez aunt');

    quite impressive

    Yeah... Wish I could take credit for it (Google skills perhaps?), but my contribution was just a straight copy & paste...

  • RE: Fuzzy Matching

    An oldie but a goody... Years ago, Keith Henry translated Lawrence Philips C++ function to SQL function.

    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=13574

    Yes, it is a Scalar function and no I haven't attempted to rewrite it...

  • RE: Query subtree costs justify parallelism, but it doesn't

    Can't say w/o looking at the actual execution plan... But... If I were to hazard a bling guess, I'd look for scalar functions and/or multi-statement table valued functions.

  • RE: Your thoughts on dropping redundant indexes...

    Eric M Russell (6/17/2016)


    Using index operational stats, if you see an index where the total writes exceeds the total reads, then it probably useless. But generally speaking, I'm comfortable with...

  • RE: Your thoughts on dropping redundant indexes...

    CMRWB (6/17/2016)


    Yes, You can just add the the col_3 to the first index and its took care of both need.

    Also, Before drop any index, look for indexusage statistics report....

  • RE: Your thoughts on dropping redundant indexes...

    TheSQLGuru (6/17/2016)


    Too many "it depends" here. In general I always look to reduce indexes/indexing when they are direct or near duplicates. Just a LOT of cost in many ways for...

  • RE: how to count number of student

    RV16 (5/13/2016)


    Thanks.

    You mean If I want to count number of students according to crs_cde then I should write like this

    count(sch.id_num) OVER (PARTITION BY ss.CRS_CDE) "No of student"

    I just want to...

  • RE: how to count number of student

    Looks like you just need to "window" the count function and loose the group by...

    COUNT(TableName.StudentID) OVER (PARTITION BY NULL)

    HTH,

    Jason

  • RE: Dynamic SQL Agent Jobs - Schedule disabled before it can run (SetJobNextRunDate?)

    I've has to do something similar in terms of enabling & disabling gobs based on various conditions... I found that adding a call to sp_start_job to the end of my...

  • RE: Adding single quotes in a string

    SQL006 (4/21/2016)


    Thank you guys

    No i am not using dynamic SQL, just passing it to storeprocedure as a parameter which is used in 'IN' operator.

    one doubt does REPLACE has any performance...

  • RE: The Most Common Query Blunders...

    TheSQLGuru (1/28/2016)


    Jason A. Long (1/28/2016)


    I just wanted to give a HUGE thank you to Kevin. He gave his "Common SQL Programming Mistakes" presentation for out company today.

    It's an outstanding presentation....

  • RE: The Most Common Query Blunders...

    I just wanted to give a HUGE thank you to Kevin. He gave his "Common SQL Programming Mistakes" presentation for out company today.

    It's an outstanding presentation. If you you're fortunate...

  • RE: Multiple queries in the same stored procedure

    Just my 2 cents... If you want to prove anything to anybody, do it with the code...

    Write a 2nd version of the proc (the way you believe it should have...

Viewing 15 posts - 856 through 870 (of 1,246 total)