Viewing 15 posts - 4,711 through 4,725 (of 10,144 total)
I'd check for NULL decsription in the source table:
DECLARE MOVEITEMS_CUR CURSOR FOR
SELECT MOVEITEMSID, MOVEDATE, ITEMID, [DESCRIPTION], USERID
FROM MYOB_IMPORT..MOVEITEMS
WHERE [DESCRIPTION] IS NOT NULL
The code is horrible! I gave...
April 30, 2013 at 5:54 am
Can you work it out from this:
SELECT
d.Today,
StartTime = DATEADD(hour,8,d.Today),
EndTime = DATEADD(hour,10,d.Today)
FROM (SELECT Today = CAST(CAST(GETDATE() AS DATE) AS DATETIME)) d
April 30, 2013 at 4:32 am
Is column [LINE_CODE] correctly populated in all of the tables?
April 30, 2013 at 4:28 am
-- use proper join syntax
-- don't use double-quotes for identifiers unless absolutely necessary
-- write queries using TOP 1...ORDER BY and ROW_NUMBER() and choose quickest of the two
-- CROSS APPLY is...
April 30, 2013 at 4:16 am
-- Expanding the date range out by months rather than days might be 30x cheaper
;WITH OrderedData AS (
SELECT *,
rn = ROW_NUMBER() OVER(PARTITION BY AccountID ORDER BY DataDate DESC)
FROM...
April 29, 2013 at 5:00 am
Evil Kraig F (4/26/2013)
...Thanks for taking the time to show me in a slightly different way...
Welcome. It's one of those things we take for granted after a while, not really...
April 29, 2013 at 1:10 am
UNION on it own dedupes the result set which is almost certainly not what you want.
Try combining the two queries into one so you're not reading tables twice, unnecessarily:
SELECT
TT.ID,...
April 29, 2013 at 12:59 am
rcarrier (4/28/2013)
...One source system transaction may need to have several inserts created in the destination table and its a complicated process to determine this.
...
"Complicated" is a relative word. If you're...
April 29, 2013 at 12:42 am
Ganga-236835 (4/26/2013)
ChrisM@Work (4/26/2013)
Those are 'organisations'...
Well, not quite. There could be multiple regional offices for "Organizations", with each one having their own unique set of phone numbers. ...
G.
Those are 'rows' in...
April 26, 2013 at 8:36 am
Ganga-236835 (4/26/2013)
ChrisM@Work (4/26/2013)
Those are 'organisations'...
Well, not quite. There could be multiple regional offices for "Organizations", with each one having their own unique set of phone numbers. Again, for the purposes...
April 26, 2013 at 8:25 am
Ganga-236835 (4/26/2013)
patrickmcginnis59 10839 (4/26/2013)
This is an interesting case, so I'm guessing that it really depends on how important the functionality of the foreign key constraint is for your needed functionality....
April 26, 2013 at 8:09 am
Ganga-236835 (4/26/2013)
Adding these columns to each parent's object just does not make sense. There is no supporting case, at least in this system, where it would make sense to add...
April 26, 2013 at 8:07 am
Lynn Pettis (4/26/2013)
If a phone number can only belong to one entity, why are you trying to make it a many to many relationship?
+1
April 26, 2013 at 8:06 am
Ganga-236835 (4/26/2013)
April 26, 2013 at 8:05 am
davidandrews13 (4/26/2013)
April 26, 2013 at 7:51 am
Viewing 15 posts - 4,711 through 4,725 (of 10,144 total)