Viewing 15 posts - 4,561 through 4,575 (of 8,731 total)
WayneS (7/31/2015)
Looks like Luis is answering Oracle questions now.
That wasn't the only attempt on that day. Here's a completely lost Oracle user.
But hey, as long as I can help.
July 31, 2015 at 9:51 am
I'm just wondering why would you need to update these columns as you shouldn't store values this way if you want a normalized table. And if this is for a...
July 31, 2015 at 9:47 am
What are you expecting to accomplish with the subquery? It basically compares one column to itself joined by the same condition.
July 30, 2015 at 1:34 pm
Ray K (7/30/2015)
Eirikur Eiriksson (7/30/2015)
Ed Wagner (7/30/2015)
VacationWagon Queen
Drama queen
Dancing Queen
July 30, 2015 at 1:06 pm
You need at least three tables in your join which you refer as a, b & c. You're doing a UNION between 2 SELECTs and but you don't define...
July 30, 2015 at 12:54 pm
Here's one option. Maybe you were very close.
I know this is a 2008 forum, but you mention that you're using LAG (which was introduced on 2012).
WITH SampleData AS(
select '01' as...
July 30, 2015 at 12:06 pm
yb751 (7/29/2015)
Luis Cazares (7/29/2015)
You conversion won't help as it will only truncate the string. It will basically do the same as the LEFT() function. Another problem it that 111 is...
July 30, 2015 at 9:51 am
Eric M Russell (7/30/2015)
July 30, 2015 at 9:45 am
Brandie Tarvin (7/30/2015)
GilaMonster (7/30/2015)
Luis Cazares (7/30/2015)
NOLOCK hints can be useful to get estimates of certain data.
Yup. In fact I told some people recently to put nolock onto a bunch of...
July 30, 2015 at 7:57 am
Could you post sample data and expected results?
I have an idea of what you want, but I'm not completely sure. If possible follow the advice of this article to post...
July 30, 2015 at 7:43 am
NOLOCK hints can be useful to get estimates of certain data.
To use it on every single table and every single query is just nonsense and lack of efficiency in laziness...
July 30, 2015 at 7:03 am
Today I was wondering when would your article would come out, then I opened the newsletter and it was there.
I'll give it a read after a cup of coffee.
Thank you...
July 30, 2015 at 6:35 am
yb751 (7/29/2015)
DECLARE @mytable TABLE (myDate VARCHAR(20))
INSERT INTO @mytable
VALUES ('2015-07-28 00:00:00'),('2015-07-29 00:00:00'),('2015-07-30 00:00:00')
SELECT * FROM @mytable
UPDATE @mytable
SET...
July 29, 2015 at 2:09 pm
sheaS (7/29/2015)
July 29, 2015 at 1:47 pm
Would you be able to convert this column into a date column? That would be a much better option as it will only allow valid dates, remove the time portion...
July 29, 2015 at 1:42 pm
Viewing 15 posts - 4,561 through 4,575 (of 8,731 total)