Viewing 15 posts - 4,891 through 4,905 (of 5,504 total)
toparsi (10/7/2009)
October 7, 2009 at 12:42 pm
Assuming @A will always be a positive number you can change
where ((avg_cost - std_cost)*in_stock >= @A
or (avg_cost - std_cost)*in_stock <= -1* @A)
to
where (ABS((avg_cost - std_cost)*in_stock) >= @A)...
October 7, 2009 at 12:33 pm
Global answer: yes.
The major question would be: Why would you do this?
A relational database is designed following a simple pattern:
- data in a row belong together
- data in...
October 6, 2009 at 2:04 pm
Simple answer: yes.
Example (using AdventureWorks):
DECLARE @xmlstr nvarchar(1000)
SET @xmlstr =
(SELECT top 1 *
FROM HumanResources.Shift
FOR xml auto, elements)
SELECT @xmlstr
/*Result...
October 6, 2009 at 1:18 pm
You might want to have a look at Jeff Moden's article regarding Dynamic Cross Tabs [/url].
If you need further assistance please provide sample data as described in the link...
October 5, 2009 at 3:50 am
Please read and follow the recommendation shown in the link in my signature.
Your sample data seem to be incomplete:
- Values for ParentFleetID are missing
- There is no relation shown between...
October 4, 2009 at 2:19 pm
duplicate post.
please continue discussion here .
September 30, 2009 at 1:18 pm
kabaari (9/29/2009)
SELECT DATEADD(wk, DATEDIFF(wk, 6,...
September 29, 2009 at 1:22 pm
grahamcoombes (9/28/2009)
September 29, 2009 at 7:26 am
September 29, 2009 at 7:16 am
September 29, 2009 at 7:15 am
September 29, 2009 at 7:15 am
You might want to have a look at the following article:
September 29, 2009 at 7:10 am
Obviously, the data in tableA do have unique values in the primary key field, whereas tableB doesn't.
Try the following:
SELECT PrimKey, COUNT(*) FROM TableB
having COUNT(*) >1
GROUP BY PrimKey
This query should result...
September 24, 2009 at 4:49 pm
If you look at the upper right hand side of your post you'll find a button named "EDIT ///".
So, this site has an option to edit your posts.
However, you cannot...
September 24, 2009 at 1:16 pm
Viewing 15 posts - 4,891 through 4,905 (of 5,504 total)