Select the lists to the hours, Minutes and seconds
Apex 3.2
I need to create 3 selection lists.
One for the hour (24 hours)
One for the minutes
One for seconds
I couldn't just create selection lists in components that are shared using static values.
Is there a way to get the values using a select statement?
Gus
Hello
Try for example
SELECT 0 + LEVEL AS HH24 FROM DUAL CONNECT BY LEVEL <= 24
Kind regards
Jari
Tags: Database
Similar Questions
-
How to set the clock for the hours, minutes, and seconds with Windows XP
How to set the clock for the hours, minutes, and seconds with Windows XP
I don't know of your question. If you ask how to show the clock in the tray system with hours, minutes and seconds, then download & run "Tclock Light". Windows will not natively display the seconds.
TClock Light: <> http://homepage1.nifty.com/kazubon/tclocklight/index.html >
HTH,
JW -
How to add days, hours, minutes and seconds to a date?
Hello
I have the following problem.
Saw 4 integers D, H, M, and S (each of them can be negative) and a date Da, I want to add days D, H hours, M minutes and seconds of S date Da.
For example, if
This means that I want to add 3 days, -2 hours, 20 minutes and -12 seconds to the date Da, and the new date must be in the following date:Da= to_date('28/06/2011 14:50:35','dd/mm/yyyy HH24:mi:ss'), and D = 3, H = -2, M = 20 and S = -12,
Is it possible to write a query for this problem or should I use PL/SQL?to_date('01/07/2011 13:10:23','dd/mm/yyyy HH24:mi:ss')
Thank you.There is no need of PL/SQL
SQL> alter session set nls_date_format = 'DD/MM/YYYY HH24:MI:SS'; Session altered. SQL> var d number SQL> var h number SQL> var m number SQL> var s number SQL> exec :d := 3; :h := -2; :m := 20; :s := -12 PL/SQL procedure successfully completed. SQL> select to_date('28/06/2011 14:50:35','dd/mm/yyyy HH24:mi:ss') 2 + :d 3 + (:h / 24) 4 + (:m / 24 / 60) 5 + (:s / 24 / 60 / 60) 6 from dual; TO_DATE('28/06/2011 ------------------- 01/07/2011 13:10:23
-
DateValidator and inputFormat, I would check hour minute and second too
Hi it is my will and I want to validate the whole date YYYYMMDD not only
< mx:DateValidator id = "dateVal" source = "{TI_FechaInicio}" = 'text' property, inputFormat = "yyyy-mm-dd L:NN:SS" / >
But it doesn't seem to work, so, how can I solve this?
The only thing about work are yyyy-mm-dd, but (L:NN:SS A) none of the above workYes, there's a RegExpValidator
http://livedocs.Adobe.com/flex/201/langref/MX/validators/RegExpValidator.htmlI hope that you do not validate the date by using a regular expression, I mean you'd need one hell of a regexp to validate the fact that exactly the number of days in a month, at a few minutes to an hour, etc.
I recommend you to read the doc "Creating and extending Flex components", it is a good example on how to make your own validator
-
How to get the time in hours minutes and seconds subtraction between two varchar t
Hi all
I have two variable varchar that has a value like this
v_outpunch1: = 17: 50:00'
and v_Shifttime: = 18:00:00 '
This time I'm subtracting here and in another varchar variable
who's like that.
v_EarlyLeaverstimeformat: = ((extrait extrait de (heure de TO_TIMESTAMP (v_ShiftTime, 'HH24:mi:ss'))-(heure de TO_TIMESTAMP (v_OutPunch1, 'HH24:mi:ss') LPAD)), 2, '0'): ': ' |)) LPAD ((extrait (minute de TO_TIMESTAMP (v_ShiftTime, 'HH24:mi:ss'))-extrait (minute de TO_TIMESTAMP (v_OutPunch1, 'HH24:mi:ss'))), 2, '0'): ': ' |)) LPAD ((extrait (seconde de TO_TIMESTAMP (v_ShiftTime, 'HH24:mi:ss'))-extrait (seconde de TO_TIMESTAMP (v_OutPunch1, 'HH24:mi:ss'))), 2, '0');))
It is not properly subtracting value.
Thank youThis works for me...
SQL> ed Wrote file afiedt.buf 1 with t as(select to_date('17:50:00','HH24:MI:SS') as out, to_date('18:00:00','HH24:MI:SS') as shft from dual) 2 -- 3 select to_char(trunc(sysdate)+(shft-out),'HH24:MI:SS') as diff 4* from t SQL> / DIFF -------- 00:10:00
If you want something different, please report the details according to the FAQ: {message identifier: = 9360002}
-
Hour, minute and second is missing when you use Row.getAttribute)
Hello.
JDeveloper 11.1.1.2
If I do:
SimpleDateFormat sdf = new SimpleDateFormat ("yyyy-MM-dd hh: mm");
Line r = myRowSet.next)
Date myDate = r.getAttribute ("arrival") (Date);
System.out.println ("arrived:" + sdf.format (myDate));
the exit time is always printed as 12:00, even though the time may 09:31.
That is to say.
Arrival: 2011-12-24 12:00
Why?
Best regards
ErikCheck the data type of the attribute in the EO and VO. If they are java.sql.Date you must change to the java.sql.Timestamp or oracle.jbo.domain.Date, which holds at the time and the date.
Timo
-
Convert time difference in seconds in hours, minutes, and seconds
Hi all
I used the following logic to calculate the time difference between 2 passes of time for all the individual lines.
(floor ((TIME_ACTIONED-TIME_ALLOCATED) * 24) |) ':' || MOD (Floor ((TIME_ACTIONED-TIME_ALLOCATED) * 24 * 60), 60) |': ' | MOD (Floor ((TIME_ACTIONED-TIME_ALLOCATED) * 24 * 60 * 60), 60))
The user asked a column that displays the SUM of all the differences in time between the report.
Any help much appreciated!
Thank you
SwetaSimply the sum of time_actioned - time_allocated, then do the same calculation you make on this sum.
John
-
How can I make the hour, Minute, second information in the RMAN log?
DB version: 11.2.0.3
Platform: Oracle Enterprise Linux 6.2
An excerpt from log RMAN backup file.
As indicated by the arrows below, the RMAN backup log only information hour, Minute, and second. It was just the date 14 October 13
archived journal entry thread = 1 sequence = RECID 10946 = STAMP 21079 = 828801629
archived journal thread = 2 sequence = 10137 entry RECID = STAMP 21081 = 828801794
archived journal thread = 1 sequence = 10947 entry RECID = STAMP 21080 = 828801731
CH01 channel: from song 1 to 14 October 13-> we need some time here as 17:28:43
channel ch00: finished piece 1 to 14 October 13
piece handle = al_9306_1_828819222 tag = comment TAG20131014T190816 = Version of the API 2.0, MMS Version 5.0.0.0
channel ch00: complete set of backups, time: 00:14:55
channel ch00: archived deletion or newspapers
.
.
< snipped >
How can I set up the equivalent of below declaration for registration of RMAN?
ALTER session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS ";
Hello
We recommend that you always set you variable NLS_DATE_FORMAT so tah you see the hou, minute and second components of the date when the RMAN command. IF you be wrapped a gall newspaper during backup, restore and recovery controls, then this will ensure that a component of timestamp is disapled. This cabin can be useful when you are trying to solve the problems of RMAN.
If you do not set NLS_DATE_FORMAT, then you will not see the hour, minute, and the second component of the date columns. Excerpt from the output of a list without set NLS_DATE_FORMAT command:
Time of accomplishment of TIME TYPE LV SIZE DEVICE TYPE ELAPSET BS keys
---- --- ----- ------- ---- ---------------------------------------------
201 full DISCK 18.66 M 03:00:00 January 1, 13
Here is the result even when the NLS_DATE_FORMAT is set. Notice how the hours, the minutes and the seconds are now displayed:
Time of accomplishment of TIME TYPE LV SIZE DEVICE TYPE ELAPSET BS keys
---- --- ----- ------- ---- ---------------------------------------------------------------------------------
201 full DISCK 18.66 M 03:00:00 January 1, 13 12:11:25
You can check the value of NLS_DATE_FORMAT of your operating system with the echo command environment. ON UNIX, use echo as follows:
$echo $NLS_DATE_FORMAT
Here is an example of Windows to display NLS_DATE_FORMAT using the echo command:
c:\>echo % NLS_DATE_FORMAT %
To disable an OS variable, simply make it void. For example, to unset NLS_DATE_FORMAT in an environment of the UNIX C shell, use the OS unsetenv command:
$unsetenv NLS_DATE_FORMAT
IN an environment of the UNIX KORN shell, use export OS as follows:
$export = NLS_ADTE_FORMAT
-
Printer all in one HP3520 - how to select the wireless network and enter the WEP key?
According to print my wireless network is detected.
How to connect the! @# % printer $ fo the wireless network and enter the WEP key?
Instructions on the HP site tell me to selet NETWORK on the printer control panel. Well, there's a way to select the NETWORK from the control panel. It is not an option for him.
I downnloaded and installed the latest drivers.
I have restored the default settings.
How to select the wireless network and enter the WEP key?
All of HP's instructions seem to be for a newer printer with a touchscreen.
I want that the printer is connected to my main computer via the USB port. I want to be able to print wireless phones and tablets.
My 3520 is not a 'touch Screen' and it has wifi.
However, the following work:
Try to open the HP Deskjet 3520 icon, open the utilities tab, click on convert USB wireless, by following the steps on the screen.
This leads me to believe that ONLY the wireless doesn't work. I know now that the part of the sentence "Convert USB to wireless connection" is supposed to mean "works like USB and wireless.
Thank you for your help
-
Select the crop tool, and then select a ratio (based on the name of the file)
I have a lot of files that when I their culture that they need a specific report. Currently, they are stored in the tool.
I wish I could make a shortcut so that it selects the crop tool and the report to the file name. I can understand the file name information.
i.e. Fr10 = a 2:3 Ratio
or
20 = 3:4
There is no need to crop the image simply select the tool.
I found this to select the tool
The beginning is the same.
if (app.documents.length > 0) { var myDocument = activeDocument; var fileNameNoExtension = myDocument.name; fileNameNoExtension = fileNameNoExtension.split( "." ); if ( fileNameNoExtension.length > 1 ) { fileNameNoExtension.length--; } fileNameNoExtension = fileNameNoExtension.join("."); var BrandString = fileNameNoExtension.substr(0,4); } if (/^(FR10|WA35)$/.exec(BrandString)){ var the_x_Ratio =2 var the_y_Ratio =3 }
2016, use it at your own risk.
#target photoshop
If (app.documents.length > 0) {}
myDocument var = app.activeDocument;
var originalRulerUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.PIXELS;
var width = myDocument.width;
var height = myDocument.height;
var rel = 1;
If (myDocument.name.indexOf ("AB10")! = - 1) {var rel = 0,666};
If (myDocument.name.indexOf ("CD10")! = - 1) {var rel = 0.75};
If (myDocument.name.indexOf ("EF10")! = - 1) {var rel = 0.8};
If (myDocument.name.indexOf ("CH10")! = - 1) {var rel = 0,833};
try {}
// =======================================================
var idCrop = charIDToTypeID ('Crop');
var desc3 = new ActionDescriptor();
idT var = charIDToTypeID ("T");
var desc4 = new ActionDescriptor();
var idTop = charIDToTypeID ('Top');
var idPxl = charIDToTypeID ("#Pxl");
Desc4.putUnitDouble (idTop, idPxl, 0);
var idLeft = charIDToTypeID ("Left");
var idPxl = charIDToTypeID ("#Pxl");
Desc4.putUnitDouble (idLeft, idPxl, (width - height * rel) / 2);
var idBtom = charIDToTypeID ("Btom");
var idPxl = charIDToTypeID ("#Pxl");
Desc4.putUnitDouble (idBtom, idPxl, height);
var idRght = charIDToTypeID ('Rght');
var idPxl = charIDToTypeID ("#Pxl");
Desc4.putUnitDouble (idRght, idPxl, (width - height * rel) / 2 + height * rel);
var idRctn = charIDToTypeID ("Rctn");
Desc3.putObject (idRctn, idT, desc4);
var idAngl = charIDToTypeID ("Marko");
Bryan var = charIDToTypeID ("#Ang");
Desc3.putUnitDouble (idAngl, Bryan, 0.000000);
var idDlt = charIDToTypeID ("Dlt");
Desc3.putBoolean (idDlt, false);
var idcropAspectRatioModeKey = stringIDToTypeID ("cropAspectRatioModeKey");
var idcropAspectRatioModeClass = stringIDToTypeID ("cropAspectRatioModeClass");
var idpureAspectRatio = stringIDToTypeID ("pureAspectRatio");
Desc3.putEnumerated (idcropAspectRatioModeKey, idcropAspectRatioModeClass, idpureAspectRatio);
var idCnsP = charIDToTypeID ("CnsP");
Desc3.putBoolean (idCnsP, true);
executeAction (idCrop, desc3, DialogModes.ALL);
} catch (e) {};
//
app.preferences.rulerUnits = originalRulerUnits;
};
Edit: Using the indexOf can be problematic and if-clauses are inelegant, then a switch clause would be probably better.
-
My nail of the thumb in bridge always have evidence the adjustments I make to RAW files. Now, for the first time they have not. However when I select the images adjusted and open them in CS6 adjustments are there. I restarted bridge and PS, and I restarted the computer (Mac). Still the same problem.
I thank assani, but it wasn't the answer. The problem was, I finally understood, that the "option for generation of quality and preview thumbnails" wasn't on "high quality" as it usually is. I have no idea how this happened as I never change this option.
Thanks a lot for your help.
Mitchel Gray
-
I recently installed Adobe Pro XI. I can't select the cloud, polygons and lines connected markup drawing tools. I can see them, but they are greyed out so I am not able to choose them.
I am running Windows 7 64 bit on an Asus ZenBook laptop.
Any help would be really appreciated.
Kind regards
KF Panda
This touchscreen laptop is capable?
If this is not the case, check if you have the Touch preference in Adobe Acrobat active XI. If you, then turn off.
-
Select the criteria - IN and AS?
just a question that I can't understand...
Im running this sql...
Select
*
Of
regardless of the table
where
object_name like '12.02%.
or
object_name IN (' 02.03 test ', ' 02.06 test ', ' 02.07 test ")
order by project
It works but I get an error. ORA - 01652.
Can I use one and the SAME choose?
Basically, I want to get all the object_names who are accurate to a few distinctive names, but want also all object_names which are like 12.02%.
can I use a select statement nested within the IN and select similar?
Published by: Jay on January 18, 2012 11:39Your application works well. The error you are getting is ' ORA-01652: unable to extend temp segment by... in the tablespace... »
I think your "order by" clause made the sort operation using the temp tablespace and it is short of space.
How many lines will have to be returned by your query?
Check with the DBA user to enlarge the temp tablespace.
-
Select the year, current and future year
Hello world
I have the select statement where I want to put the current year and the following year like this: 2011-2012
That's what I have so far, but I do not know how to bring the other party.
I added a when-validate-point trigger and put the following inside:
BEGIN
SELECT (TO_CHAR (SYSDATE, 'YYYY') |) » -'|| TO_CHAR(SYSDATE,'YYYY+1')) IN: SCHOOL_YEAR
FROM DUAL;
END;
Gives me an error on the second tank. Can someone help me on this please?Mayen something like this:
SELECT EXTRACT(YEAR FROM sysdate), EXTRACT(YEAR FROM add_months(sysdate,12)) from dual
François
-
Hello
I'm trying to calculate and history of lack of list based on the details of lack follows.
Here is what I got: (sorry for the dotted lines between the two, I put it just to format the data)
EMP_ID - WORK_DT - PM - REASON - PAID
=====-----=======------===-=====-- -- ====
123---06/01/2009---8.0---malades---PAYE
123---07/01/2009---8.0---malades---PAYE
123---08/01/2009---8.0---malades---PAYE
123---09/01/2009---8.0---malades---PAYE
123---16/01/2009---8.0---FMLA EMP - paid
123---17/02/2009---8.0---malades---PAYE
123---18/02/2009---8.0---malades---PAYE
123---30/03/2009---8.0---jure - paid
123---21/05/2009---4.0---malades---PAYE
123---22/05/2009---4.0---malades---PAYE
123---03/07/2009---8.0---malades---PAYE
123---25/08/2009---8.0---FMLA EMP - paid
123---26/08/2009---4.5---FMLA EMP - paid
123---21/09/2009---8.0---malades---non paid
123---22/09/2009---8.0---malades---non paid
I need to consolidate absences consecutive full day (8 hours) and show Start_dt, End_Dt, and also to calculate the duration of the absence in days, hours, min. If there is lack of half day (single or consecutive) is not followed by 8 hours, then they should be considered as a new incident (5/21 and 5/22). If the absence of half-day is followed by the absence of all day while they should be grouped together (8/25 and 8/26).
So for the data mentioned above the result should look like:
EMP_ID - START_DT - END_DT - DAYS - HOURS - minutes - INCIDENT - REASON - PAID
===---====== ---- ====== -- === - ==== - === - ====== - ====== -- -- =======
123 4 06/01/2009-01/09/2009 - 0---0---1 - disease - paid
123-16/01/2009 1-16/01/2009 - 0---0---2 - FMLA EMP - paid
123 2 17/02/2009-02/18/2009 - 0---0---3 - disease - paid
123 03/30/2009 1-30/03/2009 - 0---0---4 - Jury service - paid
123 21/05/2009 0 - 21/05/2009 - 4---0---5 - disease - paid
123 22/05/2009 0 - 22/05/2009 - 4---0---6 - disease - paid
123 03/07/2009 1-2009-03-07 - 0---0---7 - disease - paid
123-25/08/2009 1-08/26/2009 - 4-30-8 - EMP - paid FMLA
123 21/09/2009-22/09/2009-2-0-0-9 - disease - unpaid
I am able to group them to gether and get start_dt, end_dt and total days, hours as well as incident to help
Work_Dt - Row_Number() over (order of MIN (Work_Dt) and)
Row_Number() (order MIN (Work_Dt)
but it includes absences consecutive half-day (5/21 and 5/22) together as a single incident that should be considered as separate incidents. any idea or help in this case will be a great help.
Thank youStéphane wrote:
I'm trying to calculate and history of lack of list based on the details of lack follows.
As promised:
with t as ( select 123 EMP_ID,to_date('01/06/2009','mm/dd/yyyy') WORK_DT,8.0 HRS,'Sick' REASON,'Paid' PAID from dual union all select 123,to_date('01/07/2009','mm/dd/yyyy'),8.0,'Sick','Paid' from dual union all select 123,to_date('01/08/2009','mm/dd/yyyy'),8.0,'Sick','Paid' from dual union all select 123,to_date('01/09/2009','mm/dd/yyyy'),8.0,'Sick','Paid' from dual union all select 123,to_date('01/16/2009','mm/dd/yyyy'),8.0,'FMLA EMP','Paid' from dual union all select 123,to_date('02/17/2009','mm/dd/yyyy'),8.0,'Sick','Paid' from dual union all select 123,to_date('02/18/2009','mm/dd/yyyy'),8.0,'Sick','Paid' from dual union all select 123,to_date('03/30/2009','mm/dd/yyyy'),8.0,'Jury Service','Paid' from dual union all select 123,to_date('05/21/2009','mm/dd/yyyy'),4.0,'Sick','Paid' from dual union all select 123,to_date('05/22/2009','mm/dd/yyyy'),4.0,'Sick','Paid' from dual union all select 123,to_date('07/03/2009','mm/dd/yyyy'),8.0,'Sick','Paid' from dual union all select 123,to_date('08/25/2009','mm/dd/yyyy'),8.0,'FMLA EMP','Paid' from dual union all select 123,to_date('08/26/2009','mm/dd/yyyy'),4.5,'FMLA EMP','Paid' from dual union all select 123,to_date('09/21/2009','mm/dd/yyyy'),8.0,'Sick','Unpaid' from dual union all select 123,to_date('09/22/2009','mm/dd/yyyy'),8.0,'Sick','Unpaid' from dual ) select EMP_ID, MIN(WORK_DT) START_DT, MAX(WORK_DT) END_DT, TRUNC(SUM(HRS) / 8) DAYS, TRUNC(MOD(SUM(HRS),8)) HOURS, MOD(SUM(HRS),1) * 60 MINs, INCIDENT, REASON, PAID from ( select EMP_ID, WORK_DT, HRS, REASON, PAID, sum(start_of_incident) over(partition by EMP_ID order by WORK_DT) INCIDENT from ( select t.*, case when lag(WORK_DT,1,WORK_DT) over(partition by EMP_ID order by WORK_DT) = WORK_DT - 1 and lag(HRS,1,8) over(partition by EMP_ID order by WORK_DT) = 8 and lag(REASON,1,REASON) over(partition by EMP_ID order by WORK_DT) = REASON and lag(PAID,1,PAID) over(partition by EMP_ID order by WORK_DT) = PAID then 0 else 1 end start_of_incident from t ) ) group by EMP_ID, INCIDENT, REASON, PAID order by EMP_ID, INCIDENT / EMP_ID START_DT END_DT DAYS HOURS MINS INCIDENT REASON PAID ---------- ---------- ---------- ---------- ---------- ---------- ---------- ------------ ------ 123 01/06/2009 01/09/2009 4 0 0 1 Sick Paid 123 01/16/2009 01/16/2009 1 0 0 2 FMLA EMP Paid 123 02/17/2009 02/18/2009 2 0 0 3 Sick Paid 123 03/30/2009 03/30/2009 1 0 0 4 Jury Service Paid 123 05/21/2009 05/21/2009 0 4 0 5 Sick Paid 123 05/22/2009 05/22/2009 0 4 0 6 Sick Paid 123 07/03/2009 07/03/2009 1 0 0 7 Sick Paid 123 08/25/2009 08/26/2009 1 4 30 8 FMLA EMP Paid 123 09/21/2009 09/22/2009 2 0 0 9 Sick Unpaid 9 rows selected. SQL>
SY.
Maybe you are looking for
-
update my current get the new OS 3 Apple Watch
update my current get the new OS 3 Apple Watch
-
P7-1234 Pavilion: I have a p7-1234 Pavilion and want to upgrade the video card.
I have a p7-1234 Pavilion and want to upgrade the video card. I am currently the EVGA GeForce GT 610 2048 MB GDDR3. This card will work with it?
-
X 360 spectrum: Spectrum X 360 Windows 10 graphics card compatibility
I received my 'get windows 10' Microsoft command prompt has shot to the top of the app. When I chose to check my PC, I have been informed that the graphics card (Intel HD Graphics 5500) was not fully compatible with the new operating system. Do we kn
-
recover the original bone broke my operating system recovery cd.
I bought my laptop with original os(windows xp). But now my system is completely affected by the virus and broke my cd of restoration of the operating system. How can I get original os?
-
I got this warning message. what it means?