Viewing 15 posts - 9,376 through 9,390 (of 15,381 total)
ChrisM@Work (2/7/2013)
;WITH SampleData ([Group], [Type], Amount) AS (SELECT 'Dog', 'Typea', 1 UNION ALL
SELECT 'Dog', 'Typeb', 2 UNION ALL
SELECT 'Dog', 'Typec', 3 UNION ALL
SELECT 'Cat', 'Typea', 10 UNION ALL
SELECT 'Cat', 'Typeb',...
February 7, 2013 at 8:14 am
mjbkm (2/7/2013)
with DogCat(Animal, Amount) as
(
select 'Dog', 1 union all
select 'Dog', 2 union all
select 'Dog', 3 union all
select 'Cat', 10 union all
select 'Cat', 20
)
I...
February 7, 2013 at 7:41 am
How about using the DelimitedSplit8k? This seems to be super fast to me.
Select Id,
MAX(Case When ItemNumber = 1 Then Item Else '' End) As Level1,
...
February 7, 2013 at 7:36 am
menon.satyen (2/6/2013)
If you set it to 90 then it will use features of SQL 2005 and if set to...
February 6, 2013 at 3:27 pm
kjeter (2/6/2013)
February 6, 2013 at 3:14 pm
Something like this should work. Notice how I posted sample data in a readily consumable format. That is something you should do in the future.
with DogCat(Animal, Amount) as
(
select 'Dog', 1...
February 6, 2013 at 1:21 pm
njfuller (2/6/2013)
In a single transaction, a material and a material_prod_version record will be inserted.
Each record has its own identity column.
The material_prod_version record has a column for...
February 6, 2013 at 12:41 pm
It would be far more helpful if you posted ddl and sample. You can find out how to do that by reading the article at the first link in my...
February 6, 2013 at 12:31 pm
Duplicate post. Direct replies here. http://www.sqlservercentral.com/Forums/Topic1413549-147-1.aspx
February 6, 2013 at 10:10 am
davdam8 (2/6/2013)
Thanks Guys.Lowell, yes there are more levels indeed.
Regards
Then I would suggest you look at the article in my signature about splitting strings. Then look at the articles in my...
February 6, 2013 at 10:09 am
Can you post ddl and sample data. See the first link in my signature.
February 6, 2013 at 8:55 am
Antony Symonds (2/5/2013)
February 5, 2013 at 3:01 pm
It seems that a calendar table would help you considerably. You can read about them here. http://www.sqlservercentral.com/articles/T-SQL/70482/%5B/url%5D
If you need help with the query please first read the article in my...
February 5, 2013 at 2:00 pm
Kenneth.Fisher (2/5/2013)
CREATE TRIGGER TriggernameON TableName AFTER UPDATE
IF UPDATE(ColumnName) -- UPDATE function only exists inside of triggers
BEGIN
-- Write code here
END
This method will work but often people get confused. They...
February 5, 2013 at 12:22 pm
igloo21 (2/5/2013)
February 5, 2013 at 12:15 pm
Viewing 15 posts - 9,376 through 9,390 (of 15,381 total)