Viewing 15 posts - 3,481 through 3,495 (of 3,957 total)
ChrisM@Work (5/30/2012)
;WITH rCTE AS
(
SELECT [level] = 0
...
May 30, 2012 at 6:43 pm
Greg Snidow (5/30/2012)
Lynn Pettis (5/30/2012)
you will have to tell me if it is okay.
Lynn, it's very close. Below is my expected output. The three rows with asterisks are...
May 30, 2012 at 6:41 pm
drew.allen (5/30/2012)
dwain.c (5/29/2012)
SELECT DATEADD(month, 1, '2012-02-29')
Depending on your point of view, the results this returns looks wrong, or maybe not. ...
May 30, 2012 at 8:36 am
Maybe we should start a new thread for oenophiles.
We could call it the wine cooler thread!:-)
May 30, 2012 at 5:25 am
porygon3000 (5/28/2012)
May 29, 2012 at 9:42 pm
Hey Barry!
Glad you don't think I trod too heavily upon your toes on this one.
I've read some of your articles and you do excellent work. I was afraid you...
May 29, 2012 at 9:39 pm
Greg Snidow (5/29/2012)
dwain.c (5/29/2012)
May 29, 2012 at 9:32 pm
The datetime functions are aware of leap years.
Your approach seems to work and seems to me to be reasonable.
Datetime functions do have their issues though, like the following:
SELECT DATEADD(month, 1,...
May 29, 2012 at 6:34 pm
Greg,
I just wanted to let you know I took a stab at this last night but I was not able to come up with a simpler query that returned the...
May 29, 2012 at 6:27 pm
I didn't initially see your comments embedded with mine. Let me see if I can clean this up a bit.
dwain.c (5/29/2012)
- Review your use of Dynamic SQL....
May 29, 2012 at 6:34 am
Charmer (5/29/2012)
dwain.c (5/28/2012)
Charmer (5/28/2012)
anthony.green (5/28/2012)
While I am loathe to admit it, I have a couple of cases where processing a large number...
May 29, 2012 at 5:52 am
vinu512 (5/29/2012)
--Creating Tables
Create Table Table1
(ID int,
SYMBOL varchar(10),
DATE Date, PRICE Float,
VOLUME int )
Create Table Table2
(ID int,
SYMBOL varchar(10),
COMPANY...
May 29, 2012 at 12:28 am
You can try something like this:
DECLARE @TABLE1 TABLE
(ID INT, SYMBOL VARCHAR(4), DATE DATETIME, PRICE MONEY, VOLUME INT)
DECLARE @TABLE2 TABLE
(ID INT, SYMBOL VARCHAR(4), COMPANY VARCHAR(100), SECTOR VARCHAR(50))
INSERT INTO @TABLE1
SELECT 1,'A','05/24/12',123.45,100500
UNION ALL...
May 28, 2012 at 11:25 pm
Charmer (5/28/2012)
anthony.green (5/28/2012)
now depending on what your cursor is doing will depend...
May 28, 2012 at 7:26 pm
RBarryYoung (5/28/2012)
;WITH ctePhones AS
(
Select cp.id_client,
cp.number,
...
May 28, 2012 at 7:13 pm
Viewing 15 posts - 3,481 through 3,495 (of 3,957 total)