Help with anonymus pl/sql layout using javascript
Hi people.I want to display records on a region (using apex 4.2), this anonymous pl/sql script below shows 3 records in database, but the layout only shows me the first album with its data, the other 2 files, only show me the labels.
I checked this same query creating a report and it shows the 3 files correctly.
I guess I'm doing something wrong with this javascript routine or certainly miss something,
in this link you can see the layout I get. (http://sdrv.ms/Xrv0J8).
Another is the little help I need to display in a line for each record. in fact, I'm getting a line for each label and a line for each data record. I have read and learned something is/div, but I don't know how to change it to get the desired results, any suggestion is welcome.
Thanks in advance for any help.
I am completely new in apex and java script, but I have several years of experience in pl/sql.
-------
The Script:
Begin
Declare
Anyth cursor is
Select the item,
To_char (delivery, ' month DD, YYYY hh24:mi:ss ") delivery.
Current_date
Of pending_items;
Begin
For a loop Anyth
Begin
Sys.Htp.P ("< script type =" text/javascript"> '");
Sys.Htp.P ('function cdtd() {'});
Sys.Htp.P ("var Christmas = new Date (" ' | ') ") a.Delivery | '")');
Sys.Htp.P ("var now = new Date();'");
Sys.Htp.P ("var timeDiff = xmas.getTime () - now.getTime ();'");
Sys.Htp.P (' if (timeDiff < = 0) {'});
Sys.Htp.P ('clearTimeout() (timer)');
-Sys.Htp.P ("document.write ("of the text here.")");
Sys.Htp.P (' / / execute all necessary code to the completion of the countdown here ');
Sys.Htp.P ('} ');
Sys.Htp.P (' var seconds = Math.floor(timeDiff / 1000);) ") ;
Sys.Htp.P ("var minutes = Math.floor(seconds / 60) ;");
Sys.Htp.P (' varhour = Math.floor(minutes / 60);) ") ;
Sys.Htp.P ("days var Math.floor(hours / 24) = ;"); ")
Sys.Htp.P (' hours = 24 ;'); %)
Sys.Htp.P (' minutes % = 60 ;');)
Sys.Htp.P (' seconds % = 60 ;');)
Sys.Htp.P (' document.getElementById("daysBox").innerHTML = days ;');)
Sys.Htp.P (' document.getElementById("hoursBox").innerHTML = hours;) ") ;
Sys.Htp.P (' document.getElementById("minsBox").innerHTML = minutes ;');)
Sys.Htp.P (' ;'); seconds = document.getElementById("secsBox").innerHTML)
Sys.Htp.P (' timer var = setTimeout ("cdtd ()", 1000);');
Sys.Htp.P ('} ');
Sys.Htp.P ("< /script >");
Sys.Htp.P ("days");
Sys.Htp.P ("< div id ="daysBox"> < / div > '");
Sys.Htp.P ("hours");
Sys.Htp.P ("< div id ="hoursBox"> < / div > '");
Sys.Htp.P ('minute');
Sys.Htp.P ("< div id ="minsBox"> < / div > '");
Sys.Htp.P ("seconds");
Sys.Htp.P ("< div id ="secsBox"> < / div > '");
Sys.Htp.P ("< script type =" text/javascript"> '");
Sys.Htp.P ('cdtd() < /script > ');
End;
End loop;
End;
End;
For now, let's focus on delivery dates and the javascript.
Why you would put your javascript in htp.p called in a plsql region is beyond me. When you edit the page there is a region of javascript where you can put global variables and functions, a great spot for it then and much easier to manage than that.
Now, it is also clear that your query on pending items will return multiple records. Thus, using a report would serve you well in this case. However, using code like this:
document.getElementById("daysBox").innerHTML = days;
document.getElementById("hoursBox").innerHTML = hours;
document.getElementById("minsBox").innerHTML = minutes;
document.getElementById("secsBox").innerHTML = seconds;
you won't have to. getElementById is supposed to return an element identified by a code. If you have a report that contains multiple lines and elements on each line with the same ID, you're doing something wrong. You should be the date of delivery by rank, and I suppose that you put your code with htp.p because you don't know how to deal with this and passing the procedure of javascript.
But would it not more oppurtune for you simply create a report with a sql source when you calculate each part of the date and then refresh this region with a certain interval. If you would be refreshed every 5 minutes, not who is more fast enough to keep track of things? Remember, refreshing a region will execute the SQL again.
It is not that you cannot make a report multi-record with a countdown by rank, but are you sufficiently comfortable with javascript and jquery to encode and maintain that against leverage plsql and dynamic actions (there is even an action timer plugin supplied by oracle dynamic)?
Tags: Database
Similar Questions
-
need help with my screen has been using mouse and the screen is smaller and smaller
need help with my screen has been using the mouse and the screen is smaller and smaller, so can't see
Try to hold the 'ctrl' key and turn the wheel of scrolling the mouse forward to zoom, turning the scroll wheel to the rear is to zoom out.
-
Help with some PL/SQL triggers
Hello, I'm totally new using PL/SQL, so I need your help with two triggers.
For example
1 compare two dates and check that there are different, you must send an error message
2. when I insert a new record, a trigger must get data from other tables and Add (on a new record)
Maybe not the answers, perhaps the way forward!
Thks!Insert values into a new record of existing data tables
This thing that you can do with simple sql statements as
insert into table_name1 select column_name from table_name2;
For example: -.
create table test(id number(10)); Table created. insert into test select empno from emp; 14 row(s) inserted. select * from test; ID 7839 7698 7782 7566 7788 7902 7369 7499 7521 7654
Thank you
Mezaber
-
Need help with ics. SQL return null
Hi experts WCS.
I have this ics. SQL statement that returns an IList as null and nothing in the errStr in debugging print.
IList rsATypes is ics. SQL (, sqlATypes, listName, limit, bCache errStr);
The code is in one of my jsp. He ran very well in my local JSK (HyperSQL Db), but returns NULL in the case of Test (Oracle DB, if this is another).
I got the sql statement println during execution and run it directly in Oracle DB (same instance) it returns the expected result set.
The code snippet:
System.out.println("## ics.GetSSVar(\"pubid\") : " + ics.GetSSVar("pubid")); // Get Attribute Types String sqlATypes = "SELECT DISTINCT assetpublication.assettype " + "FROM assetpublication " + "LEFT JOIN approvedassets " + " ON assetpublication.assetid = approvedassets.assetid " + "WHERE pubid = '" + ics.GetSSVar("pubid") + "' " + "AND (tstate is null OR tstate <> 'A') " + "AND (voided is null OR voided <> 'T') " + "ORDER BY assettype; "; System.out.println("##0126 sqlATypes : " + sqlATypes); String from = "AssetPublication, ApprovedAssets"; // String listName = null; String listName = "ATypesList"; int limit = -1; // boolean bCache = true; boolean bCache = false; StringBuffer errStr = new StringBuffer(""); ics.ClearErrno(); IList rsATypes = ics.SQL(from, sqlATypes, listName, limit, bCache, errStr); System.out.println("## rsATypes : " + rsATypes); if (rsATypes == null) { System.out.println("## NO DATA in rsATypes! errStr : " + errStr.toString());
}
The journal:
## ics.GetSSVar("pubid") : 1374097570685 ## sqlATypes : SELECT DISTINCT assetpublication.assettype FROM assetpublication LEFT JOIN approvedassets ON assetpublication.assetid = approvedassets.assetid WHERE pubid = '1374097570685' AND (tstate is null OR tstate <> 'A') AND (voided is null OR voided <> 'T') ORDER BY assettype; ## rsATypes : null ## NO DATA in rsATypes! errStr :
I got enclosing try catch block, who did not take any exception.
The funny thing is, in the same piece of code, an ics. Casea used already worked (which I noticed outside because there was not enough for what I want to do):
StringBuffer errSB = new StringBuffer(""); ics.SetVar("assetid", id); IList approvedAsset = ics.SelectTo("ApprovedAssets", "state,voided,tstate,locked,reason,treason", "assetid", null, -1, null, true, errSB);
Any help/ideas from anyone would be really appreciated.
Thanks Guddu1223, I discovered why.
The SQL statement cannot end with a semicolon (see line 11 of my original above codes). Delete who had back all the records provided for in my resultset in the IList.
The reason why it works in my local, but not stable instance that I guess is my local JSK + HyperSQL, in WCS + Oracle DB instance trying...
-
BlackBerry Smartphones need help with the word base to use
I tried endless forums on help to use the basic features of the Doc to go to search. everyone seems to have a problem PDF, attachment problem or another problem of advanced feature, I can just transfer my Word documents on my blackberry and view them. From DataViz Web site had no answer for me.
I have a BB storm, with VZW, using the most recent 4.7 OS it is a personal phone, so don't think it's a problem of BES.
I'm not very Savy BB, this is my first phone which does more then call / SMS and I'm sure I've missed a step somewhere, it may not be difficult to get a word in my Storm doc and visualize it.
I used the Desktop Manager to transfer documents word on my storm, I transferred to the default documents folder.
I also tried drag-and - drop file to my blackberry just using my PC.
also, I tried to send me an email and download the attachment.
I can get the files from my storm, when I go to the media and to "explore" I can see the files, but I can't open them, according to the extension, it is said, is not an RTF file or unable to display file/Media card/blackberry/documents/""".wps
And when I try to access it directly from the Word go, it appears same.
Am I missing something?
Any help would be appreciated, I think I'm missing something or I missed a step somwhere.
If someone can share with me a step by step how to send a word document (what to save it under) for my blackberry (where to put) and in fact he discovered (where to go) would be great.
also I missed something permissions? I set everything on Documents to go to 'allow' and reset the firewall.
Hello and welcome!
Looks like you do everything right. I just sent myself a doc word opened the email and who launched Word to Go. I then closed and saved and can be found only through Media-Explorer or by first launching WordToGo and then open it. So it seems that something is wrong with yours.
First thought - there was an update for Documents To Go... the current version is 1.006 (052) - find who spear one of the applications To Go and then open the menu (button BB) and selecting "about...". ». If you are on an older version, first advice is to get the update (another selection in this menu). Then try again.
Second thought - which version of Word? I noticed my WordToGo talks about reading through Word2004 (I think they mean 2003). If you try to use a document of 2007 (.docx), it might not work.
-
I need help with the following sql.
I'm lost. I'm collecting information for the days of the month. For days I have not, I would like to query to get these days also.
The days of return I have with data and all other days where I'm not.How can I get the rest of the days of the month of June. If I execute sql against the following.
Select * from
(Select '02' as the double Study_Date
Union Select '03' as the double Study_Date
Union Select '04' as the double Study_Date
Union Select '04' as the double Study_Date
Union Select '05' as the double Study_Date
Union Select '06' as the double Study_Date
Union Select '09' as the double Study_Date
Union Select '10' as the double Study_Date
Union Select '11' as the double Study_Date
Union Select '12' as the double Study_Date
Union Select '13' as the double Study_Date
Union Select '16' as the double Study_Date
Union Select '19' as double Study_Date)Thank you
Howard
Hello, Howard.
Thanks for posting the sample data! Don't forget to post the exact results you want from these data.
Looks like you want something involving everyday of the month, they have a day corresponding to your table or not. This looks like a job for an outer join.
This should give you some ideas:
WITH days_wanted AS
(
SELECT TO_CHAR (LEVEL, 'fm00') n
OF the double
CONNECT BY LEVEL<=>=>
)
SELECT d.n
t.study_date
NVL2 (t.study_date
'Yes '.
'No '.
) AS in_table_x
OF days_wanted d
LEFT OUTER JOIN table_x t ON t.study_date = d.n
ORDER BY d.n
;
Output:
STUDY_DATE N IN_TABLE_X
--- ---------- ----------
01 NO.
02 02 Yes
03 03 Yes
04 04 Yes
05 05 Yes
Yes 06 06
07 NO.
08 NO.
09 09 Yes
10 10 Yes
11 11 Yes
12 12 Yes
13 13 Yes
14 NO.
15 NO.
16 16 Yes
17 NO.
18 NO.
19 19 Yes
20 NO.
21 NO.
22 NO.
23 NO.
24 NO.
25 NO.
26 NO.
27 NO.
28 NO.
29 NO.
30 NO.
You must use a DATE for study_date, not a VARCHAR2 column. What will you do if you have days of different months in the table?
-
Help with simple PL/SQL package
Hi, I'm creating a package simple PL/SQL to loop over a list of names and do some special fuzzy criteria in an attempt to clean up the data. Unfortunately... I don't know anything about PL/SQL and hitting problems is to work. Could anyone give a hand?
p. s.
table TMP_UTL_MATCH_INPUT has a list of names to corresponding in the column called CLEAN_MERCHANT
TMP_UTL_MATCH_OUTPUT table should contain the original entry of line # and value, a corresponding output line # and value and calculated edit_distance jaro_winkler similaritise
table TMP_UTL_MATCH_STATUS is simply updated after each value so I can track where in the process it is obtained (I suspect that this algorithm will take a lot of time...)
Thanks in advance for any help!
Scott
create or replace
PROCEDURE ' PROCESS_UTL_MATCH_DATA "("START_ROW"EN ENTIER PAR DÉFAUT 1) IS" ".
-initialize variable here
whole Num_Rows;
number of edit_distance_similarity;
number of jaro_distance_similarity;
-main body
BEGIN
Select count (*) in tmp_utl_match_input num_rows;
declare name_array as varray (num_rows) of varchar2 (40);
Select clean_merchant in the TMP_UTL_MATCH_INPUT name_array;
truncate table tmp_utl_match_status;
insert into tmp_utl_match_status values (0);
I'm in 1.num_rows - 1 LOOP
FOR i j + 1.num_rows LOOP
edit_distance_similarity = utl_match.edit_distance_similarity (name_array (i), (j) name_array);
jaro_winkler_similarity = utl_match.jaro_winkler_similarity (name_array (i), (j) name_array;)
If (edit_distance_similarity > 50 or jaro_winkler_similarity > 50)
then
insert into values of tmp_utl_match_output (i, name_array (i), j, (j) name_array, edit_distance_similarity, jaro_winkler_similarity);
END IF;
END LOOP;
Update tmp_utl_match_status set current_row_num = i;
commit;
END LOOP;
EXCEPTION
WHILE OTHERS THEN
NULL; -Enter any code exception here
END;I'm sorry. Just discovered that my syntax is incorrect. Cannot bulk collect a select statement. You must use a cursor, so here is the revised code
create or replace PROCEDURE "PROCESS_UTL_MATCH_DATA"("START_ROW" IN INTEGER DEFAULT 1) IS --initialize variables here num_rows integer; edit_distance_similarity number; jaro_distance_similarity number; type Vartab is table of varchar2(40); name_array vartab; CURSOR tmp_utl_cur IS SELECT clean_merchant FROM tmp_utl_match_input ORDER BY row_num; -- main body BEGIN OPEN tmp_utl_cur; FETCH tmp_utl_cur bulk collect into name_array; num_rows := name_array.COUNT; execute_immediate 'truncate table tmp_utl_match_status'; insert into tmp_utl_match_status values (0); FOR i in 1..num_rows-1 LOOP FOR j IN i+1..num_rows LOOP edit_distance_similarity = utl_match.edit_distance_similarity(name_array(i), name_array(j)); jaro_winkler_similarity = utl_match.jaro_winkler_similarity(name_array(i), name_array(j); if (edit_distance_similarity > 50 or jaro_winkler_similarity > 50) then insert into tmp_utl_match_output values (i, name_array(i), j, name_array(j) ,edit_distance_similarity, jaro_winkler_similarity); END IF; END LOOP; update tmp_utl_match_status set current_row_num = i; commit; END LOOP; EXCEPTION WHEN OTHERS THEN NULL; -- enter any exception code here END;
-
I can't access my accounts with Firefox it won't use javascript, but IE doesn't.
JavaScript turned on, but my bank account do not see it in the work, nor facebook either or any other online accounts.
Type of topic: addons< enter > in the address bar to open the Add-on Manager.
Access key; < Control >(Mac: < command >) < shift > has)On the left side of the page, select Plugins.
Make sure that the ones you want to use is on Ask or Allow.Go to the web page. Once the page loads, mouse to the address bar
and left click the icon. A window to display information of site should
developed. Select more information. Now select permissions. In the
menu, make sure that those you want to use is on Ask or Allow. -
Need help with a PL/SQL code
Hello
I am trying to execute the following PL/SQL code, which translates errors, obviously I'm not doing things, but it gives you an idea what I'm trying to do:
DECLARE
INT var_count;
SELECT COUNT (*) IN var_count
FROM sys.all_tables WHERE OWNER = 'SAKILA' AND table_name = "ACTOR";
If var_count > 0 then
BEGIN
DROP TABLE "ACTOR";
END;
/
Erros:
SELECT COUNT (*) IN var_count
*
ERROR at line 3:
ORA-06550: line 3, column 1:
PLS-00103: encountered the symbol "SELECT" at the expected in the following way:
Start function < an ID > pragma procedure subtype type
< between double quote delimited identifiers > delete the current cursor
There is before
The symbol 'start' has been substituted for "SELECT" to continue.
ORA-06550: line 7, column 1:
PLS-00103: encountered the symbol "DROP" when expecting one of the following conditions:
(begin case declare exit for goto if loop mod null pragma
raise return select update while < ID >
< between double quote delimited identifiers of > < a variable binding > < <
continue the narrow current delete fetch locking insert open rollback
savepoint sql set run commit forall fusion pipe purge
Your help to create it in a right way will be appreciated.
Thank you very much.
Tonya.
Try the following:
My = $ora $csr-> prepare (q {}
DECLARE
INT var_count;
BEGIN
SELECT COUNT (*) IN var_count
FROM sys.all_tables WHERE OWNER = 'SAKILA' AND table_name =: ts;
If var_count > 0 then
RUN IMMEDIATELY 'DROP TABLE' |: ts | "CASCADE CONSTRAINTS;
end if;
END;
});
-
Help with MS Access SQL Developer Import (problem of DateTime field)
So here's my dilemma...
I am currently trying to import from MS Access to SQL Developer, by exporting MS Access to MS Excel and then import in my table of the exporting Excel sheet. What happens is that when I import the excel sheet, it is does not keep the format of date/time / I tried several different formats, but everyone seems to exclude the time and the date.
My field of date/time is currently set up like this on SQL Developer:
DD/RRRR/MM HH: MM: SS AM/PM
And the Excel sheet, I'm importing the field corresponding, defined as follows:
mm/dd/yyyy/hh/mm/ss AM/PM
The answer (s) I'm importing is as follows:
Date/time physical_cpu server_id
01/11/2013-12:01:23 AM scc415 6.03999996
When the record is imported, it eliminates the time, so the imported data are:
Date/time physical_cpu server_id
01/11/2013 6.03999996 scc415
Any idea on how to get this timestamp to import properly? Many appreciate the ideas in advance!
Looks like I have found the solution. For some reason, export to leave access to Excel first and then open and save the file as a .csv instead of a .xlsx, date/time information are maintained. This problem has been resolved.
Found the solution on the following link for anyone interested.
-
Need help with this pl/sql code
Hello
It is showing an error sql command not properly ended... where FLX_TEXTTRAN802003. SPTEXTINSERT
is a package... help me please
BEGIN DECLARE v_TextID NUMBER :=0; I_LanguageID NUMBER := 1033; v_count number; e_error EXCEPTION; BEGIN --INsert into text FLX_TEXTTRAN802003.SPTEXTINSERT (io_id => v_TextID, i_type => N'', i_lastupdateon => cob_f_getutc, i_lastupdatedby => 'NGMESSystem', i_createdon => cob_f_getutc, i_createdby => 'NGMESSystem' ); -- Insert into TEXT_TRANSLATION FLX_TEXTTRAN802003.SPTEXTTRANINSERT (i_TextID => v_TextID, I_LanguageID => I_LanguageID, i_short => 'CUSTOMER', i_medium => 'CUSTOMER', i_extended => 'CUSTOMER', i_lastupdateon => cob_f_getutc, i_lastupdatedby => 'NGMESSystem', i_createdon => cob_f_getutc, i_createdby => 'NGMESSystem' ); select count(*) into v_count from characteristic_class where name='CUSTOMER' if v_count = 0 then Insert into FLXUSER.characteristic_class (ID, NAME, TEXTID, REFERENCEID, LASTUPDATEON, LASTUPDATEDBY, CREATEDON, CREATEDBY, ACTIVE, LASTDELETEON, LASTDELETEDBY, LASTREACTIVATEON, LASTREACTIVATEDBY, ARCHIVEID, LASTARCHIVEON, LASTARCHIVEDBY, LASTRESTOREON, LASTRESTOREDBY, ROWVERSIONSTAMP) Values (SEQ_CHARACTERISTIC_CLASS.nextval, 'CUSTOMER', v_TextID, NULL, NULL, NULL, TO_DATE('11/05/2012 16:49:05', 'MM/DD/YYYY HH24:MI:SS'), 'SYSTEM', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1); commit; ELSE Raise e_error; END IF; EXCEPTION when e_error then dbms_output.put_line('data already exist'); end;
Hello
next to what Frank says, the following line:
select count(*) into v_count from characteristic_class where name='CUSTOMER'
missing semicolon at the end:
select count(*) into v_count from characteristic_class where name='CUSTOMER' ;
Also the BEGIN initial until the DECLARE is unmatched (no corresponding END).
You can remove it.Kind regards.
AlPublished by: Alberto Faenza on November 6, 2012 16:24
-
Help with APP_USER in SQL query
Hello
I would like to extract a detail of the user in a form of language element DML based on the logged in user and the standard authentication scheme.
I make this request in the element:
The user in the session is equal to the value of the EMAIL. In fact, the value in the session is a capital letter, and the other in the database is tiny. I think that's irrelevant anyway.select ANALYST_FIRST_NAME ||' '|| ANALYST_LAST_NAME d, ANALYST_ID r from QTMT_ANALYST where EMAIL = :APP_USER
The query do not of any value. Could you please let me know what I did wrong?
APEX: 4.2
Item Source type: query SQL (single return value)
Thank you and best regards,
VladimirTo be on the safe side you should uppercase both sides of the equation. It could be that the user name is entered in lowercase.
But if you think that your request is correct, test it by using a literal rather than the user name.
select ANALYST_FIRST_NAME ||' '|| ANALYST_LAST_NAME d from QTMT_ANALYST where upper(EMAIL) = upper(:APP_USER);
for testing purposes, use something like this:
select ANALYST_FIRST_NAME ||' '|| ANALYST_LAST_NAME d from QTMT_ANALYST where upper(EMAIL) = upper('[email protected]');
Published by: Sven w. October 23, 2012 13:30
APEX: 4.2
Item Source type: SQL Query ( return a single value )I just noticed that you use an element that has this as the SQL source. This only works if the sql returns a row and a column only. That's why I removed the second column in your query.
Published by: Sven w. October 23, 2012 13:33
-
Help with vdmk migration of RDM using vmkfstools-i
Hi all
I need to migrate a 590GB hard file to a RDM in virtual compatibility mode.
I want to avoid using a method of file copy there are has over 6 million of small files on this volume.
I'm came across a blog that said this could be done using the ' vmkfstools-i "command and I saw other posts here on the community forums that tell a similar story."
I have three questions:
The virtual machine should be turned off when you use "vmkfstools-i" command?
The following syntax would be just so executed with the VM source directory and assuming that vmhba1:0:2:0 is the path to the RDM LUN on the SAN: vmkfstools rdm d-i F - drive.vmdk F-Drive - rdm.vmdk: / vmfs/devices/drives / vmhba1:0:2:0
Should I join/create the ROW for the virtual machine before or after that I use "vmkfstools-i" command?
Thank you!
The virtual computer source must be turned off.
Your command syntax is good
The command will create the mapping RDM once finished you just add to your virtual machine
-
Help with spry does not display using ssi
Hello
I have reviewed the previous tutorials and can't find where is my mistake. I cut and pasted the code for spry on an include with the extension .shtml file. I mentioned it in the file and header seeems correct,
My files are relative root
I have a file called includes, you can view the source here
http://crystalbeach.com/funthings/includes.shtml
Here is my link that is supposed to be the spry navigation bar display.
http://crystalbeach.com/funthings/index_erinn.shtml
Help, please!
Thank you
http://crystalbeach.com/funthings/index_erinn.shtml
Line 29
is simply an ordinary HTML comment. It doesn't do anything.
Implement
[an error occurred while processing the directive]
This means that your include file is named includes.shtml and it is always stored in a folder called «funthings» Many people store includes inside a folder named "includes" in the folder root on the server.
NOTE: the .shtml file extension applies to the page parent asking the include file.
The include file can have any file extension would be for example menu.monkeybutt where the code include[an error occurred while processing the directive]
-
Help with columns of FIXED LENGTH - using the command of the coil
Hi guys,.
I have a vision I try to be wound using columns of fixed length, and the spacing is off. Ive tried many things like specifying the width of the column before executing the query, using the command rpad, but nothing seems to work. I have the coil in a text file so that users to import this file into another system. I'd appreciate any suggestions. Thank you very much. What follows is the view:
SELECT 'Employe_id', 'FIRST NAME', 'INITIAL', 'NAME', 'SUFFIX', ' TRAINING ', 'Class ID', 'Class ID', 'We', "make / model ', 'Cali', 'Barrell', 'Serial number', 'Qualification', 'Application', 'SCORE', 'Status', 'add a time', 'Add a record ID', 'Add a record Date', ' change record ID ',' save the modified Date ', 'RN' OF
(SELECT
Upper (RPAD (tbl. SSN, 10)) AS "Employe_id."
UPPER (RPAD('',12)) AS "FIRST NAME."
UPPER (RPAD('',1)) AS "ORIGINAL."
UPPER (RPAD('',20)) AS "LAST NAME,"
UPPER (RPAD('',5)) AS "SUFFIX."
SUPERIOR (RPAD (to_char (QUALDATE, 'MMDDYYYY'), 8)) AS 'DATE OF TRAINING. "
Upper (RPAD('P123',8)) AS "Course ID"
Upper (RPAD('',6)) AS 'class ID ',.
Upper (RPAD ('P', 4)) AS '' We. ''
Upper (RPAD('',4)) AS ' make / model.
Upper (RPAD('',4)) AS "Cali,"
Upper (RPAD('',7)) AS "Barrell."
Upper (RPAD('',15)) AS "serial number."
Upper (RPAD('A',4)) AS "Qualification."
Upper (RPAD('D',4)) AS "Application."
TO_CHAR ((RAWSCORE/250) * 100, "fm000.00") "SCORE".
Upper (RPAD('PASS',4)) AS 'Status. "
Upper (RPAD('',8)) AS "add time"
Upper (RPAD('',8)) AS "registration Add ID."
Upper (RPAD('',8)) AS 'Record Date added',
Upper (RPAD('',8)) AS "Record ID change."
Upper (RPAD('',8)) AS "Date of registration of the change."
ROW_NUMBER () over (partition by firearms_scores.ID_NUMBER QUALDATE desc order) rn
OF FIREARMS_scores, TBL
where scores.id_number = tbl.id_number
and qualyear = "2010" and coursecode = "SA".
order by employee_id)
where rn = 1Hello
You RPAD does nothing, because they are identical:
SQL> SELECT NULL AS "Record Add ID", 2 NULL AS "Record Add Date", 3 NULL AS "Record Change ID", 4 NULL AS "Record Change Date" FROM DUAL; R R R R - - - - SQL>
Does not see why the leadership of the COLUMN should not do what you want. Maybe you forgot the quotes?
SQL> COL "Record Add ID" FOR a18 SQL> COL "Record Add Date" FOR a18 SQL> SQL> SELECT NULL AS "Record Add ID", 2 NULL AS "Record Add Date", 3 NULL AS "Record Change ID", 4 NULL AS "Record Change Date" FROM DUAL; Record Add ID Record Add Date R R ------------------ ------------------ - - SQL>
PS: You probably shouldn't affect the width of a column that is smaller than the length of the header
Concerning
Peter
Maybe you are looking for
-
Anyway to create a duplicate application (second) for the App Store?
I want to add a second icon of the App Store. .. .for another area of my desk. IS this possible?
-
I got an OEM version of 32-bit with my laptop.Can I borrow a window of 64 Bit 7 of someone and install it on my laptop using my 32 Bit key activation.
-
Huge problem with the system on my laptop Acer s7-391 acer recovery disk
Hi all, I'm really desperate as my laptop have stopped working for the weeks and I need it back First question: I installed the window 10 free upgrade successfully, however, I decided to restore the laptop through the window 10 plant factory restore
-
Laptop HP 2000: portable HP 2000 passes not to the VGA output video
Have used my laptop HP 2000 several times to connect to a TV screen using the VGA output jack and connect it to the VGA of my big screen input. Now, for some reason, there is no video output on the big screen, I tried 3 different cords (VGA VGA) and
-
Grow my C:/WINDOWS/Temp
So that's my problem, I lose every day space in the Local disk (: C) the problem is in the C:/WINDOWS/TEMP folder there are a lot of FLT.tmp and Perflib_Perfdata_63c, kls18AB.tmp I delete them, but they show up there again. It's getting space in the