a drawing space on a simple IF statement with the statement Select
HelloI'm writing an IF statements as such
Val1 IF (select x from tbla) then
to do this
on the other
do this
end if ';
Is it possible to have a select line on the IF condition?
Version 11.1.0.7
The Gunners wrote:
HelloI'm writing an IF statements as such
Val1 IF (select x from tbla) then
to do this
on the other
do this
end if ';Is it possible to have a select line on the IF condition?
Version 11.1.0.7
No, but you can do something like that as easily.
declare
l_count number(1);
begin
select
count(*)
into
l_count
from
dual
where exists
(
select
null
from
table_name
where col_name = val
);
if l_count > 0
then
....
else
...
end if;
end;
/
Tags: Database
Similar Questions
-
How can I create a simple virtual machine with the CD in a newWorkflow
I created a new workflow with simple virtual machine and added a cdrom workflow but an error is shown.
How can I reuse of so that the new created VM add a new cdrom in a workflow
Help me please
First of all, you only need a single attribute of type VC:VirtualMachine, not two as in the screenshot. You don't need to specify its value; When the first workflow completes, its output should be attributed to this attribute, and then the assigned value must be passed as input to the second workflow.
To check/edit links, open the first workflow to change, go to the 'Visual links' tab and make sure the workflow output is line connected to the attribute. Do the same for the second workflow, and then make sure that the attribute is connected to the line to the corresponding input parameter.
Take a look at the workflow attached if you don't know how the maps should look like.
-
CC Simple wire coupled with the stab of class
Hello
I'm new to after effect and I encounter a problem.
Following a few pixels on the sensor in a camera, I applied the filter CC effi ciency terrible to remove them easily.
Despite the power of this filter I encounter a problem with stabilization of deformation, view this effect a deformation of the video to the four piece, the simple CC filter am not dust (normal is a fixed point)
Can you it "disastrous" to filter CC Simple to follow the class applied by that strain stabilization?
Thank you very much!
I'm not quite clear what you're asking, but you would just dial before the kidnapping of the son and apply any stabilization in the parent model.
Mylenium
-
Simple for loops with the table?
Just a quick question! I've been watching this for 2 hours and I searched everywhere, but always without success.
I have a simple table containing elements. When the user edits the page, I want that these elements in the array to become visible.
var outfit:Array = ["Doll.Drawers.Shirt1", "Doll.Drawers.Pants1", "Doll.Drawers.Jacket1"]; function f_item_show(event:MouseEvent):void { for(var i:int = 0; i < outfit.length; i++) { trace(outfit[i]); this[outfit[i]].visible = true; // THIS IS THE ISSUE // } }
The elements in the array are strings of the instance names, so I just need each string to be converted to an object and part .visible each element set to true.
I know my loop works properly, because the trace reads accurately each instance name in the list. I thought that this part [] would solve my problem, but it's not... I get this error message:
TypeError: Error #1010: A term is undefined and has no properties. at PokeDress_fla::MainTimeline/f_item_show()
I know it's one line of code, because it works perfectly when I delete. All my instance names are correctly labeled and added, because they are used many times in the code without flaw.
What I am doing wrong?
To use the stand of notation, each medium can only represent a single object, so you would need three media since there are three objects in your channel... which means you would need three tables.
If they appeal to target something inside the Doll.Drawers object, then you could simply store the shirts and pants and whatnot in the table as strings and use...
Doll.Drawers [outfit [i]] .visible = true;
What you should try instead is to store the actual paths to objects rather than representations of string of them, as in...
var outfit:Array = [Doll.Drawers.Shirt1, Doll.Drawers.Pants1, etc...
Then you should be able to use...
costume [i] .visible = true;
-
Simple pop-up with the Menu Options
Greetings,
I create an application that monitors the MicroSD card to a file. I have the application auto-start and an alert is triggered when a well-named file is changed.
What I want to do, is any application that they are currently using, I want a popup window to be displayed with a small text and then have several options they can choose as 'Upload', 'Email', 'Delete', etc.
I did most of the coding without a user interface, but I'm having a hard time looking for the correct terms to give me the kind of UI I am looking.
If someone could just provide the kind of UI I describe or point me in the right direction. I tried the sample applications Blackberry and I was unable to find what I was looking for.
Thank you
Jeff
You want to create a subclass of PopupScreen and push this global modal to get over other applications.
See PopupScreen and UIApplication.pushModal)
-
Is there a space function to identify a polygon with the Lat/Long data
Gurus,
Can anyone of you let me know if there any spatial function to identify a polygon for the given latitude & longitude.
Yes... with the latitude & longitude entry would get the polygon that has this latitude & longitude.
Please let me know as soon as POSSIBLE, if one of you knows about it...
If you know, please provide me with the syntax.
Thank you and best regards,
Kiran kristelleAssuming that the qs, is how to do a point-in-polygon query (i.e. find what polygon contains a specific point) you would use sdo_anyinteract.
for exampleSelect polygon_id from polygonTable a, point p where
p.Point_id = 1 and sdo_anyinteract (a.geom, p.geom) = 'TRUE';or
Select polygon_id in the polygonTable where
sdo_anyinteract (geom, sdo_geometry (2001, 8307, SDO_POINT (, , null), null, null) = 'TRUE') -
provisiond data store space does not match with the space of the VMs
Hi guys,.
I have the particular phenomenon on my cVenter environment. Space brought into service on data warehouses does not correspond with the really used capacity of the virtual machines.
Details:
VCenter: VMware vCenter 6.0.0 3634793
ESXi: ESXi 5.5.0, 3568722
Storage: The Netapp Cluster Mode
NFS data warehousesVirtual machines allocate more space such as assigned. It could be 100% more space. There are no files that are responsible for this in the data store. We have allowed efficiency of storage which means on the Netapp deduplication.
In the opinion of vCenter - the data store has a provisiond about 1 TB space and really about 550 GB space (space of each unique virtual machine).You know this problem or something like that?
Best regards
Thanks for your replies, but it's a feature of Netapp called fractional reserve.
This reserved feature 0% or 100% of the space.
Has anyone experiences with the option of fractional reserve and volumes NFS for ESXi? What is the best value for this?
Romano
-
I can't move the anchor points on a shape, I've drawn with the pen tool. There are also small circles with a point in them (think focus), who they are and they are part of my problem? If I open a new document and draw randomly everything is good, no anchor and focus points behave.
Bubble icons are the widgets corner. You can drag inward to round the corner. They are not part of your problem. If you want to hide them, select view > hide corner Widget. I have a hotkey defined for this menu item.
If you see multiple bullseyes, you may have your set with the shape selected, that would prevent you from being able to move individual anchor points. Deselect the shape first, and then move the anchor with the direct Selection tool.
-
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 (...) -
With the help of my Macbook Pro I did accidentally Ask.com my search page when I opened Firefox last week. I wanted to restore to my original logon page. Try to delete it seemed impossible so I tried of are they more important than the page back to the original with an address bar in the upper left corner and a bar (Google) search in the upper right using mozilla somehow. Unfortunately Mozilla Addons page now opens when I click on firefox. These modules can be very useful in the future, but I'm not to bother with them now. I would like to now how to remove this page so that it is not open and restore what I had before. P.S. I had to try to eliminate Ask.com according to the instructions... with pictures even. Hard to find for Apple.
virginiakropas said
Thanks for the info on default, jscher2000. He worked almost exactly as I wanted and although it is not a search bar in the right corner, I'm happy. It also seems to solve most of the malware download. I am allowed to open with Word (docx) and preview (jpg). Only the pdf must be saved, but I can name and put it where I want to find easily to remove.
I'll keep your last email to refer to when I check Add-ons, etc. Thank you very much. It now seems ridiculously simple. Thanks to you and the support of Mozilla.
Virginia
-
App - small on screen drawing space?
Hello, I wrote a drawing application. All over the screen is used as the design with the exception of a small area at the bottom of the screen and a small area on the side of the screen. These small areas contain buttons for the different options in my application.
I'm a little confused about the uses and what exactly these sweeping gestures are leaving the app, minimize application etc... I want to know if there's a chance that when the user is "drag" his finger draw the app will be released because a gesture of exit app event will be dispatched.
There are some areas that I should turn off the drawing canvas?
BONE scan gestures are recognized on the bezel (not the screen).
You should be able to use the entire screen without any problems.
-
How is - what cut you a rectangle in 2 colors with a diagonal from top to bottom? Once I draw a diagonal with the online tool I am at loss to create 2 color split?
Rosemary,
A simple way would be to:
(1) give the rectangle a color, then Ctrl > Cmd + C + F;
(2) use the direct Selection tool, and then deselect (click and empty space), then click on the opposite corner to the part where you want to keep the color, then press DELETE, then change the fill color to the other.
Or, you can ClickDrag with the line tool along the diagonal line from corner to corner (guides are your friends), select it all and Pathfinder > divide, then select live from the triangle where you want to change the color and change.
-
Drawing line with the mouse clicks on picture indicator
Hello
I need to import a JPG file in an image control, draw a line in 2 clicks, read bothe XY positions and perform some basic trigonometry. Any simple or striaghtforward way to draw the line with the mouse and read thos passay on the bitmap (positions relative pixel)?
Thanks in advance,
-
How do I know the tab selected in spaces web center?
Hello
I have different tabs on the main page as Abc, Def, home, etc... On each page there are SQL queries based on a variable binding. This binding variable value is given by a selectonechoice component which is present above all the tabs. Now when I change the value in the tab component selectonechoice inside components fires and display the updated data. I'm releasing components integrated into the tabs using contextual events. Everything works fine, but when I changed the value of the component of selectonechoice all events fire and all the tabs of SQL queries are run and it takes so long for data update (a big performance issue). I thought that if I know the tab selected, I trigger the contextual events in this tab. Can someone help me how do I know the tab selected in webcenter spaces. I know in adf we have disclosureListener for help that we know of the selected tab. But in Webcenter spaces the sideBarItem (who resembles showDetailItem ADF) is not disclosureListener. How to overcome this problem? Can someone help me.
Thank you
Ashok.
Hello.
You can try one of the many possible solutions:
--------------------------------------------
(1) activation of the workflow
My suggestion is that you must configure property activation of your task flows in the pageDefinition.
When you click a tab, you need to reach in a selected tab variable and use it in an EL Expression in the activation property.
With this strategy and then the workflow will only be 'living' when the tab is opened.Don't forget that you can change the WebCenter Pages using it is an editor in the Admin or export / import in the MDS.
--------------------------------------------
(2) avoiding the execution of the application during the initial rendering
You can configure your iterators used in your TF with RefreshCondition #{! adfFacesContext.initialRender} he can stop running a query for the first rendering of the page
(3) try childCreation panelTabbed property lazyUncached
(I'm not 100% 2) or 3) may be your solution. Try them in any case and let us know the feedback.
If you get STUCK in one of the solutions, I'll try to help you.
In the meantime, I'll thing if there is nothing simpler.
Kind regards.
-
Need help with the use of GROUP BY in a select statement UNION
I am writing a query that allows to combine a legacy system that interfaces it is trial balance in the Oracle of R12 GL. It was only meant to continue for a month or two, but it is likely to continue for 6 months. Please Auditors Auditors, to provide proof that the system is in balance with Oracle GL. By my verification requirements, I need to make a full reconciliation from the month of conversion (life in the amount of date), then PTD for each month.
The legacy account is placed in attribute1 on the lines of the journals. Uses of the old system balancing segments that are also used on the platform in Oracle for this division, i.e., Procure-to-Pay has been cut over Oracle, but not everything yet. So, I can't count on the GL_BALANCES table for the info, I get from the JE_LINES.
My problem is not the only request for the month. But when I try to combine the queries with a Union, to aggregation of each measurement period in its own column, the group is necessary after each selected instruction rather than allowing me to put at the end of the UNION. (When I put the group by at the end of the UNION, I have the 'not one group' function)
So I get duplicate for each month of discrete measure accounts. When I duplicate in my Oracle database accounts, I can't count on the VLOOKUP function in excel to exactly match an account of inheritance. I know there are more sophisticated ways to provide this output, but I'm hoping to get this info in a simple query.
Thank you in advance for any advice you can provide
Example of data output (the goal for me is to get the two rows to appear as one based on common points on the LEGACY_ACCOUNT and the ORACLE ACCOUNT
The LEGACY ACCOUNT ORACLE ACCOUNT JUN_15 JUL_15 AUG_15 SEP_15 OCT_15 NOV_15 DEC_15 010000001109000003584 190-600552-1001-100231-000-0000-0000-0000 0 0 -242961.04 0 0 0 0 010000001109000003584 190-600552-1001-100231-000-0000-0000-0000 0 192588.02 0 0 0 0 0 Here is a simplified version of my code that returns both records. In my research, I had found a number of conversations where it has been shown that the group could be put at the end of the select statement. However, when I remove the group from the first select statement I get SQL error: ORA-00937: not a function of simple-group
Select
l.attribute1 LEGACY_ACCOUNT,
C.SEGMENT1: '-' | C.SEGMENT2: '-' | C.SEGMENT3: '-' | C.SEGMENT4: '-' | C.SEGMENT5: '-' | C.SEGMENT6: '-' | C.SEGMENT7: '-' | COMBINATION OF C.SEGMENT8,
JUN_15 TO_NUMBER('0').
JUL_15, sum (NVL(l.accounted_dr,0.00)-NVL(l.accounted_cr,0.00)),
TO_NUMBER('0') AUG_15.
TO_NUMBER('0') SEP_15.
TO_NUMBER('0') OCT_15.
TO_NUMBER('0') NOV_15.
DEC_15 TO_NUMBER('0')
Of
b GL.gl_je_batches,
GL.gl_je_headers h,
GL.gl_je_lines l,
GL.gl_code_combinations c,
GL.gl_je_sources_tl j
where b.je_batch_id = h.je_batch_id
and h.je_header_id = l.je_header_id
and l.code_combination_id = c.code_combination_id
and h.je_source = j.je_source_name
and c.segment1 ('190 ', '191', '192', '193', '194', ' 195 ', ' 196',' 197', ' 198 ', ' 199',)
('200 ', '203', ' 205', '206 ', '330', '331', '332',' 333 ', ' 334',' 335', ' 336 ', ' 337')
and j.language = 'en '.
and h.PERIOD_NAME ("JUL-15'")
Group
l.attribute1,
C.SEGMENT1: '-' | C.SEGMENT2: '-' | C.SEGMENT3: '-' | C.SEGMENT4: '-' | C.SEGMENT5: '-' | C.SEGMENT6: '-' | C.SEGMENT7: '-' | C.SEGMENT8
UNION
Select
l.attribute1 LEGACY_ACCOUNT,
C.SEGMENT1: '-' | C.SEGMENT2: '-' | C.SEGMENT3: '-' | C.SEGMENT4: '-' | C.SEGMENT5: '-' | C.SEGMENT6: '-' | C.SEGMENT7: '-' | COMBINATION OF C.SEGMENT8,
JUN_15 TO_NUMBER('0').
TO_NUMBER('0') JUL_15.
AUG_15, sum (NVL(l.accounted_dr,0.00)-NVL(l.accounted_cr,0.00)),
TO_NUMBER('0') SEP_15.
TO_NUMBER('0') OCT_15.
TO_NUMBER('0') NOV_15.
DEC_15 TO_NUMBER('0')
Of
b GL.gl_je_batches,
GL.gl_je_headers h,
GL.gl_je_lines l,
GL.gl_code_combinations c,
GL.gl_je_sources_tl j
where b.je_batch_id = h.je_batch_id
and h.je_header_id = l.je_header_id
and l.code_combination_id = c.code_combination_id
and h.je_source = j.je_source_name
and c.segment1 ('190 ', '191', '192', '193', '194', ' 195 ', ' 196',' 197', ' 198 ', ' 199',)
('200 ', '203', ' 205', '206 ', '330', '331', '332',' 333 ', ' 334',' 335', ' 336 ', ' 337')
and j.language = 'en '.
and h.PERIOD_NAME ("AUG-15'")
Group
l.attribute1,
C.SEGMENT1: '-' | C.SEGMENT2: '-' | C.SEGMENT3: '-' | C.SEGMENT4: '-' | C.SEGMENT5: '-' | C.SEGMENT6: '-' | C.SEGMENT7: '-' | C.SEGMENT8
order by 1
Is there a good reason to make this period both as a series of trade unions? This looks like a classic pivot for me query. This will make a way through the tables and should get the desired results.
Select l.attribute1 legacy_account,
c.Segment1: '-' | c.Segment2: '-' | c.segment3: '-' | c.segment4: '-' |
c.segment5: '-' | c.segment6: '-' | c.segment7: '-' | combination of c.segment8,
sum (case when h.period_name = 'JUN-15'
then nvl(l.accounted_dr,0.00)-nvl(l.accounted_cr,0.00)
otherwise 0 end) jun_15,.
sum (case when h.period_name = 'JUL-15'
then nvl(l.accounted_dr,0.00)-nvl(l.accounted_cr,0.00)
otherwise 0 end) jul_15,.
- and similar to DEC - 15
GL.gl_je_batches b, gl.gl_je_headers h, gl.gl_je_lines l.
GL.gl_code_combinations c, gl.gl_je_sources_tl j
where b.je_batch_id = h.je_batch_id
and h.je_header_id = l.je_header_id
and l.code_combination_id = c.code_combination_id
and h.je_source = j.je_source_name
and c.segment1 ('190', '191', '192', '193', '194', '195',' 196', ' 197',
'198 ', '199', '200', '203', '205' ', 206',' 330 ', ' 331',
"332 ', '333', '334', '335',' 336 ', ' 337')
and j.language = 'en '.
and h.period_name (' Jun-15', ' 15 JUL', ' AUG-15'... "" ")
L.attribute1 group,
c.Segment1: '-' | c.Segment2: '-' | c.segment3: '-' |
c.segment4: '-' | c.segment5: '-' | c.segment6: '-' |
c.segment7: '-' | c.segment8
If you're on the 11G version of the database, you might want to look at the PIVOT keyword that will do the same thing in a more concise expression.
John
Maybe you are looking for
-
I installed a third party theme and now when I open a new window it automatically takes me to home.brandthunder.com/?newtab & displayLogo = false I don't want this I want new windows open at the same as my home page. Who is google.com
-
Can I use my card as my signature
Yes, is that I can use my card as my signature? Julie
-
How to password protect a flash drive?
How can I protect a flash drive with a password?
-
Tried to install the Cat.com software for civil engineering work. Error came message after it failed to install correctly. (Application of size 202MB) Searched the forums. Found: 1 Control Panel 2. Add or remove programs 3. you must find the Micros
-
Vista theme does not apply/work.
Some time ago my laptop is returned to the theme old windows 2000 relli and when I tried to go back to vista theme it says that Visual styles cannot be applied. Does anyone know how to get back the vista theme? AV tried for months, but it will not g