Viewing 15 posts - 7,231 through 7,245 (of 10,144 total)
Here's what it looks like with a little formatting, which goes a surprisingly long way to pointing out areas for improvement:
SELECT
pm.pm_no,
pm.pm_key,
trunc(pm.last_completion_dt),
pm.location_name,
loc.unid,
loc.location_desc,
loc.tva_eq_owner_key
FROM eam_od_pm_tb pm,
eam_od_location_tb loc
WHERE pm.site_id in...
October 6, 2010 at 7:14 am
LIYA (10/6/2010)
select '2010-06-18 07:33:17' union all
select '2010-06-18 07:40:18' union all
select '2010-06-18 18:40:10' union all
select '2010-06-18 14:45:17' union all
i need the result as follows
Wdate
18/06/2010 07:33:17 AM
18/06/2010 07:40:18...
October 6, 2010 at 6:03 am
GilaMonster (10/6/2010)
Does anyone think my response here was over-the-top? http://www.sqlservercentral.com/Forums/FindPost999124.aspx
No, not at all. You're telling it like it is.
October 6, 2010 at 5:28 am
Brandie Tarvin (10/6/2010)
Chris Morris-439714 (10/6/2010)
Brandie Tarvin (10/6/2010)
BrainDonor (10/5/2010)
When I die I'm donating my body to science-fiction.Oh, is that a promise? I could use a few more cadavers...
@=)
More??? The next...
October 6, 2010 at 5:03 am
Brandie Tarvin (10/6/2010)
BrainDonor (10/5/2010)
When I die I'm donating my body to science-fiction.Oh, is that a promise? I could use a few more cadavers...
@=)
More??? The next question is kinda obvious...
October 6, 2010 at 4:55 am
With this number of rows to update, batching becomes attractive. Here's one way to do it, there are many.
-- Assumes trans_headerID is pk for table
UPDATE t SET CARD_NO = left(card_no,6)+'******'+right(card_no,4)...
October 6, 2010 at 4:35 am
juliekenny (10/5/2010)
SuffolkEngland
(UK)
St Peter's brewery! Nice!
October 6, 2010 at 2:25 am
Why don't you put your dates into your table source instead? Like this:
'FROM
(SELECT HeadCount,
StartDate FROM SAR_HeadCount where CampaignID = ' + @CampaignID +
' AND StartDate IN (' + @date1...
October 5, 2010 at 10:17 am
naresh0407 93367 (10/5/2010)
Hi Chris,Can u tell where i can u in the above stored procedur.
Naresh, I'm sorry - can...
October 5, 2010 at 10:01 am
A guess would be a null value for CMD_File_Date_Loaded in the third table, but to paraphrase JBM "a developer should know"
October 5, 2010 at 8:53 am
Alvin Ramard (10/5/2010)
October 5, 2010 at 8:42 am
How do you detect whether or not a row from staging has been "processed"?
What is table [dbo].[Files] for? You haven't mentioned it in your dialogue.
October 5, 2010 at 8:37 am
naresh0407 93367 (10/5/2010)
In the above stored procedure if i dont have HeadCount for particular date i am getting value as null but...
October 5, 2010 at 7:53 am
StartDate FROM SAR_HeadCount where CampaignID=' + CAST(@CampaignID AS VARCHAR) + ')
@CampaignID is out of scope otherwise.
October 5, 2010 at 7:43 am
Viewing 15 posts - 7,231 through 7,245 (of 10,144 total)