Viewing 15 posts - 1,381 through 1,395 (of 1,825 total)
Also be mindful of the overhead
http://sqlblogcasts.com/blogs/sqlandthelike/archive/2009/10/15/udf-overhead-a-simple-example.aspx
October 15, 2009 at 2:09 am
Dont think that im being awkward for the sake of it , just helping you to help yourself.
Have you looked up Patindex in BOL (Books On Line) to see what...
October 15, 2009 at 1:57 am
It will be a simple case of joining the table to itself on username and patindex('%'+table1.rep+'%',table2.rep) > 0
October 15, 2009 at 1:39 am
should be simple maths
ie
ceil(1670/1000)*1000 = 2000
ceil(101.4 /100)*100 = 200
October 14, 2009 at 1:54 pm
s ss (10/14/2009)
October 14, 2009 at 12:56 pm
try this
with cteWithRow( Rep, CId ,StartDate, Type ,Purchased, Cost, Used, Balance, BannerRevenue,Rown)
as
(
Select Rep ,CId ,StartDate, Type, Purchased, Cost, Used ,Balance, BannerRevenue,
...
October 14, 2009 at 9:28 am
You have to left outer join from your list of known values...
Try this (Untested but should be fine),
if not please post ddl and sample data.
SELECT values.number as 'Hour', COUNT(report_date) as...
October 14, 2009 at 8:20 am
At a complete guess, is this what you meant ?
Select SchoolCode,Count(*)
from students
group by SchoolCode
If not please provide DDL (data definition language) sample data and expect output
October 14, 2009 at 7:24 am
This did get covered a while back , and the general opinion is that there is no such thing as a bad question. Just a badly formed one...
Specifically posts...
October 14, 2009 at 6:31 am
SELECT count(EventLogID) as EventsGenerate, DatePart(wk,CreateDate) as CreateDate,
row_number() over (order by DatePart(wk,CreateDate))
FROM ...
October 14, 2009 at 6:15 am
Im afraid no one here will be able to tell you if
1000 = 01:00:00 or 00:10:00.
For you sake , i hope it should be 00:10:00.
October 14, 2009 at 3:21 am
declare @t integer
Select @t = 10000
Select @t = 151157
Select floor(@T/10000),floor(@T%10000/100.000),@T%100
October 14, 2009 at 3:12 am
Have you made a typo ?
1000 = 01:00:00 should that be 10000 ?
October 14, 2009 at 3:07 am
Viewing 15 posts - 1,381 through 1,395 (of 1,825 total)