Viewing 15 posts - 181 through 195 (of 395 total)
sayedkhalid99 (10/1/2012)
1. check secondmonth amount
2. sum(second month amount) > sum(first month amount)
3. get the difference
4. difference is greater then sum(first month...
October 2, 2012 at 2:54 am
Is the other database on the same server?
What change did you make that stopped it working? Was it adding the reference to dbo.Y_name?
October 2, 2012 at 2:51 am
You could try setting @MyNumberReturn to null instead of '000000'.
Then you'd only need to check if it was null:
if object_id('tempdb..##tmpSlsTaxOrdsDtl') is not null
drop table ##tmpSlsTaxOrdsDtl;
create table ##tmpSlsTaxOrdsDtl
(
OrderNo varchar(6)
);
--insert ##tmpSlsTaxOrdsDtl values...
October 2, 2012 at 2:39 am
There must be a difference somewhere, so you'll need to have a think about it & look carefully.
You can't join on null, because null means 'no value'.
FROM a LEFT OUTER...
October 1, 2012 at 10:46 am
OK - Using the code below, I'm only getting 7 rows - the rows from price_2, with deal_2 joined in with data or nulls where the join key is null.
Can...
October 1, 2012 at 10:16 am
The join is on isin, but the data in isin from table deal_2 is in cusip in table price_2.
Isin in price_2 is data like M70S.
October 1, 2012 at 9:34 am
jasona.work (10/1/2012)
anthony.green (10/1/2012)
Daniel Bowlin (10/1/2012)
crushPineapple
Grenade
Pin
October 1, 2012 at 9:29 am
There's a problem with the test data. Using your original table layouts, the data doesn't match:
On price_2, price_id doesn't accept null.
Also, cuisp is too small (9) for the data...
October 1, 2012 at 9:17 am
Can you give us some sample data - it sounds as though you haven't got any data in your keys.
Is this specifically a 2012 problem - does it work in...
October 1, 2012 at 8:17 am
Solution incorporating the above suggestions (thank you):
--====== TEST DATA =============
IF OBJECT_ID('dbo.tblHTML') IS NOT NULL
DROP TABLE dbo.tblHTML;
CREATE TABLE [dbo].[tblHTML](
[RowId] [int] NOT NULL,
[strPage] [ntext] NULL
) ON [PRIMARY]
insert into dbo.tblHTML values (...
October 1, 2012 at 7:55 am
laurie-789651 (10/1/2012)
I've elected to show rows where both values are zero in case these are wrong - You can remove this if you want.
I've set MAXRECURSION to...
October 1, 2012 at 6:24 am
Bit of a duplicate post?
http://www.sqlservercentral.com/Forums/Topic1366265-3077-1.aspx
October 1, 2012 at 6:17 am
This appears to work:
I've elected to show rows where both values are zero in case these are wrong - You can remove this if you want.
I've set MAXRECURSION to 10,...
October 1, 2012 at 6:12 am
dwain.c (10/1/2012)
dwain.c (10/1/2012)
sqlusers (10/1/2012)
I have created a Default Constraint for my table. But this is not reflected on my table.
EX: Column ImportDate has a Datetime Datatype with NOT NULL...
October 1, 2012 at 4:37 am
dwain.c (10/1/2012)
sqlusers (10/1/2012)
I have created a Default Constraint for my table. But this is not reflected on my table.
EX: Column ImportDate has a Datetime Datatype with NOT NULL Constraint.
I...
October 1, 2012 at 4:30 am
Viewing 15 posts - 181 through 195 (of 395 total)