Viewing 15 posts - 151 through 165 (of 224 total)
Jeff Moden (6/27/2008)
Stephanie Giovannini (6/27/2008)
Hmmm... I suppose the second table is the best way to do it, if I'm allowed to do so. At least I now have ammunition.
Sorry, Stephanie......
June 27, 2008 at 9:11 am
Hmmm... I suppose the second table is the best way to do it, if I'm allowed to do so. At least I now have ammunition.
June 27, 2008 at 8:19 am
An interesting point about the editorial is that these inexperienced DBAs were attending a professional conference. That means they were likely being paid, both in time and travel, by their...
June 25, 2008 at 3:13 pm
Jeff, I like your schema better. Thanks for clarifying how phone numbers and addresses are ideally stored.
June 25, 2008 at 9:09 am
Based on the schema fragments you've posted, I'm seeing the following situations:
- Different phone ids may represent the same phone number
- Customers may share phone numbers
- A customer may have...
June 23, 2008 at 3:32 pm
fisher08 (6/23/2008)
There are about 20 columns in total and five of them involved data with a number of zeros in front, don't ask why, I have no idea.
Why?
You should ask...
June 23, 2008 at 2:21 pm
As for why to get certified, I find it intersting that the discussion tends to concern whether having a certification can get you a job. The consensus seems to be...
June 19, 2008 at 2:13 pm
Replace
WHERE T.N < DATALENGTH(M.SalesRepList)
with
WHERE T.N <= DATALENGTH(M.SalesRepList)
There was an error in the query I originally wrote. I forgot to account for the tildes added at front and end. Sorry about...
June 19, 2008 at 9:34 am
Excellent reference! I've been looking to solve a similar problem, and this is it!
muten79 (6/19/2008)
I've been reading this article:
http://www.sqlteam.com/article/implementing-table-inheritance-in-sql-server
It simulates OOP's hierarchy like Michael suggested.
It could work.
Thanks...
June 19, 2008 at 8:39 am
Steve, you got the essence of the Zone exactly! At least, what it is to me.
I also have a time problem with it. My best productivity doesn't start until about...
June 19, 2008 at 8:20 am
I bet the 3% who got it "right" just clicked all the answers without looking anything up because the answer "all of the above" is a common pattern for a...
June 18, 2008 at 9:39 am
I have copied queries directly from Jeff Moden's article at:
http://www.sqlservercentral.com/articles/TSQL/62867
and modified them to suit this purpose.
Using the test data you posted (not repeated here)...
First, create a Tally table,...
June 16, 2008 at 9:49 am
It works! I've posted the completed procedure below (goes with the schema from the first post).
CREATE PROCEDURE RecordNextScheduledEntry (@entryId INT)
AS
DECLARE @newEntryId INT
-- create primary entry
INSERT INTO Entry (accountId, transactionDate, sequenceNumber,...
June 13, 2008 at 1:38 pm
Wait, I think I got it... wrote something that compiles, now I have to test it...
June 13, 2008 at 1:07 pm
You've simplified the schema... I see that... I have no idea what those tables are! I'm having trouble figuring out how it matches my problem. How do T1, T2 and...
June 13, 2008 at 1:00 pm
Viewing 15 posts - 151 through 165 (of 224 total)