Viewing 15 posts - 52,141 through 52,155 (of 59,070 total)
Welcome aboard... first, here's one answer two your problem...
SELECT
(
SELECT SUM(ROOMREVENUE) AS 'ROOM REVENUE' FROM RPT_HOTEL_STATS WHERE PROPERTY = 'DELSOL'
AND STAT_DATE > '2007-12-31 00:00:00.000'
AND STAT_DATE <= DATEDIFF(day, 0, getdate())
)
/
(
select SUM(NUMROOMS) FROM...
March 4, 2008 at 4:25 pm
willyboy (3/4/2008)
It is just not updating the JobSteps table.
How do you know that? What if it's updating the table with the same stuff that you have in it (NULLS?)...
March 4, 2008 at 4:19 pm
willyboy (3/4/2008)
It would not surprise me if someone wanted to reach through the internet and throttle me.
Depends... do ya like porkchops? 🙂
March 4, 2008 at 4:12 pm
Guess I should be pretty happy then... apparently some of my articles inspire people to ask questions. 🙂
March 4, 2008 at 4:01 pm
Ok, no... you have to use NEWID() to populate the column. It is NOT a self populating column. Then, you would check for an error... if no error,...
March 4, 2008 at 3:41 pm
Heh... no,... I'll happily continue to be "wrong" on this one... 😉
March 4, 2008 at 3:29 pm
Adam Bean (3/4/2008)
haha! That's my view!!! I feel special ...http://www.sqlservercentral.com/Forums/Topic457115-146-1.aspx
Dang, Adam... why don't you put your name on that bad boy! 😉
March 4, 2008 at 3:06 pm
Hmmm.... when it comes to plain ol' delimited text files such as CSV files, I sometimes think people make things way too difficult. You can easily get a listing...
March 4, 2008 at 2:35 pm
Remove the semi-colon... change the double quotes to single quotes around 'James'.
March 4, 2008 at 1:26 pm
paulhunter (3/4/2008)
So, by this logic every line begins a new sentence in english.
Heh... don't be warping my words, Paul... I said a new line never starts with a...
March 4, 2008 at 1:10 pm
Haritha Kodali (3/4/2008)
CREATE view "MAGICSSHD"."Incident" ...
March 4, 2008 at 11:59 am
Heh... how well I know... been there and done that! The "R" in "CPR" stands for "REPLACE" and I frequently forget to do just that... 🙂
March 4, 2008 at 11:37 am
Please... take just a minute and at least add some carriage returns to your code...
March 4, 2008 at 11:22 am
I found comma beginning much easier to work with when I need to test something, troubleshoot, etc.
How so? Commenting out lines using either style is exactly the same except...
March 4, 2008 at 10:43 am
Just another way of doing it... puts all the different "answers" to the case in groups...
UPDATE rm00101
SET userdef2 = (CASE
...
March 4, 2008 at 10:28 am
Viewing 15 posts - 52,141 through 52,155 (of 59,070 total)