Simple "If" statement which turned bad!
It is the simplest display far more likely for this forum. I have the following:set serveroutput ON SIZE 1000000
set heading off
set feedback off
set trimspool off
set echo off
set pagesize 0
Declare
v_date varchar2(20);
Begin
select to_char(SYSDATE, 'Day') into v_date from Dual;
dbms_output.put_line('The date is: ' || v_date);
Begin
if v_date = 'Friday' Then
dbms_output.put_line('Execute Weekly Accumulative Of Donation');
else
dbms_output.put_line('Execute Daily Donation');
end if;
End;
End;
I have test some simple logic for a change I have to do. And, I do not understand why else branch is being chosen on the if statement. Today is Friday where I am. I'm using a to_char SYSDATE function, so it seems that the varchar2 (20) T_DATE is correct. Help!
Use
select to_char(SYSDATE, 'fmDay') into v_date from Dual;
http://download.Oracle.com/docs/CD/E11882_01/server.112/e10592/sql_elements004.htm#CDEHIFJA
Tags: Database
Similar Questions
-
installation of Windows 7, which turned bad
OK, so I installed windows 7 on my computer of gateway to friends. as a first step, I get an error message saying that there are missing files. don't have a lot of attention to it. I have therefore quit and tried again. everything seemed to work correctly, he did nearly 70%. then I left the House came to the pc being stuck on the system recovery options.
then he asks me a password after you type, need me to the menu which none of the options work any help.
http://social.answers.Microsoft.com/forums/en-us/w7install/threads
"Download Windows 7 installed and activated on your PC."
They will help you in the Windows 7 Forum at the above address.
For any question on Windows 7:
http://social.answers.Microsoft.com/forums/en-us/category/Windows7
Link above is Windows 7 Forum for questions on Windows 7.
Windows 7 questions should be directed to the it.
You are in the Vista Forums.
See you soon.
Mick Murphy - Microsoft partner
-
Hi - I'm back.
I have a header image in my model that I traced to the links in the menu.
One one page, I have an image that covers the entire page, I want to map, as well.
The header mapping seem to have himself implanted on the image on the page. I don't know why this is happening.
First of all, I made the image map with success in the model. At this time, I just had the image, I tried to page "home.html" on the page, with no mapping. It was working fine. Then I started to add the image to the image on "home.html", and I found that all of a sudden the top 5 or 6 links to map from the home page itself was located on the header on the template image. If none of the original links I had traced in the model worked. So I removed the map on the home page, and then mapping started working again on the image of the model for all the pages again. But now the header mapping is also on the image that is on the home page.
My files:
Take a peek...
>
> http://webpages.charter.net/lruiz/axlegrease/templates/ag-template.dwt
> http://webpages.charter.net/lruiz/axlegrease/style.css
> http://webpages.charter.net/lruiz/axlegrease/home.html
>
I tried to start over with the home page, but it's the same thing. I called a different name to each card. What else can we?
Thank you
Your cards are named the same. Give them different names, and then create the links for the various cards
banner6.jpg is coded to use well = "#map."
record655.jpg is coded so as to also use well = "#Map."I suggest to change BOTH names
banner6.jpg I would appoint the well to banner6
and
record655 I would appoint the well to record655so you know who's going with what is but I don't know what a banner 6 I'm assuming this is your graphics to header that you have used a program so cut out a design and that's the name of the program has chosen for the file. I would call it header.gif so that others know that it is the header.
-
If then the clause for a simple select statement.
Good afternoon
I'm sure this will be really simple for a person: I have three paintings that I need to access it in a simple select statement. However, I need to make two separate petitions by a field has an entry or not. Here is the code I wrote so far. It is only to retune the ELSE part, which means that I know I'm close, but I know I'm missing something incredibly simple and boring for me right now.
IF common_event.efeanme IS NULL THEN SELECT a.num_1 AS "EVENT NUMBER", CONCAT(CONCAT(CONCAT(CONCAT(SUBSTR(a.cdts,5,2), '/'), SUBSTR(a.cdts,7,2)), '/'), SUBSTR(a.cdts,1,4)) AS "EVENT DATE", CONCAT(CONCAT(c.xstreet1, ' / '), c.xstreet2) AS "EVENT LOCATION" FROM common_event c JOIN agency_event a ON c.eid=a.eid JOIN disposition_type d ON a.ag_id=d.ag_id WHERE a.ag_id='JCSO' AND a.lev3='JC3' AND a.cdts BETWEEN '20140701' AND '20141001' AND d.tycod='CIT' ORDER BY a.num_1; ELSE SELECT a.num_1 AS "EVENT NUMBER", CONCAT(CONCAT(CONCAT(CONCAT(SUBSTR(a.cdts,5,2), '/'), SUBSTR(a.cdts,7,2)), '/'), SUBSTR(a.cdts,1,4)) AS "EVENT DATE", CONCAT(CONCAT(CONCAT(CONCAT(CONCAT(CONCAT(c.estnum, ' '), c.edirpre), ' '), c.efeanme), ' '), c.efeatyp) AS "EVENT LOCATION" FROM common_event c JOIN agency_event a ON c.eid=a.eid JOIN disposition_type d ON a.ag_id=d.ag_id WHERE a.ag_id='JCSO' AND a.lev3='JC3' AND a.cdts BETWEEN '20140701' AND '20141001' AND d.tycod='CIT' ORDER BY a.num_1; END IF;
If I run a query on its own, it works as expected. Which means that I don't get something right (in my opinion) in my CASE SO the ELSE clause. As I said, it's probably something so simple I forget only she, but I better ask for a direction somewhat see where I'm going to do it right.
Thanks in advance for any guidance.
Tony
Cant you just do:
SELECT a.num_1 'EVENT NUMBER. "
Concat (Concat (Concat (Concat (substr (a.CDTS, 5, 2), ' / '), SUBSTR (a.cdts, 7, 2)), ' / '), SUBSTR (a.cdts, 1, 4)) AS 'EVENT DATE ',.
-case when c.efeanme IS NULL
then CONCAT (CONCAT (c.xstreet1, ' /'), c.xstreet2)
of another CONCAT (CONCAT (CONCAT (CONCAT (CONCAT (CONCAT (c.estnum, ' '), c.edirpre), ' '), c.efeanme), ' '), c.efeatyp)
end AS 'EVENT ADDRESS'
OF common_event c
JOIN THE
agency_event one
WE c.eid = a.eid
JOIN the disposition_type d
ON a.ag_id = d.ag_id
WHERE a.ag_id = 'JCSO.
AND a.lev3 = 'JC3.
AND a.cdts BETWEEN '20140701' AND '20141001'
AND d.tycod = 'CIT '.
ORDER BY a.num_1
Concerning
Etbin
Deleted AND c.efeanme IS NULL
-
Time Capsule A1355 no light, no sound? worked this morning now after connecting it, first green light solid, quickly followed by amber is more solid, which turns off and then nothing? I'm not in the airport or if directly connected to the Macbook air utility. It is running the latest firmware, updated 7 days ago and everything was fine until now. Tried both a soft and a hard reset factory but still nothing, but the same brief glow only after restarting each time before going dark again? Any ideas if it can be fixed or if it's as I read elsewhere dead now?
Thank you
Any ideas if it can be fixed or if it's as I read elsewhere dead now?
He died... the fact that the main witness turns off is unusual in this model.
It is common to the next... A1409 (gen4)
What happens in the Gen3 is normally a few deaths on the Board... or a bunch of capacitors is low...
If yours is a very fine introduces Gen3 just before Gen 4, it is possible that the same fix on the Gen 4 could work.
I found early Gen4 may fail as Gen3 but must admit that I am yet to see the Gen3 with welding problems.
I doubt repair is worth it. The Gen3 is now about 6 years... give or take... This is way beyond the standard lifetime of a TC.
If you want to play, I'm happy to help you... but I would not spend money on it.
-
my iMac which turns almost everytime I click. What could be causing it?
My iMac which turns almost everytime I click or type a few words. What could be causing it?
Check with EtreCheck for
and post it here.
-
Computer changing state name turns to numbers
I am a machine to States and my case titles are nominated by an enum. I realized that I had several States doing the same thing, I condensed them and now I have about 8 States with code and 8 States which never get referenced. I also want to rename the only ive condensed. The problem is that when I try to change the name, the securities become red. If I try to change the original enum, it allows all the State titles in their number (1-16). Ive read something about the typedefs and I know the than mine are not. Which is the problem or is it something else? Sort easily fix this? The labview 8. I don't have my program available, but if it can help that much, I can add it in future. ~ Matt
To create a typedef from scratch, you can go to file-> New and select the custom control. Change the type of control control of typedef or strict typedef.
If you use LV2011, you can right click on your constant enum and choose make Typedef. If not, then change one of your constants (an old you have not changed the elements for) for a control or the indicator (context menu). Go to the control or the indicator on the front panel, right-click and choose Advanced Options-> Customize. The enum is open in a new window. Change the type of control to typedef or strict typedef. Save and replace the control or the indicator. Go back to the block diagram and return to a constant. On each other constant, right-click and choose replace with and select your new typedef. Make sure that the values do not change.
Once replaced all enums, modify the typedef to the desired values.
-
Windows 7 does not support fdisk more is what im saying. y at - it another program which marks bad sectors on the hard drive, so I can continue to use my hard drive?
OT:
Fdisk
Hello
Running checkdisk (chkdsk) will mark bad sectors. Utility of these manufacturers
It will be even better.Check the hard disk for errors, health, bad sectors in Windows 7 / 8 / 10
http://www.thewindowsclub.com/check-your-hard-disk-for-errors-in-WindowsBad sectors explained: why hard drives get bad sectors and what you can do about it
http://www.howtogeek.com/173463/bad-sectors-explained-why-hard-drives-get-bad-sectors-and-what-you-can-do-about-it/The manufacturer Diagnostic utilities.
(The old 302602 links isn't now valid for Diagnostics links).
Manufacturer diagnostic utilities - run one to your hard drive
http://www.techsupportforum.com/hardware-support/hard-drive-support/462298-no-IDE-device-found.htmlCorrected list dated 06/09/2010
Fujitsu hard drives: utility of diagnosis here
http://www.Fujitsu.com/EMEA/products/HDD/Hitachi hard drives: utility of diagnosis here
http://www.HitachiGST.com/support/downloads/IBM hard drives: use Hitachi utility *.
Toshiba hard drives: use Hitachi or Maxtor utilities
Maxtor hard drives: Diagnostic Utilities here (now SeaGate)
http://www.Seagate.com/www/en-us/support/Quantum hard drives: use the Maxtor utilities
Seagate hard drives: here Diagnostic utilities
http://www.Seagate.com/www/en-us/support/downloadsConner hard drives: use the Seagate utilities
Hard drives Samsung: utility of diagnosis here
http://www.Samsung.com/global/business/HDD/Hard drives Western Digital: utility of diagnosis here
http://support.wdc.com/product/download.asp?lang=en
Trial versions of one of these 'might' help.SpeedFan
http://www.almico.com/sfdownload.phpHD Tune
http://www.hdtune.com/I hope this helps.
--------------------------------------------------------------------------------------------
Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">-> -
There are two select statement, which are as follows: 1) select project id, the name of ppm.pm_projects project_name and request_id 2) select id, name from request_type_name to kcrt_request_details. There is a column called entity that can store a value i.e. project or request. I want to write a select statement containing a condition that is if the entity name is project and then run the select statement 1 otherwise, if the name of the entity's request, then run the select statement 2. All this must be written in a select statement. Can someone help me how to write this select statement type.
Hello
Hello
2726057 wrote:
... There is a column called entity that can store a value i.e. project or request. ...
In which table is this column? Assuming that it is in a table called entity_table, you can do something like this:
SELECT project AS id
project name AS the name
OF ppm.pm_projects
WHEN THERE IS)
SELECT 1
Of entity_table
Entity WHERE = "Project".
)
UNION ALL
SELECT request_id ID
request_type_name AS name
OF kcrt_request_details
WHEN THERE IS)
SELECT 1
Of entity_table
Entity WHERE = 'ask '.
)
;
This does not have anything on the number of lines is entity_table, or what are the values in the column of the entity. In other words, the query works in all cases. If any line in entity_table entity = 'Project', then the pm_projects data will be included in the result set. If any line in entity_table entity = 'Request', kcrt_request_details data will be included.
I hope that answers your question.
If this isn't the case, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum: https://forums.oracle.com/message/9362002#9362002
-
I pay for Creative Cloud [twice] already but when I installed Photoshop cc press 'BUY NOW' which is bad for me?
Please try the following steps to resolve this problem:
- Rename the folder SLCache in SLCacheold, present at the following location:
Windows: C:\Program Files (x 86) \Common Files\Adobe
Mac: System/Library/Application Support / Adobe
- Rename SLStore file toSLStoreold, present at the following location:
Windows: C:\ProgramData\Adobe
Mac: System/Library/Application Support / Adobe
3 Rename the OOBE OOBEOLD folder
Windows : C:\Users\User name\AppData\Local\Adobe
MAC: ~/Library/Application Support/Adobe
Later, please try: connect and disconnect activate Cloud Creative applications
Moreover, I recommend to contact customer service and cancel your subscription.
Kind regards
Rahul
-
Simple Insert statement does not
This problem is just driving me crazy. I don't know what I'm doing wrong here. The code works fine on my localhost, but gives the problem on the site online. It's a simple insert like this:
insert into tblSubImages (productid, title, subdescription, image, location) values (#form.productid #, ' #form.title #',' #form.subdescription #',' #uploadedimage # ", #form.place #")
The error I m to looks like this:
Syntax error in INSERT INTO statement.
The error occurred in D:\Hosting\davedhillon\superprinters\admin\addaditional.cfm: line 11
9: < cfset uploadedImage = cffile.serverfile >
10: < cfquery name = "insertadditional" datasource = "#super.dsn #" >
11: insertion in values(#form.productid#,'#form.title#','#form.subdescription#','#uploadedimage#') tblSubImages (productid, title, subdescription, image)
12: < / cfquery >
13:
--------------------------------------------------------------------------------
SQL insert into values(1,'ewr','werw','FamilyRoomBedroom.jpg') tblSubImages (productid, title, subdescription, image)
Davedhillon_accesscf_super DATA source
VENDORERRORCODE 3092
You can see that it is the simple insert statement that I worked with so many times. Why he started giving problems all of a sudden?
Thank you'Image' can be a reserved word. What happens if you do this?
insert into tblSubImages (productid, title, subdescription, [image])
values (...) -
FF10. Whenever I try to download a file, it blocks the transaction with a Ribbon of Windows Internet Explorer style in the upper part of the window. It's very annoying. How do I turn it off? I can't browse 700 + feedback on the help search.
I can't now to reproduce the problem. It seems to have disappeared on its own. She gave me a small strip in the upper part of the window below the menu bar of Firefox. I think the banner said "Firefox has blocked a website tries to download a file on your computer" and there is a button on the right marked "allow." I thought that there was a framework for that somewhere and the other to block redirects and now I can't find neither. I got v.9.0 and he auto-mis to day to 10.
-
a simple select statement once again
What is the meaning of the one below select statement, pay attention to (sysdate + 1.1)
Select (sysdate + 1.1) of the double
Hello
a_cute_person wrote:
Lo, seriously, dude you do not make to_char thing, when I select sysdate, sysdate + 1.1 double I see clearly there is time change, I wanted to know what the weather has changed when I do sysdate + 1.1, and why there is no change in time sysdate + 1. hope you have the hand on what I ask
Understand this:
When you add 1 to SYSDATE, a full day is added. So, if the current time i.e. SYSDATE is January 22, 2015 16:55 ', by adding 1, it will be named January 23, 2015 16:55 '. Simple.
But, 1.1 means one-tenth day and fractional hour comes in picture.
Yes, day 1.1
= 1 + 1/10 of the next whole day
= 24 * 60 * 60 seconds + (1/10) * 24 * 60 * 60 seconds
and here the time portion changes.
HTH.
-Nordine
-
I can't for the life of figure me this! I will satrt with, I'm quite new to this, but I cannot creat fields and change them. However, every time that I try to do the simple math with "value is" window I run and things seem fine until I have set other fields of the form to calculate as well. And then the previous fields are stripped.
I am eager in the upper part, "Subtotal" = ('Fare by night' x 'Tax')
So I want to 'Total' = ('subtotal' x 'number of nights')
So I want to on the bottom:
"Subtotal" = (90.00 + 30 + 30 + 30 + 30 + 30 + 30 + 30)
'Tax' = ('subtotal' x 'tax')
'Total' = ("[top] Total '+' [the bottom] subtotal +"Tax"+" Svc fairy")
I had change them the properties and calculated, but still they keep getting foires or not even close. I know I can find dumb, but I need help.
Thank you.
Please help me!
The first thing you need to do is to ensure that the order of computation of field is correct. Exactly how do you this depends on which version of Acrobat you have. First of all go in form editing mode. In Acrobat 9, you must then select: forms > edit fields > set field calculation order
In Acrobat 10, select: other tasks > edit fields > set field calculation order
-
simple if statement for a checkbox
Hello
Hello, I need help with little code to do the following: Add an if statement to a box, which makes the box to check only if 2 other checkboxes are checked... any help would be appreciated...
And where I would place the code on the condition "the mouse upward?
Thank you
Have you thought about what measures will cause the values of these 2 other checkboxes to check?
If you set a field read-only, then we can't enter data into it. The calculation, validation and format actions will be processed but no other action of the field will be processed.
If a user ignores this box either on purpose or because it is read only no action for this box will be processed. There is no action to calculate, format or a validation check box.
You need a script for each of the other 2 boxes to tick to perform this task, and I would choose the mouse upward to action.
As I will use a common code for 2 or more fields, I'll use a JavaScript document level to run the shared code, then call this function in each of the boxes for mouse action and change the settings of functions according to the needs.
The document level function:
function AllChecked (aFields) {}
Verify if all the fields do not have a value of "Off".
logical consequence of the test
var bResult = true;
field processing
var cValue;
fields of process
for (i = 0; i< afields.length;="" i++)="">
get the value of the field to treat
cValue = this.getField(aFields[i]).value;
Set the logical result test of the value of the field does not match 'Off '.
bResult = bResult & cValue! = 'Off ';
} / / end of loop for treatment fields
Return bResult;
} / / end of function AllChecked
Assuming that you have 3 check boxes named "Check Box1", 'Check Box2', 'check Box3'. and 'Check Box3' will be editable if both "Check Box1" & 'Check Box2' have been verified. The "Mouse Up" action for "Check Box1" would be: "
given that the AllCehcked function returns the logical value true if all fields are checked
take the logic not the result to set the ROLE property.
this.getField("Check_Box3").readonly = AllChecked ([event.target.name, "Check Box2"]);
And the same action to "Verify the Box2" would be:
given that the AllCehcked function returns the logical value true if all fields are checked
take the logic not the result to set the ROLE property.
this.getField("Check_Box3").readonly = AllChecked ([event.target.name, "Check Box1"]);
Maybe you are looking for
-
Adding features Bluetooth to a computer
My computer is running Windows 7. In Device Manager, I know that my computer doesn't have Bluetooth capabilities. Should what steps I take in order to add the Bluetooth on my computer? Can I just plug a Bluetooth adapter on my computer and go from th
-
How connected as an administrater?
I don't know that how administrator?Please help me
-
you find my cookies file clean.
Told me to empty my cookies, nine with a comp. and I cannt find file, do not look
-
Computer goes into hibernation during defragmentation
It's completely baffling to me. I have a desktop PC Windows 7 I tried to defrag for quite awhile. No matter what I put in the power options to disable computer locking settings, the computer will still mode "sleep" during defragmentation. I tried t
-
DELL STUDIO 1737 computer LAPTOP (Vista) ADAPTER BLUETOOTH MODULE CONNECTION
I am a novice, try to connect to Bluetooth through my laptop Dell 1737 (Vista) devices. I get no response since the adaptation material internal BLUETOOTH module to launch its software for pairing/connecting bluetooth devices. (1) the PC has a Broadc