How Do I display current date and time in Toad for Oracle?
-
I have a sql statement that counts the units(cable boxes) that were refurbed(had damaged parts replaced) and total units(cable boxes that just went through refurb and had nothing replaced) and its supposed to do this count regularly, (every time a unit is processed the count). Can someone please help me? Thank you. Justin Heres my sequal code so far: SELECT COUNT(*) FROM cxadminn.repair_part WHERE repair_type = 'REFURB' and created_date >?
-
I have a sql statement that counts the units(cable boxes) that were refurbed(had damaged parts replaced) and total units(cable boxes that just went through refurb and had nothing replaced) and its supposed to do this count regularly, (every time a unit is processed the count). Can someone please help me? Thank you. Justin Heres my sequal code so far: SELECT COUNT(*) FROM cxadminn.repair_part WHERE repair_type = 'REFURB' and created_date >?
If you want to get the current date including time you use SYSDATE. For example:
SELECT SYSDATE FROM dual;
But I don't know why would you put SYSDATE in place of the question mark unless you have rows in the table where created date is in the future?
The need to optimize rises from a bad design.My articles[^]
-
I have a sql statement that counts the units(cable boxes) that were refurbed(had damaged parts replaced) and total units(cable boxes that just went through refurb and had nothing replaced) and its supposed to do this count regularly, (every time a unit is processed the count). Can someone please help me? Thank you. Justin Heres my sequal code so far: SELECT COUNT(*) FROM cxadminn.repair_part WHERE repair_type = 'REFURB' and created_date >?
-
I have a sql statement that counts the units(cable boxes) that were refurbed(had damaged parts replaced) and total units(cable boxes that just went through refurb and had nothing replaced) and its supposed to do this count regularly, (every time a unit is processed the count). Can someone please help me? Thank you. Justin Heres my sequal code so far: SELECT COUNT(*) FROM cxadminn.repair_part WHERE repair_type = 'REFURB' and created_date >?
SELECT current_date FROM dual; or SELECT SYSDATE FROM dual;