Viewing 15 posts - 8,401 through 8,415 (of 10,144 total)
Try this:
SELECT d.*, s.MaxUsage
FROM (
SELECT [Application], [1] AS Day1, [2] AS Day2, [3] AS Day3, [4] AS Day4, [5] AS Day5, [6] AS Day6
FROM
(SELECT [Application], [Lastname], Daynr
FROM...
December 7, 2009 at 4:38 am
What should happen to a deadline date of 28th February 2010 on 29th January 2010?
December 7, 2009 at 3:59 am
Ankur Bhardwaj (12/7/2009)
Find all the employees who have joined at last day of month in last 3 years (2007,2008,2009)
Can you please supply some sample data in a readily-consumable format? The...
December 7, 2009 at 3:51 am
davidandrews13 (12/4/2009)
Lynn Pettis (12/4/2009)
December 4, 2009 at 9:14 am
davidandrews13 (12/4/2009)
December 4, 2009 at 7:32 am
GSquared (12/4/2009)
December 4, 2009 at 7:21 am
Grant Fritchey (12/4/2009)
In general, I'd say that's a hint to blow the dust off the resume.
Hey Grant, sorry I missed your recent trip over here - would have been a...
December 4, 2009 at 7:10 am
davidandrews13 (12/4/2009)
thanks everyone. got it to work. 😎
Top work, David. How about posting your solution for the curious?
December 4, 2009 at 6:32 am
mabud_ncc (12/4/2009)
table o [oid (pk), prod_id(fk), status]
table p2p [p2pid (pk),path_id(fk), prod_id(fk), status]
table pv [path_id(fk), cat_id (fk), step]
table c [cat_id (pk), status,...
December 4, 2009 at 5:32 am
Some sample data showing the relationships between the tables would be great. There are a number of ways of structuring this type of query which has different aggregates hanging off...
December 4, 2009 at 3:29 am
Replacing the cursor code with this will simplify things for you.
DECLARE @cats varchar(1000)
SELECT @cats = ISNULL(@cats, '') + '[' + cat.catName + '], '
FROM #Categories cat
-- Display ...
December 3, 2009 at 8:55 am
Lynn Pettis (12/3/2009)
Sounds like a dynamic pivot may be required here. Please chack out the article references in my signature block below regarding Cross Tabs and Pivots.
Lynn beat me...
December 3, 2009 at 8:27 am
BaddaBing (12/3/2009)
December 3, 2009 at 6:25 am
DROP TABLE #Guests
CREATE TABLE #Guests(
Firstname varchar(30),
Lastname varchar(30),
Birthdate datetime
)
INSERT INTO #Guests (Firstname,Lastname,Birthdate) VALUES ('Jim','Jones','1961-12-03 01:00:00.000')--Birthday in next 2wks
INSERT INTO #Guests (Firstname,Lastname,Birthdate) VALUES ('Joe','Bloggs','1961-12-03 02:00:00.000')--Birthday in next 2wks
INSERT INTO #Guests (Firstname,Lastname,Birthdate) VALUES...
December 3, 2009 at 5:16 am
DROP TABLE #Guests
CREATE TABLE #Guests(
Firstname varchar(30),
Lastname varchar(30),
Birthdate datetime
)
INSERT INTO #Guests (Firstname,Lastname,Birthdate) VALUES ('Jim','Jones','19611203')--Birthday in next 2wks
INSERT INTO #Guests (Firstname,Lastname,Birthdate) VALUES ('Joe','Bloggs','19621210')--Birthday in next 2wks
INSERT INTO #Guests (Firstname,Lastname,Birthdate) VALUES ('Dave','Thomas','19631212')--Birthday in...
December 3, 2009 at 5:10 am
Viewing 15 posts - 8,401 through 8,415 (of 10,144 total)