Viewing 15 posts - 31 through 45 (of 51 total)
Use SQL Server Business Intelligence Development Studio(BIDS) for data loading/transfer tasks (ETL). That's where you will find data flow task tab. Look into Books Online, it has good "getting started"...
September 25, 2009 at 10:07 am
How about this?
with TableName_cte
as(
select ID, Col1, Col2
from TableName
UNION
select ID, 'X'+cast(ID as varchar), 'Y'+cast(ID as varchar)
from TableName
)
select Col1, Col2
from TableName_cte
order by ID
-Supriya
September 23, 2009 at 2:30 pm
I second what bc has posted, its a cross join.
Basically, in your original query if you are getting 10 rows from the inner join and tblHosts has 10 rows...
September 22, 2009 at 9:45 am
SELECT *
FROM dbo.VALUATION A
INNER JOIN (
SELECT LRSN, MAX(EFF_YEAR) AS EFF_YEAR
FROM ...
September 21, 2009 at 11:34 am
huh????
Guess I have a lot to learn !!! 🙂
Anyway the only way I can think of for checking blanks is by converting the field to character, check for blanks using...
September 18, 2009 at 2:12 pm
I meant just run this single query: SELECT DISTINCT(stick_quantity) FROM dbo.SAP_InvoiceLine_M.
What is the output? Also, what is the actual datatype for stick_quantity?
Actually, I created a small test case with two...
September 18, 2009 at 12:02 pm
Can you do SELECT DISTINCT(stick_quantity) FROM dbo.SAP_InvoiceLine_M ?Do you have rows with blank stick_quantity?
September 17, 2009 at 2:35 pm
LOL :laugh:
Really funny Lutz. I had not seen that site before. Guess Rajesh asked for it..:-)
September 17, 2009 at 12:02 pm
R,
Have you tried using ISNULL? Since stick_quantity is decimal SQL Server doesn't store "blanks" but zeros and NULL is stored as NULL. So your sum column will look something like...
September 17, 2009 at 9:38 am
Seth is right, the query is way off and will be really slow.
But I was wondering why can't you put the difference between 25th sept and max invoice date...
September 16, 2009 at 11:01 am
What is the error you are getting? Or does the query runs successfully but doesn't give you the expected results?
September 16, 2009 at 9:57 am
You just missed assigning an alias name.
Try this:
select x / y
from
(select count(*) x from My_Table where Status = 'O' and Days_Old < '90') as A,
(select count(*) y from My_Table where...
September 14, 2009 at 2:14 pm
From BOL: "Parameter values can be supplied if a stored procedure is written to accept them. The supplied value must be a constant or a variable. You cannot specify a...
September 11, 2009 at 10:13 am
Could it be because yesterday's day part of the date was one digit and today its two digit? 9th vs 10th?
Just a thought.
-Sups
September 10, 2009 at 2:11 pm
Similar problem:
http://www.sqlservercentral.com/Forums/Topic775170-149-1.aspx
The solution posted there will work for you too with some minor changes.
HTH,
Sups
August 27, 2009 at 9:39 am
Viewing 15 posts - 31 through 45 (of 51 total)