Viewing 15 posts - 676 through 690 (of 3,957 total)
I'm not sure exactly what you want here as I see no definition of Delay or Frequency.
It does look like you're trying to get all columns in Feb (or whatever...
March 11, 2014 at 6:33 pm
Junglee_George (3/11/2014)
dwain, your code is superb one..Please write the UPDATE syntax also, if want to update the column.
Do you mean like this?
WITH SampleData (OrderNo) AS
(
SELECT 'SO-123456'...
March 11, 2014 at 6:04 pm
Junglee_George (3/11/2014)
Dwain, nice way of doing it..!!Is this a kind of cross-tab.??
Actually, the CROSS APPLY VALUES is a bit of an UNPIVOT (see the first link in my signature articles)....
March 11, 2014 at 4:45 am
Jeff Moden (3/11/2014)
Greg Edwards-268690 (3/10/2014)
Luis Cazares (3/10/2014)
Lynn Pettis (3/10/2014)
March 11, 2014 at 12:14 am
born2achieve (3/10/2014)
Thanks for your reply and i ran your logic. you have built logic just for as per my expected result. But i have gave some test data for...
March 10, 2014 at 9:04 pm
WITH BabyTemp (Baby, DT, Temp) AS
(
SELECT 1, '2013-03-11 08:45', 98.6
UNION ALL SELECT 1, '2013-03-11 11:15', 98.7
UNION ALL SELECT...
March 10, 2014 at 6:47 pm
There's an example in here: Calendar Tables in T-SQL[/url] that shows how to calculate the last work day of the month ("pay day"), which is not too dissimilar to your...
March 10, 2014 at 6:39 pm
CREATE TABLE #GrocessaryStore
(
IdGrocessaryStore int Primary key
,Name varchar(50)
,GrocessaryStoreDelay int
,DataFrequency int
...
March 10, 2014 at 6:35 pm
It might be overkill for you or it might be just what you need. Check out Jeff Moden's two articles "Hierarchies on Steroids:"
Be advised that this is...
March 9, 2014 at 9:07 pm
You can also do this using Cascading CROSS APPLYs:
WITH SampleData (Str2Split) AS
(
SELECT 'ELA-DUPLECHEIN, KELLIE-13-14-2(A-B)'
UNION ALL SELECT 'READING -LANDRY, MICHELE B-13-14-2(A)'
)
SELECT Str2Split, s2
FROM...
March 9, 2014 at 6:34 pm
Jeff Moden (3/7/2014)
MyDoggieJessie (3/7/2014)
March 9, 2014 at 6:18 pm
No self JOIN required if you do it like this:
SELECT batchid
,empsal=MAX(CASE WHEN rn=1 THEN empsal END)
,paiddate=MAX(CASE WHEN rn=1 THEN paiddate END)
...
March 9, 2014 at 6:15 pm
SQLRNNR (3/7/2014)
dwain.c (3/6/2014)
TomThomson (3/6/2014)
Koen Verbeeck (3/6/2014)
MysteryJimbo (3/6/2014)
Koen Verbeeck (3/5/2014)
Pfff, than you have never been in Belgium before 😀
If we wouldn't be having the most traffic jam congested cities in the...
March 8, 2014 at 8:09 pm
Ed Wagner (3/7/2014)
dwain.c (3/6/2014)
TomThomson (3/6/2014)
Koen Verbeeck (3/6/2014)
MysteryJimbo (3/6/2014)
Koen Verbeeck (3/5/2014)
Pfff, than you have never been in Belgium before 😀
If we wouldn't be having the most traffic jam congested cities in...
March 8, 2014 at 8:05 pm
Scratch that previous post. Coffee deficit disorder.
March 6, 2014 at 6:10 pm
Viewing 15 posts - 676 through 690 (of 3,957 total)