Viewing 15 posts - 24,826 through 24,840 (of 26,486 total)
Do the following:
round((s.ScoreAdjTotal - c.CourseRating) * 113 / c.CourseSlope,1,1) -- The additional 1 at the end will truncate instead of round (read BOL)
π
May 6, 2008 at 1:49 pm
I put in my own referential integrity. You will need to adjust my code below for the fourth table you added. Also, mathematically, the result of your equation...
May 6, 2008 at 1:15 pm
gtan018 (5/6/2008)
(ScoreAdjTotal) - (CourseRating)...
May 6, 2008 at 12:37 pm
This is done in T-SQL, but the principle is the same:
declare @phonenum varchar(25)
set @phonenum = '(555) 555-1212'
select replace(replace(replace(replace(@phonenum, '(', ''), ')',''), ' ',''),'-','')
π
May 6, 2008 at 12:29 pm
I found a way to connect to the Windows Internal Database (SQL Server 2005 Embedded Edition (SSEE)) with thanks to Wikipedia!
It has to be done local to server, and you...
May 6, 2008 at 9:53 am
Dumb question, but why are you using a cursor to move data from one table to another instead of a set-based query?
π
May 6, 2008 at 8:28 am
Not sure if this is totally correct, but this is the view I'd start with.
create view Vw_name
as
select
cust.customerID
from
dbo.customer cust
inner...
May 6, 2008 at 8:04 am
Looks like you are trying to connect to SQL Server 1005 using SQL Server 2000's Enterprise Manager or Query Analyzer. Just like the messge says, you need to use...
May 6, 2008 at 7:37 am
Could we see the DDL for the table?
π
May 6, 2008 at 7:34 am
John Mitchell (5/6/2008)
Try turning the subquery into a derived table and joining to it.John
Derived tables are not allowed in indexed views either.
π
May 6, 2008 at 7:15 am
I have been reviewing the code you provided, and was wondering how you then execute and delete the resultant package you have created? I am thinking that this may...
May 5, 2008 at 2:18 pm
Also, i have a question :
when i write ml.year=2008, itΒ΄s because "2008" is a variable that iΓ‘m introduced before running the script.
Do i must write the extended date like...
April 30, 2008 at 10:02 pm
Jeff Moden (4/30/2008)
luissantos (4/30/2008)
an also, i' am not understand very well the result of :ml.data >= dateadd(yyyy,datediff(yyyy,0,'20080101'),0) and ml.data< dateadd(yyyy,datediff(yyyy,0,'20080131') + 1,0)
Lynn... I'm thinking that one is all yours π
Geez,...
April 30, 2008 at 9:29 pm
luissantos (4/28/2008)
thanks for your reply.
I test my tsql code with some index that you mencioned, but the maximum performance for this TSQL is about 6,30 minutes. Is too much
Also,...
April 29, 2008 at 5:48 am
Viewing 15 posts - 24,826 through 24,840 (of 26,486 total)