Viewing 15 posts - 631 through 645 (of 3,543 total)
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)')
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...
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...
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...
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 >...
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...
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',...
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
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...
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 😛
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:
August 14, 2014 at 8:25 am
This thread is becoming less Random and more Jung 😛
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...
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:)
July 28, 2014 at 7:25 am
Jeff Moden (7/23/2014)
BCP will actually handle such trailing garbage lines quite well, BCP FORMAT File or not.
Yes you are right Jeff 😀
I tried several tests with the data supplied and...
July 24, 2014 at 5:17 am
Viewing 15 posts - 631 through 645 (of 3,543 total)