Filtering "created on" date using SQL Expressions
Hi there!
I want to build a filter for opportunities "created on" date.
I need to find all opportunities that were created over 30 days ago in lead stage.
I was trying:
Created on date is Not equal to or is not in:
1) NOW()
2) TimeStampAdd(SQL_TSI_DAY,-30,CURRENT_DATE NOW())
I keep getting an error message.
Any help is appreciated.
I am in the historical opp area, here is the error:
Error getting drill information: SELECT Opportunity."Sales Method Name" saw_0, Territory."Territory Name" saw_1, Opportunity."Sales Stage" saw_2, Opportunity.Name saw_3, Opportunity."Opportunity ID" saw_4, Account."Account Name" saw_5, Account."Account ID" saw_6, Opportunity."Created Date" saw_7, "- Opportunity Custom Attributes".DATE_26 saw_8 FROM "Opportunity Lists" WHERE (Territory."Territory Name" IN ('AC - Mid-Atlantic', 'AC - North Central', 'AC - Northeast', 'AC - Ohio Valley', 'AC - South', 'AC - South Central', 'AC - Southeast', 'AC - Southwest', 'AC - Western', 'Acute Care Sales')) AND (Opportunity."Created Date" <> TimeStampDiff(SQL_TSI_DAY,Opportunity."Created date", VALUEOF(NQ_SESSION.CURRENT_DT)) <= 30) AND (Opportunity."Sales Stage" = 'Lead')
Error Details
Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
Odbc driver returned an error (SQLExecDirectW).
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <<=>: Syntax error [nQSError: 26012] . (HY000)
SQL Issued: {call NQSGetLevelDrillability('SELECT Opportunity."Sales Method Name" saw_0, Territory."Territory Name" saw_1, Opportunity."Sales Stage" saw_2, Opportunity.Name saw_3, Opportunity."Opportunity ID" saw_4, Account."Account Name" saw_5, Account."Account ID" saw_6, Opportunity."Created Date" saw_7, "- Opportunity Custom Attributes".DATE_26 saw_8 FROM "Opportunity Lists" WHERE (Territory."Territory Name" IN (''AC - Mid-Atlantic'', ''AC - North Central'', ''AC - Northeast'', ''AC - Ohio Valley'', ''AC - South'', ''AC - South Central'', ''AC - Southeast'', ''AC - Southwest'', ''AC - Western'', ''Acute Care Sales'')) AND (Opportunity."Created Date" <> TimeStampDiff(SQL_TSI_DAY,Opportunity."Created date", VALUEOF(NQ_SESSION.CURRENT_DT)) <= 30) AND (Opportunity."Sales Stage" = ''Lead'')')}
Similar Messages
-
Extract Data Using SQL Expression
Hello, I've created a staging table and just realized that I need some new extra fields.
Should I create them in the stage or in the target table?
I want to use the SQL expression COUNT so to fill these new fields with edited source data,
but don't know exactly how to do it. I am a bit amateur.
Thank you.I' ve just realized that I am reading your book! Oracle Warehouse Builder 11gR2: Getting Started 2011.
What If I need the rest of the fields not to be changed? Fields like Name or whatever.I can't figure it out. Thanks again.
For example, I have these two fields Name and Date and I want to use the count expression through the aggregation operator for the Date field and create a new field Quantity to store the reaults. But I need the field Name to remain intact.
How can I manage this? Thank you.
Edited by: 928543 on 11 Ιαν 2013 1:35 μμ
Edited by: 928543 on 11 Ιαν 2013 1:44 μμ -
Using sql expression in filter
Hi Experts,
I have a question using 'sql expression' in filters in answers. Let's say i have a date filter and i would like the value for that date as max(tablename.colname). Please tell me the syntax for passing this.
One more question is i have a date prompt the data will be refreshed weekly let's say the data refreshed like this *08/1/11 ,08/8/11 and 08/15/11* . Now if i select 08/08/11 it will show the data
populated on *08/08/11* which is ok but if i select *08/09/11 to 08/14/11* it show only *08/08/11* data. Same way if select *08/16/11 or 09/16/11* it should show the last refreshed data which is *08/15/11*
Thanks in Advance.
chakOk, so you want the report to be restricted as of last refresh date when your selects a date in prompt which is beyond/greater than the last refresh date.
One way of doing this can be as below:
- Capture the last refresh date in a repository variable. So this variable will always hold a value for last refresh date.
- In prompts, capture the date selected by user in a presentation variable and apply the below statement in the Advanced SQL of the report.
DateColumn = case when Timestamp '@{pvar}{2011-01-01 00:00:00}' <= valueof("lastRefDate") then timestamp '@{pvar}{2011-01-01 00:00:00}' else valueof("lastRefDate") end
Here pvar is your presentation var and lastRefDate is your rep variable holding the last refresh date. What this statement would do is if user selects a date which is less that equal to last refresh date, then report will be filtered as of that date. Else, the report will be filtered by value of the Last Refresh date.
Thanks -
Loading data with dates using SQL*Loader
Dear everyone
I am currently trying to load some data containing dates using SQL*Loader.
For termination of fields I have been using ^ because I have some book titles which contain " and ' as part of their title. I found that the TO_DATE function did not seem to work using ^ instead of ". Would I be correct? I think the Oracle manual says that " must be used.
After some Web research I eventually amended my control file to as follows:
load data
infile 'h:\insert_statements\22_insert_into_SCAN_FILE_INFO.txt'
REPLACE
into table SCAN_FILE_INFO
fields terminated by "," optionally enclosed by '^'
TRAILING NULLCOLS
(scan_id, scan_filename
file_format_id
orig_scanning_resolution_dpi
scanner_id, scanner_operator_id
scanning_date "TO_DATE (:scanning_date, 'YYYY-MM-DD')"
original_map_publication_id
reprint_publication_id)
A simple line of data is as follow:
280001, ^1910 - London^, 270001, 400, 250001, 260001, "TO_DATE('2007-06-06', 'YYYY-MM-DD')", 200019,
The final column being null.
However when I attempt that I get the following error message:
Record 1: Rejected - Error on table SCAN_FILE_INFO, column SCANNING_DATE.
ORA-01841: (full) year must be between -4713 and +9999, and not be 0
If I change the scanning_date part to:
scanning_date "EXPRESSION TO_DATE (:scanning_date, 'YYYY-MM-DD')",
or
scanning_date "CONSTANT TO_DATE (:scanning_date, 'YYYY-MM-DD')",
I get the error message:
Record 1: Rejected - Error on table SCAN_FILE_INFO, column SCANNING_DATE.
ORA-00917: missing comma
As soon as I do the following:
scanning_date "EXPRESSION, TO_DATE (:scanning_date, 'YYYY-MM-DD')",
or
scanning_date "CONSTANT, TO_DATE (:scanning_date, 'YYYY-MM-DD')",
I get too many values error message:
Record 1: Rejected - Error on table SCAN_FILE_INFO.
ORA-00913: too many values
I also tested out scanning_date DATE "YYYY-MM-DD", but that just gave the same ORA-01841 error message as above.
I must be doing something very simple which is wrong but I cannot figure it out.
Kind regards
TimAnd why do you have scanning date as "TO_DATE('2007-06-06', 'YYYY-MM-DD')" in your infile? All you need is 2007-06-06. If you can not change infile generation code, use:
load data
infile 'h:\insert_statements\22_insert_into_SCAN_FILE_INFO.txt'
REPLACE
into table SCAN_FILE_INFO
fields terminated by "," optionally enclosed by '^'
TRAILING NULLCOLS
(scan_id, scan_filename
file_format_id
orig_scanning_resolution_dpi
scanner_id, scanner_operator_id
scanning_date "TO_DATE(REPLACE(REPLACE(:scanning_date,'TO_DATE('),'''YYYY-MM-DD'')'), 'YYYY-MM-DD')"
original_map_publication_id
reprint_publication_id)SY. -
Create statspack report using sql*developer
Hello,
While connecting with PERFSTAT user I can not create statspack report using SQL*Developer:
@?/rdbms/admin/awrrpt
Error starting at line 1 in command:
@?/rdbms/admin/awrrpt
Error report:
Unable to open file: "?/rdbms/admin/awrrpt.sql"
Actually, my problem or question is that how can PERFSTAT user can generate statspack reports from a Client side. What is the other way a non-dba can see the snapshots histroy and generate report (by using perfstat user ) while joing tables or using views?
Thanks a lot.
Best RegardsHi,
for awr reports @?/rdbms/admin/awrrpt (you need EE+Diagnostic Pack) there is a solution.
Grant execute dbms_workload_repository to <user>;
Grant select_catalog_role to <user>;
get all SNAP_IDs
SELECT TO_CHAR(s.startup_time,'YYYY.MM.DD HH24:MI:SS') INSTART_FMT,
di.instance_name INST_NAME,
di.db_name DB_NAME,
s.snap_id SNAP_ID,
TO_CHAR(s.end_interval_time,'YYYY.MM.DD HH24:MI:SS') SNAPDAT,
s.snap_level LVL
FROM dba_hist_snapshot s,
dba_hist_database_instance di
WHERE di.dbid = s.dbid
AND di.instance_number = s.instance_number
AND Di.Startup_Time = S.Startup_Time
ORDER BY snap_id desc;
Select * From Table(Sys.Dbms_Workload_Repository.Awr_Report_Html(DBID, 1, BEGIN_SNAP_ID, END_SNAP_ID));
For statspack i don't know a solutuion. I think the best idea is, create a job to make the statspack report on the server side and access it via external tables or mail them forward to you.
Best regards
Thomas -
How to view clob data using sql
Hi,
In our database, we have one table that is having one column of CLOB datatype but now i want to view the data using sql select query but it throws error: "Datatype not supported".
Could any one please let me know how to view the clob data using select query.
Oracle DB version : 10.2.0.3
Thanksh5.
use read procedure
PROCEDURE READ (
lobsrc IN BFILE|BLOB|CLOB ,
amount IN OUT BINARY_INTEGER,
offset IN INTEGER,
buffer OUT RAW|VARCHAR2 );
example Updating LOB by Using DBMS_LOB in PL/SQL
DECLARE
lobloc CLOB; -- serves as the LOB locator
text VARCHAR2(32767):='Resigned: 5 August 2000';
amount NUMBER ; -- amount to be written
offset INTEGER; -- where to start writing
BEGIN
SELECT resume INTO lobloc
FROM employees
WHERE employee_id = 405 FOR UPDATE;
offset := DBMS_LOB.GETLENGTH(lobloc) + 2;
amount := length(text);
DBMS_LOB.WRITE (lobloc, amount, offset, text );
text := ' Resigned: 30 September 2000';
SELECT resume INTO lobloc
FROM employees
WHERE employee_id = 170 FOR UPDATE;
amount := length(text);
DBMS_LOB.WRITEAPPEND(lobloc, amount, text);
COMMIT;
END; -
Can we change the system date using Sql
can we change the system date using Sql statement..
can anyone help
Tariq.There is an initialization parameter called FIXED_DATE which lets you set a fixed sysdate for testing purposes, and you can alter that date using the ALTER SYSTEM command, but as implied by the name you are setting a data/time that doesn't change. Since the normal sysdate is derived from the O/S it cannot be altered through SQL
-
How can I validate a date using sql
How can I validate a date using sql or pl/sql
select to_date('01/01/2009','mm/dd/yyyy') from dual this is a good date
but how can I check for a bad date
select to_date('0a/01/2009','mm/dd/yyyy') from dual
HowardWilliam Robertson wrote:
It'll be complicated in pure SQL, as you'll have to parse out day, month and year and then validate the day against the month and year bearing in mind the rules for leap years. It would be simpler to write a PL/SQL function and call that.Nah, not that complicated, you just need to generate a calender to validate against.
SQL> ed
Wrote file afiedt.buf
1 with yrs as (select rownum-1 as yr from dual connect by rownum <= 100)
2 ,mnth as (select rownum as mn, case when rownum in (4,6,9,11) then 30
3 when rownum = 2 then 28
4 else 31
5 end as dy
6 from dual
7 connect by rownum <= 12)
8 ,cent as (select (rownum-1) as cen from dual connect by rownum <= 21)
9 ,cal as (select cen, yr, mn,
10 case when ((yr = 0 and mod(cen,400) = 0)
11 or (mod(yr,4) = 0 and yr > 0))
12 and mn = 2 then dy+1
13 else dy
14 end as dy
15 from cent, yrs, mnth)
16 --
17 ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
18 --
19 select case when cal.cen is null then 'Invalid Date'
20 when not regexp_like(dt,'^[0-9]{1,2}[\/.-_][0-9]{1,2}[\/.-_][0-9]{4}$') then 'Invalid Date'
21 else dt
22 end as dt
23 from dt left outer join
24 cal on (to_number(regexp_substr(dt,'[0-9]+')) between 1 and cal.dy
25 and to_number(regexp_substr(dt,'[0-9]+',1,2)) = cal.mn
26 and floor(to_number(regexp_substr(dt,'[0-9]+',1,3))/100) = cal.cen
27* and to_number(substr(regexp_substr(dt,'[0-9]+',1,3),-2)) = cal.yr)
SQL> /
Enter value for date_dd_mm_yyyy: a1/02/2008
old 17: ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
new 17: ,dt as (select 'a1/02/2008' as dt from dual)
DT
Invalid Date
SQL> /
Enter value for date_dd_mm_yyyy: 01/02/2008
old 17: ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
new 17: ,dt as (select '01/02/2008' as dt from dual)
DT
01/02/2008
SQL> /
Enter value for date_dd_mm_yyyy: 29/02/2008
old 17: ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
new 17: ,dt as (select '29/02/2008' as dt from dual)
DT
29/02/2008
SQL> /
Enter value for date_dd_mm_yyyy: 30/02/2008
old 17: ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
new 17: ,dt as (select '30/02/2008' as dt from dual)
DT
Invalid Date
SQL> /
Enter value for date_dd_mm_yyyy: 29/02/2009
old 17: ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
new 17: ,dt as (select '29/02/2009' as dt from dual)
DT
Invalid Date
SQL> /
Enter value for date_dd_mm_yyyy: 28/02/2009
old 17: ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
new 17: ,dt as (select '28/02/2009' as dt from dual)
DT
28/02/2009
SQL> /
Enter value for date_dd_mm_yyyy: 0a/01/2009
old 17: ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
new 17: ,dt as (select '0a/01/2009' as dt from dual)
DT
Invalid Date
SQL> /
Enter value for date_dd_mm_yyyy: 00/01/2009
old 17: ,dt as (select '&date_dd_mm_yyyy' as dt from dual)
new 17: ,dt as (select '00/01/2009' as dt from dual)
DT
Invalid Date
SQL> -
hi
how i can get the following date using sql, ie i want to get '01-APR-2005'
if the sysdate is between (01/04/2005 - 31/3/2006). in the same way if it is
01/04/2004 - 31/3/2005 i want to get '01-apr-2004'...in the same way for any year..
how i can get this...
thx in adv
Kris
Message was edited by:
KrisSQL> select dt, add_months(trunc(add_months(dt, -3), 'yyyy'), 3) new_dt
2 from t
3 order by dt;
DT NEW_DT
01-APR-04 01-APR-04
31-DEC-04 01-APR-04
01-JAN-05 01-APR-04
31-MAR-05 01-APR-04
01-APR-05 01-APR-05
31-DEC-05 01-APR-05
01-JAN-06 01-APR-05
31-MAR-06 01-APR-05
8 rows selected.
SQL> select add_months(trunc(add_months(sysdate, -3), 'yyyy'), 3) from dual;
ADD_MONTH
01-APR-05 -
Create temporary Tables using SQL
Hello,
I'm wondering if SAP allows the creation of new Tables without SDK objects,
I want to create temporary tables using SQL scripts an compile them when an specific addon is connected and erase them when the addon disconnects,
Do you think this is allowed?.
thanks,
GabrielaYou could always have a second DB to create your temp tables in. This is the way I've done this, as well as created my own views and stored procedures in it. No updating of the primary table necessary. The way I named things was:
Company_DB - Company Database
Company_DB-Extern - My own stuff
Then, in sap, you can just do [Company_DB-Extern]..Object to call it, or you do the same from withing your project. -
Filtering data using sql query
I am pulling data from a database which is a log of events type data. It consists of entries at a certain time, entry text, and even has an entry type. One of those types is known as "open item." This entry has the potential to be present on multiple days over and over. The problem is I only want the "open item" entries to appear that occur on the most recent day of a date range that is input by the user, but also not excluding all other entries from all of the other days that are not "open item." The "is_open=0" is what is excluding the "open items" from all of the entries, but now there needs to be a way to include (ie. "is_open=1") the "open items" on the current day. My query is as follows:
SELECT b.log_title, a.log_id, MIN(a.shift_date) AS shift_date,a.shift_id,a.operator_position_descr,a.is_open,a.user_id, MAX(a.annotation_number) AS annotation_number,
a.entry_text, MIN(a.entry_time) AS entry_time,a.font_num
FROM log_entries AS a INNER JOIN
log_list AS b ON a.log_id = b.log_id
WHERE ((entry_type_code NOT LIKE '%NLOG%'
AND entry_type_code <> 'daily'
AND entry_type_code <> 'shift act') or entry_type_code is null)
AND (is_open = 0 AND is_standing_order = 0 AND is_rolled_forward is null)
GROUP BY b.log_title, a.log_id, a.user_id,a.shift_id,a.operator_position_descr,a.is_open, a.entry_text,a.font_num
Order by entry_timeChange you WHERE clause to something like this... (You didn't say what kind of DB you were using so I used SQL Server syntax)
WHERE ((entry_type_code NOT LIKE '%NLOG%'
AND entry_type_code IN ('daily', 'shift act')) OR entry_type_code is null)
AND (is_open = 0 OR (is_open = 1 AND a.shift_date >= DateAdd(dd, DateDiff(dd, 0, GetDate()), 0)))
AND is_standing_order = 0
AND is_rolled_forward is null
The biggest change is this... AND (is_open = 0 OR (is_open = 1 AND a.shift_date >= DateAdd(dd, DateDiff(dd, 0, GetDate()), 0))).
It allows is_open = 1 if the shift_date is => midnight of the of the current day.
HTH,
Jason -
How Get last five quarters data using ssrs expression
Hi All,
i have an ssrs report where i have to get last five quarters data and also last five months data when i select quarterly/monthly parameter.....
is there any possibilty that we can get this using ssrs expression
any help please.........Hi Mr.SMK,
According to your description, there is an SSRS report, you want to create a parameter, when you select quarterly, data of last five quarters will be displayed. If you select monthly, data of last five months will be displayed. If that is the case, please
refer to the following steps:
1. In design surface, in Report Data pane, right-click Parameters and click Add Parameter.
2. Type parameter name and prompt, set Data Type to Date/Time.
3. Click Available Values in left pane, select Specify values.
4. Click Add button, in Label text box, type Quarterly, then click (fx) button and type the expression like below:
=DateAdd("q",-5,Today())
5. Click Add button, in Label text box, type Monthly, then click (fx) button and type the expression like below:
=DateAdd("m",-5,Today())
6. Right-click the dataset used to retrieve data for the report and open Dataset Properties dialog box.
7. Click Filters in left pane, click Add button, select Data from Expression drop down list, set Operator to >=, in Value text box, type [@ParameterName].
The following screenshots are for your reference:
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
Wendy Fu
TechNet Community Support -
Export/Import data in SQL Express 2014
Hello,
I have SQL Server 2008 on the network server and 'central' DB. To workaround cases when the network is down I decided to implement 'local' design on all clients. Actually I have 5 clients. I installed SQL Express 2014 on each client and created exact as
'central' empty database on each client.
Now during network outage I'm able to continue collect data and populate it in each of 5 db's.
When the network is up again I have to copy/move collected data from each client to 'central' db. Unfortunately 'central' and 'local' db's are on the different network and can't see each other hence I have to somehow export package from each 'local'
db and then import it into 'central'.
The problem that I hit is that in SQL Express there's not an option to save package i.e. it allow only immediate export which would not work for me.
Do you have an idea how to handle this situation?
Thanks
EVHi,
I agree with Ronen and Scott. You can use SQL Server Replication to
copy the data.
Replication is a set of technologies for copying and distributing data and database objects from one database to another and then synchronizing between databases to maintain consistency. Using replication, you can distribute data to different
locations and to remote or mobile users over local and wide area networks, dial-up connections, wireless connections, and the Internet.
Replication processing resumes at the point at which it left off if a connection is dropped.
Please check out the following links for more information about SQL Server Replication:
SQL Server Replication Step by Step
http://www.codeproject.com/Articles/715550/SQL-Server-Replication-Step-by-Step
SQL Server Replication
http://msdn.microsoft.com/en-us/library/ms151198.aspx
Thanks.
Tracy Cai
TechNet Community Support -
Syntax Error when using SQL Expression
Morning all,
When I try to type any SQL Expression within Crystal I am getting syntax errors, even when I type only SELECT {field name} FROM {table name}.
Here is the query I did which gave me the following error:
Query
SELECT order_progress . date_created
FROM order_progress
WHERE order_progress . order_no = order_header . order_no
AND order_progress . order_status =77
ORDER BY order_progress . date_created DESC
Error
Error in compiliing SQL Expression
Database connector Error: 'HY000[Informix] [Informix ODBC Driver]General Error. Syntax Error[Database Vendor Code-11060]'.
Now this means, 1: I am getting a connection error with my db, for no apperent reason. 2: my syntax is not approved?!
Can someone explain why is this happening and how to resolve this?
many thanks
Kind Regards
JehanzebMorning Kyle,
Thanks for the informative answer, I have found out the formula which counts number of days however, I am not sure what you meant by the following:
>
Kyle McAdam wrote:
> create a formula that does the datediff....this will be a group.
Done this, it counts the working days as in weekdays and takes bank holidays out as well
here is the formula:
WhileReadingRecords;
//{order_progress.order_status}= 77;
//{order_header.order_status}>=77;
Local DateVar Start := {order_header.date_entered}; // Starting Date
Local DateVar End := {order_header.act_despatch}; // Ending Date
Local NumberVar Weeks;
Local NumberVar Days;
Local Numbervar Hol;
DateVar Array Holidays;
Weeks:= (Truncate (End - dayofWeek(End) + 1
- (Start - dayofWeek(Start) + 1)) /7 ) * 5;
Days := DayOfWeek(End) - DayOfWeek(Start) + 1 +
(if DayOfWeek(Start) = 1 then -1 else 0) +
(if DayOfWeek(End) = 7 then -1 else 0);
Local NumberVar i;
For i := 1 to Count (Holidays)
do (if DayOfWeek ( Holidays<i>) in 2 to 6 and
Holidays<i> in start to end then Hol:=Hol+1 );
Weeks + Days - Hol;
You will then have a formula field that is evaluated to 1, if the status is 77.
you mean second formula? How I used,
If Order_header.Order_Status=77 then
1
else
2;
however this doesn't seem to be working.
> Now, sum that formula in each group footer. Suppress the detail lines...
which formula to sum up?
> **Don't use a cross tab with this solution. For a cross tab, you would have to calculate the totals in a different manner.
so far I used Cross tab and it is showing the right days, however not showing the correct jobs per day.
You might be right there that it calculates the totals differently, additionally how am I suppose to get the right Percentage if using the Cross tab. The percentage should be, count of number of jobs % Total jobs.
hence:
{#NumofJobs} % {#Total_Jobs}
however, when I create this formula it does not let me add that into the cross tab.
I also need to put a subreport in my report, can I use Crosstab to contain a link to my subreport?
Many thanks
Kind Regards
Jehanzeb -
ORA-01841 Error when value for date col is NULL in .dat (using SQL Loader)
Hello Gurus,
I have some data in .dat file which needs to be loaded into oracle table. I am using SQL * Loader to do the job. Although "NULLIF col_name =BLANKS" works for character datatype, but when value for date col is NULL then I get ORA-01841 error. I have to make NULL for all rows withour value for date column
Early reply will be highly appreciated
FarooqHi,
May be this problem is not with the NULLIF. The value for the date column is not in proper date format.
create table:
create table kk (empno number, ename varchar2(20), deptno number, hiredate date)
Control file:
LOAD DATA
INFILE 'd:\kk\empdata.dat'
insert into TABLE kk ( empno position (1:2) integer external,
ename position(4:5) char NULLIF ename=BLANKS,
deptno position (7:8) integer external NULLIF deptno=BLANKS,
hiredate position (10:20) date NULLIF hiredate=BLANKS)
data file:
10 KK 01-jan-2005
20 10
SELECT * FROM KK;
EMPNO ENAME DEPTNO HIREDATE
10 KK 01-JAN-05
20 10
Verify the data file.
Hope it will help
Maybe you are looking for
-
Unable to Import Transport Request
HI all, I was trying to import some Transport request, but it pops an error: ERROR: "Transport control program tp ended with error code 0012" "Errors: A tool used by tp aborted". Any ideas, Thanks. Ravi.
-
Error in BDC while running in NO screen mode
Hello All, I am creating material using BDC. I need to capture errors those occure during creation of material. i need to place these errors in client desktop. When I run the BDC in ALL Screen mode all types of errors are getting captured correctly a
-
Why is login in to apple support such a hassle?
Why is login in to Apple Support such a hassle? Why are Apple users needing support offered a further hassle? I log in but can't participate because?... Apple Support thinks I'm logged out... Why? iHope
-
ISO C Binding with standard C libraries, and Fortran pointer functions
The ISO-C-Binding extension is mostly working in Sun Fortran, so I have been experimenting with auto-generated interfaces to C libraries, which I hope to develop in to a complete SWIG addition. Ideally, many of the standard C libraries should eventua
-
I need adobe flashplayer for iPad Air
Hi I need adobe flashplayer for I pad air How to download adobe flashplayer because I want access live television website