Viewing 15 posts - 286 through 300 (of 462 total)
winsysadmin (10/21/2009)
SELECT * FROM SoftwareProduct where Productname='Internet Information Services' and ProductVersion...
October 21, 2009 at 12:51 pm
Stephen crocker (10/21/2009)
I have a table that has multiple records for each person in...
October 21, 2009 at 8:51 am
Remove the select part and just keep this in your sp
update [File]
set DownloadCount=DownloadCount+1
Where FileCode = @FileCodesql
October 21, 2009 at 8:46 am
Do you want to group it by sysuser and day?
CREATE TABLE #T1(dt datetime, AT varchar(50), SysUser Varchar(50))
INSERT INTO #T1 VALUES ('2006-08-21 08:25:04:633', 'SQLAgent', 'smithj')
INSERT INTO #T1 VALUES ('2006-08-22 08:25:04:633', 'SQLAgent',...
October 21, 2009 at 5:35 am
I love animals, so went an extra mile to provide the query 🙂
But if you provide the test data like this, you would get quicker reply. Thanks.
CREATE TABLE dbo.species(speciesID...
October 21, 2009 at 2:20 am
oh thanks Seth, I was not completely sure about that. I had to use an aggregate function there and had chosen max.
@kramaswamy, sorry I was not 100%...
October 21, 2009 at 12:56 am
Please look at the explanation by Seth below. Thanks.
October 20, 2009 at 12:51 pm
Will this do?
SELECT [Date], SubjectLine, max(case when categoryID = 1 THen CONTENT END) as Content
FROM #Temp
GROUP BY [Date], SubjectLine
October 20, 2009 at 12:35 pm
declare a variable, get your total into that variable and then divide each column in the select with the variable something like this,
Declare @max-2 as float
Set
October 20, 2009 at 4:17 am
Yes, same as Steve (with some test data and summing)
DRop table Manager
CREATE TABLE MANAGER(id int, category varchar(50))
INSERT INTO MANAGER VALUES(1,'Operations')
INSERT INTO MANAGER VALUES(1,'Operations')
INSERT INTO MANAGER VALUES(1,'Operations')
INSERT INTO MANAGER VALUES(1,'Operations')
INSERT INTO...
October 19, 2009 at 10:34 am
fuzzy528 (10/17/2009)
Thanks a ton for your time brother !!
Thats nice of you to say that 🙂 ur welcome.
Getting the nickname is simple, join your profile_education table with profiles table...
October 17, 2009 at 8:08 am
fuzzy528 (10/16/2009)
The same with the pivot solution...(also i would like to mention, i need to put the results into profiles_display not just show them)
I dont think so!!! add this to...
October 17, 2009 at 12:27 am
PIVOT:
Select profileID,
[1] as Institution1,
[2] as Institution2,
[3] as Institution3,
[4] as Institution4
FROM (Select
ProfileID, Institution, ROW_NUMBER()
OVER (PARTITION BY PROFILEID ORDER BY ProfileID) as Row_no from
profiles_education) as PE
PIVOT (max(INSTITUTION) FOR...
October 16, 2009 at 11:35 pm
amazing!! this is an undocumented feature isn't it?:w00t: (%%lockres%% )
October 16, 2009 at 4:56 am
Viewing 15 posts - 286 through 300 (of 462 total)