Viewing 15 posts - 10,036 through 10,050 (of 10,144 total)
Person is one entity, which may or may not have attributes of breeder / owner etc. Keep persons together in one table.
Whether or not you decide to create tables...
August 16, 2007 at 5:02 am
Here's a more set-based method - thanks for providing me with the incentive to do this - which uses a "tally" or "numbers" table. It's quite fast, get's a match...
August 15, 2007 at 6:45 am
Chris
Try this. There's quite a few elements of this which can be adjusted to fit your data, for instance increasing the token length from 3 will add greater weight to...
August 15, 2007 at 1:42 am
Chris, can you post some representative sample data? Datatype of the column, Min / max length of contents and min/max word count would be good also.
Cheers
ChrisM
August 14, 2007 at 11:40 pm
That's interesting, and not at all what I was expecting. You're matching on one or more words in a varchar column in each table?
I'm doing fuzzy deduping on company...
August 14, 2007 at 1:00 pm
Chris
I came across this problem recently (the same interview perhaps) and came up with the following. Three tables, 1 2 & 3, which share a pk across some rows in each table....
August 14, 2007 at 9:18 am
<<Similar types of answers help you hire similar types of people.>> I hadn't thought of that and you're spot on.
They asked if there was a particular area of TSQL...
August 9, 2007 at 8:32 am
Heh heh had this one yesterday <<Why are man hole tops round?>> at an interview for a gig with a mortgage company. I answered "so they fit" and "'cos a...
August 9, 2007 at 2:49 am
Hi Loner
I reckon Brandie has nailed this one - if the US market is anything like the market here in the UK, then there's a real shortage of good people...
August 7, 2007 at 4:48 am
Hey Goodguy, I'm not explaining this well, sorry.
WHERE ...
AND IM.LOCID = CASE WHEN @LOCID > 0 THEN @LOCID ELSE IM.LOCID END
This means "if @LOCID is greater than zero then use...
August 1, 2007 at 8:51 am
If the default value for @LOCID will be non-null, then you can do essentially the same substitution with a CASE instead:
WHERE IM.LOCID = CASE WHEN @LOCID > 0 THEN @LOCID ELSE IM.LOCID END
I...
August 1, 2007 at 7:59 am
Cool, you're well on the way.
You can use ISNULL in the WHERE clause as follows:
CREATE TABLE #LOCATIONS (LOC_ID int, LOCATION varchar(10))
INSERT INTO #LOCATIONS
SELECT 1, 'POOL BAR' UNION ALL
SELECT 2, 'RESTAURANT'...
August 1, 2007 at 7:00 am
Hi Goodguy
It's an uphill task because the sproc doesn't fit the sample data or vice versa. Please can you amend one or the other to fit your requirements? I suspect...
August 1, 2007 at 5:35 am
Hi Goodguy, of course, you're making perfect sense, thank you for the excellent explanation.
Check out this query, have a look at the result set, I'm sure you will find it...
July 31, 2007 at 9:11 am
Viewing 15 posts - 10,036 through 10,050 (of 10,144 total)