Viewing 15 posts - 631 through 645 (of 3,544 total)
jcrawf02 (9/3/2014)
My wife keeps telling me I need to stop swearing around the two year old. I'm going to replace swearing with database jargon randomness now...
Flaming Firehose Cursors!
Backwards Compatibility!
Great Moden's...
Far away is close at hand in the images of elsewhere.
Anon.
September 3, 2014 at 6:45 am
I do not oracle but after a quick google search, try this
SELECT *
FROM OPENQUERY (LS_RDB_DWH, 'SELECT * FROM RDB_DWH.ENTITY_DIMENSION WHERE PD_RDB_ENTRY_DATE >= TRUNC(SYSDATE)')
Far away is close at hand in the images of elsewhere.
Anon.
September 2, 2014 at 8:04 am
The syntax error is due to insufficient quotes. You have use two single quotes to get one when using them inside OPENQUERY
ie
SELECT *
FROM OPENQUERY (LS_RDB_DWH, 'SELECT * FROM RDB_DWH.ENTITY_DIMENSION WHERE...
Far away is close at hand in the images of elsewhere.
Anon.
September 2, 2014 at 7:18 am
Your query is returning a date datatype, the gui interface (SSMS) is displaying as characters formatted as to the language of the login.
So
SELECT CONVERT(DATE,GETDATE()) AS CurrentDate;
and
SELECT CONVERT(varchar(10),GETDATE(),120) AS...
Far away is close at hand in the images of elsewhere.
Anon.
August 29, 2014 at 8:17 am
SYSDATETIME() will give you current date and time
CAST(SYSDATETIME() as date) will give you current date only
What are you referring to with 'Current Date'?
What do you mean by SQL Server Date...
Far away is close at hand in the images of elsewhere.
Anon.
August 29, 2014 at 6:50 am
Eirikur Eiriksson (8/27/2014)
... Guess I've been tainted by the Brits and they'r ironic sarcastic humour ...
In that case
SELECT a.steps,MIN(b.steps)
FROM #table1 a
CROSS JOIN #table1 b
WHERE b.steps >...
Far away is close at hand in the images of elsewhere.
Anon.
August 28, 2014 at 1:57 am
pwalter83 (8/26/2014)
Actually this worked superbly well for the OP ! I had been stuck on this for a long time now and had given up all hope
You're welcome 🙂
As an...
Far away is close at hand in the images of elsewhere.
Anon.
August 26, 2014 at 8:39 am
SELECTa.BOOKING_NUM,
d.COUNTRY_DSC,
CASE WHEN POL_LOCATION_CD IN ('DKAAR', 'DKCPH', 'FIHEL','FIKTK', 'IEORK', 'IEDUB', 'NLRTM', 'PTLEI', 'PTOPO', 'PTLIS', 'ESBIO', 'ESVGO', 'SEGOT', 'SEHEL', 'GBBEL') THEN 'NLRTM' WHEN POL_LOCATION_CD IN ('DKFRC',
'FIRAU', 'FIOUL', 'DEBRV', 'NOAES', 'NOBGO',...
Far away is close at hand in the images of elsewhere.
Anon.
August 26, 2014 at 8:15 am
CASE WHEN PATINDEX(REPLACE(LEFT(address,CHARINDEX('.',address)-1),'@','@exc.')+'%,',alias+',') > 0
THEN STUFF(alias,PATINDEX(REPLACE(LEFT(address,CHARINDEX('.',address)-1),'@','@exc.')+'%,',alias+','),
(CHARINDEX(',',alias+',',PATINDEX(REPLACE(LEFT(address,CHARINDEX('.',address)-1),'@','@exc.')+'%,',alias+','))
- PATINDEX(REPLACE(LEFT(address,CHARINDEX('.',address)-1),'@','@exc.')+'%,',alias+','))+1,'')
ELSE alias
END
Far away is close at hand in the images of elsewhere.
Anon.
August 22, 2014 at 6:47 am
Koen Verbeeck (8/19/2014)
higgim (8/18/2014)
Qira (8/18/2014)
You're helping me sir. Thanks to you. But no thanks to...
Far away is close at hand in the images of elsewhere.
Anon.
August 19, 2014 at 1:56 am
If you want another alternative
LTRIM(PARSENAME(REPLACE(SomeString,'-','.'),1))
😀
*Edited*
p.s. BTW, before you start, I did not say it was a good alternative 😛
Far away is close at hand in the images of elsewhere.
Anon.
August 15, 2014 at 6:53 am
SQLRNNR (8/14/2014)
Ed Wagner (8/14/2014)
Sean Lange (8/14/2014)
peanut butterNutella
creamy jar of deliciousness
:sick:
Far away is close at hand in the images of elsewhere.
Anon.
August 14, 2014 at 8:25 am
This thread is becoming less Random and more Jung 😛
Far away is close at hand in the images of elsewhere.
Anon.
August 14, 2014 at 6:59 am
Jeff Moden (8/4/2014)
Koen Verbeeck (8/4/2014)
Lynn Pettis (8/4/2014)
Whom ever has the Great Mystical Crystal Ball, you are needed here.I am afraid I have left it in my other coat...
I'd let you...
Far away is close at hand in the images of elsewhere.
Anon.
August 5, 2014 at 3:52 am
Sean Lange (7/28/2014)
More like sinking.
Not waving, but drowning 😛
The thread is sure to test your sanity (unless you are already insane :w00t:)
Far away is close at hand in the images of elsewhere.
Anon.
July 28, 2014 at 7:25 am
Viewing 15 posts - 631 through 645 (of 3,544 total)