Viewing 15 posts - 841 through 855 (of 1,246 total)
NULLIF((EVT.VAL2), 0)
Maybe I'm just missing something here, but how can the above EVER return a zero?
It would not, but that is what the user wanted. That is to prevent a...
----------------------------------------------------
December 16, 2014 at 11:29 am
As long as the business users understand the calculation and they are fine with it, that is what matters. Ideally if there are values missing I like to return null...
----------------------------------------------------
December 15, 2014 at 10:43 pm
Eirikur Eiriksson (12/15/2014)
farrukhhameed786 (12/15/2014)
Please Below the query i need to use condition
I need to use in below query how to use
SELECT
ISNULL(EVT.VAL1/NULLIF((EVT.VAL2),0),0) AS ITEM_ID
FROM
EVENT1 EVT
WHERE NAME IN...
----------------------------------------------------
December 15, 2014 at 4:57 pm
JeeTee (12/9/2014)
Not that I'm encouraging use of nolock, but I see it's deprecated in from clauses in updates and inserts, but not straight selects....
----------------------------------------------------
December 9, 2014 at 2:20 pm
Another thing to consider... in your four tables, if you only pull records that are time stamped within that last hour that you want to fetch and you dont need...
----------------------------------------------------
December 9, 2014 at 1:58 pm
I am still confused on the existence of the looping task. If you want to pull data hourly you can simply schedule the job to run hourly. Are you setting...
----------------------------------------------------
December 9, 2014 at 1:47 pm
Is this what you are looking for ?
with MYcte as (
select studentUID, qual, max(regyear) as throughYear
from #AAA_Mytable
group by studentUID, qual
)
SELECTt1.termCalendarID, t1.regyear, t1.studentUid, t1.qual
,coalesce(oa.rollover, 0) as Rollover
from #AAA_Mytable as t1...
----------------------------------------------------
December 9, 2014 at 1:10 pm
You probably have here the table being more index than data. The covering index helps but know the cost.... longer inserts, updates, deletes and makes maintenance plans (such as backups)...
----------------------------------------------------
December 9, 2014 at 12:09 pm
When the process is ran by a job, is the job step using a credential to run? If so it could be an account different from the one the Agent...
----------------------------------------------------
December 9, 2014 at 11:31 am
From reading the posts on this topic, an idea is to use sort of a hybrid system . That is, I would explain the purpose of the report and anything...
----------------------------------------------------
December 9, 2014 at 11:15 am
Are you doing a lot of transformations to this data? SSIS is effiecient in its resource use when you have non blocking data movements. (IE.. no aggregating, sorting....). How is...
----------------------------------------------------
December 5, 2014 at 6:52 pm
The Data Profile Viewer is installed through the SQL Server installation , not something that you can download for free (as of yet). In the install wizard one would uncheck...
----------------------------------------------------
December 5, 2014 at 1:45 pm
I am wondering if it is possible that the sql server service on that host machine has eaten up most of the available ram, to where the other processes have...
----------------------------------------------------
December 5, 2014 at 11:45 am
DonlSimpson (12/2/2014)
Jeff Moden (10/25/2008)
As soon as something needs to "go in in a hurry", all notions of standards and well intended code reviews will go by the wayside.+1
You may even...
----------------------------------------------------
December 2, 2014 at 5:49 pm
I'm assuming you are deleting/archiving based on the date here. I would try to build a clustered index on your table by date if it is not there already. Take...
----------------------------------------------------
December 2, 2014 at 1:50 pm
Viewing 15 posts - 841 through 855 (of 1,246 total)