Viewing 15 posts - 2,041 through 2,055 (of 2,469 total)
My apologies to you Noel for not paying closer attention to FHanlon's solution....now that you point it out it should have hit everyone in the face that the max (or...
June 29, 2005 at 10:36 am
Just for the fun of it.....
My guess is that fhanlon has it right!
June 29, 2005 at 9:54 am
Remi - I don't know if you do this already but you should start submitting scripts to scc.com so they can include it in their knowledge base for ready reference!!!
June 29, 2005 at 7:40 am
finding it difficult to follow your logic, but you could do something like this:
If(Parameters!Location.Value > "") then
if(Parameters!DateRange.Value > ""
select * from myTable
where myLocation = '"...
June 28, 2005 at 10:55 pm
You may also want to try...(I can't test this...)
SELECT x.Category, x.COUNT(*) AS TranCount, ((SELECT COUNT(*) FROM TableName x2 WHERE x.Category = x2.Category GROUP BY x2.Category) * 100/ (SELECT COUNT(*) FROM...
June 28, 2005 at 8:33 pm
You could maybe put this in a procedure (definitely easier) & get the count(*) first...
Declare @TranCount Decimal(10,2)
Select @TranCount = count(*) from TableName
Select (count(*) * 100)/(@TranCount ) As Percentage from TableName
Group...
June 28, 2005 at 8:22 pm
Remi - is "see hold hold something in" another famous American quote or a typo ?! Now I don't know with you anymore!
<;-)
June 28, 2005 at 6:54 pm
I know how to get a computed column -
"SELECT syscolumns.name FROM syscolumns
JOIN sysobjects ON sysobjects.id = syscolumns.id
AND syscolumns.iscomputed = 1 AND sysobjects.xtype = 'U'"
I'm sure somewhere in the information...
June 28, 2005 at 6:52 pm
You tell him Noel - I've been carefully NOT saying what I really want to.....<;-)
Remi - this may be another moo point, so don't worry too much about it!
June 28, 2005 at 3:30 pm
As long as you're not referred to as a "simpleton" everything's ok! <;-)
June 28, 2005 at 3:08 pm
sql server forces windows authentication only when users don't have valid logins in the server! Check the user logins properties first....
btw - are these users outside the local network ?!
June 28, 2005 at 2:57 pm
dc - I feel as vehmently as you (splly. since everyone is entitled to "your" opinion) about sql_variant and obsessively compulsively design my databases to store data in exactly the...
June 28, 2005 at 2:17 pm
Aruram (btw - my last name is left(4, yourname) <;-)
What a wonderfully diplomatic response!
Remi - Yes, I did understand your flag system...you type too fast - "moo(?)" point - kinda...
June 28, 2005 at 1:45 pm
But if it's only one or the other it can always be just Y for year and whatever else you want for full DOB (take your pick - "D", "N"......)
June 28, 2005 at 1:26 pm
Viewing 15 posts - 2,041 through 2,055 (of 2,469 total)