Viewing 15 posts - 736 through 750 (of 3,738 total)
The final solution should have the Current Date in the Where clause.
My query works until I try and add the WHERE Clause.
I finally got the real Table from the off...
September 3, 2014 at 11:08 am
Lynn,
Do you have an AS400 or a machine that has DB2 installed?
The syntax is identical to Oracle.
Thanks.
September 2, 2014 at 5:22 pm
Thanks Lynn for all of your help.
Have a good evening. 🙂
September 2, 2014 at 4:10 pm
I changed the script to specify the actual Schema and Table Name.
It close but not quite there.
declare @cnt int,
@OracleRowCount int,
...
September 2, 2014 at 3:40 pm
Thanks Lynn, you are awesome.
declare @cnt int,
@OracleRowCount int,
@OracleSchemaName nvarchar(max),
...
September 2, 2014 at 3:03 pm
Eirikur Eiriksson (9/2/2014)
Out of curiosity, what Oracle version/edition/OS are you on?😎
The Server is owned by a software Vendor. I'm not sure what it is. I only have read permissions so...
September 2, 2014 at 2:02 pm
The following is the code and it works.
I need a variation of this query that return the record count.it to just return the record COUNT as in the second query....
September 2, 2014 at 1:46 pm
Thanks for all of the help.
It works Lynn.
Ed you code worked as well.
Thank you very much.
September 2, 2014 at 1:34 pm
You guys have better code than I.
I can get it to execute without the WHERE Clause.
What would it take to add the WHERE with a Date variable to my code...
September 2, 2014 at 1:12 pm
Lynn Pettis (9/2/2014)
Welsh Corgi (9/2/2014)
Ed Wagner (9/2/2014)
TO_DATE(''2014-09-02'',''YYYY.MM.DD'')
The date string doesn't match the format...
September 2, 2014 at 1:08 pm
Ed Wagner (9/2/2014)
Good. Now all you have to do is look at the format mask of your TO_DATE function.TO_DATE(''2014-09-02'',''YYYY.MM.DD'')
The date string doesn't match the format string.
Thanks.
I need TO_DATE(@CurrentDate,''YYYY.MM.DD'') to...
September 2, 2014 at 11:57 am
Sorry Lynn.
I had added the @Where Variable and it caused the variable to go to null.
DECLARE @SQLQuery NVARCHAR(255)
DECLARE @OpenQuery...
September 2, 2014 at 11:44 am
Lynn,
Sorry I missed your post. I have everything but the date.
This is the exact code that I have.
Thank you.
DECLARE @SQLQuery NVARCHAR(255)
DECLARE @OpenQuery...
September 2, 2014 at 11:05 am
Thanks the final result that I'm looking for is to return the record count. I did this before:
SET @SQLQuery = ''SELECT @cnt = COUNT(*) FROM ''...
September 2, 2014 at 10:03 am
I got the following to work. I tried executing against the table in my original post but it took forever so I cancelled the query.
SELECT CAST(CAE_RDB_ENTRY_DATE as Date), *
FROM...
September 2, 2014 at 8:49 am
Viewing 15 posts - 736 through 750 (of 3,738 total)