SELECT does not work in View
I have a select that runs well alone, but when i want to create a view with this select, i get the error "ORA-00933: SQL command not properly ended".
The select is of form
select
col1 as "one",
null as "two",
UNIONALL
select
abc as "one",
def as "two",
order by "one", "two"
the select alone works as expected. i also enclosed the select in "select * from ( ... )" and moved the order by outside. but it still has this error.
if i leave out the order by, the view creation works. but why? the select itself also works with the order by ...?
1) In Oracle 8 you could not use NULL as a column. You have to put to_char(null) or to_number(null). But in 9i you can use null without translation function. Also you can use ORDER BY, in 9i, in a view.
I did all what you said, on my 9i database, and it worked properly. So, I do not "obtain" that error.
2) Try to create the view without using double quote for aliases, even though it is correct what you've done.
3) Maybe is a stupid advice, but I dare:
Are you sure you haven't a comma(or something like this) before the order by clause. The explanation for this message error, in Oracle 8, is:
"ORA-00933: SQL command not properly ended
Cause: The SQL statement ends with an inappropriate clause. For example, an ORDER BY clause may have been included in a CREATE VIEW or INSERT statement.ORDER BY cannot be used to create an ordered view or to insert in
a certain order. Also, an improper SQL ending occurs if IN clause is used with only one argument (IN(X), for example). An IN clause must have two or more
arguments.
Action: Correct the syntax by removing the inappropriate clauses. It may be possible to duplicate the removed clause with another SQL statement. For example, to order the rows of a view, do so when querying the view and not
when creating it. This error can also occur in SQL*Forms applications if a continuation line is indented. Check for indented lines and delete these spaces."
4) You can try to report bugs on metalink at the patches section.
Eugen
Similar Messages
-
I have F.F 3.6 and windows 7.: 1) When i want to buy a airplane ticket and want to select 2 adults or 2 children, the draw down select, does not work in any websides,? WHY?. 2) Have FF any problems with SKYPE
== This happened ==
Not sure how often
== After innstalling windows 7As a suggestion I'd put the Text_io segments into their own begin - exception - end sub-blocks within the main code. This way if Text_io does raise an exception you can catch it earlier as it may be able to recover - That is if it is a text_io exception.
Other than that you;ll have to step through in Debug. -
SPATIAL_RELATE DOES NOT WORK ON VIEW ?
Hi
The following statement does not work correct - it claims that there are no spatial indexes. The view is very complex (including union all). The view is put into user_sdo_geom_metadata.
Whats wrong ?
SELECT GEOM FROM MISE_A_JOURPFP3 WHERE FID=70491;
This returns
GEOM(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
SDO_GEOMETRY(2003, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1005, 11, 1, 2, 1, 3, 2, 2, 7, 2, 1, 13, 2, 2, 17, 2, 1, 27, 2, 2, 31, 2, 1, 103, 2, 2, 107, 2, 1, 111, 2, 2, 115, 2, 1, 119, 2005, 10, 119, 2, 1, 125, 2, 2, 129, 2, 1, 131, 2, 2, 135, 2, 1, 163, 2, 2, 167, 2, 1, 169, 2, 2, 173, 2, 1, 177, 2, 2, 183, 2005, 3, 183, 2, 1, 191, 2, 2, 195, 2, 1), SDO_ORDINATE_ARRAY(575526,016, 184396,522, 575522,171, 184370,728, 575522,191, 184370,674, 575522,247, 184370,662, 575678,571, 184417,747, 575774,588, 184446,858, 575869,409, 184475,451, 575869,442, 184475,474, 575869,452, 184475,513, 575866,134, 184514,875, 575863,237, 184550,71, 575863,237, 184550,712, 575863,236, 184550,715, 575855,625, 184597,93, 575855,603, 184597,968, 575855,56, 184597,98, 575817,694, 184594,079, 575817,693, 184594,079, 575779,647, 184589,561, 575779,644, 184589,56, 575779,642, 184589,56, 575760,713, 184585,669, 575760,711, 184585,668, 575760,709, 184585,668, 575742,776, 184580,811, 575742,774, 184580,81, 575711,463, 184571,042, 575681,849, 1845
61,823, 575681,848, 184561,823, 575653,299, 184552,366, 575653,299, 184552,366, 575624,364, 184542,482, 575624,362, 184542,481, 575608,52, 184536,628, 575608,518, 184536,627, 575608,516, 184536,626, 575594,546, 184530,149, 575594,544, 184530,149, 575594,542, 184530,148, 575580,796, 184522,588, 575580,794, 184522,586, 575580,792, 184522,585, 575568,694, 184514,569, 575568,692, 184514,568, 575568,69, 184514,566, 575557,75, 184506,036, 575557,748, 184506,035, 575557,747, 184506,033, 575547,93, 184497,069, 575547,928, 184497,068, 575547,927, 184497,067, 575540,772, 184489,753, 575540,755, 184489,711, 575540,773, 184489,668, 575541,753, 184488,693, 575539,485, 184486,399, 575539,474, 184486,384, 575539,469, 184486,366, 575526,016, 184396,522, 575456,142, 184567,991, 575581,098, 184603,851, 575663,938, 184627,624, 575753,329, 184653,277, 575753,375, 184653,271, 575753,404, 184653,236, 575770,26, 184594,501, 575770,254, 184594,454, 575770,216, 184594,426, 575759,18, 184591,871, 575741,055, 184586,909, 575709,707, 18
4577,166, 575680,93, 184568,419, 575679,878, 184568,099, 575651,254, 184558,428, 575622,3, 184548,627, 575606,091, 184542,531, 575599,557, 184539,564, 575591,605, 184535,955, 575577,419, 184528,038, 575564,828, 184519,711, 575553,658, 184510,986, 575543,325, 184501,439, 575543,313, 184501,43, 575543,299, 184501,425, 575479,972, 184484,946, 575479,927, 184484,952, 575479,899, 184484,987, 575465,302, 184535,853, 575456,101, 184567,916, 575456,107, 184567,962, 575456,142, 184567,991, 575490,379, 184553,269, 575487,99, 184561,46, 575516,025, 184569,447, 575519,283, 184558,023, 575495,012, 184551,068, 575494,977, 184551,039, 575494,971, 184550,993, 575495,03, 184550,79, 575494,928, 184550,761, 575490,379, 184553,269))
This select fails:
Select /*+ ordered */ A.fid from MISE_A_JOURPFP3 A, MISE_A_JOURPFP3 B where B.FID= 70491 AND mdsys.sdo_relate(B.geom, A.GEOM ,'mask = anyinteract querytype=window') = 'TRUE' ;
output:
Select /*+ ordered */ A.fid from MISE_A_JOURPFP3 A, MISE_A_JOURPFP3 B where B.FID= 70491 AND mdsys.sdo_relate(B.geom, A.GEOM ,'mask = anyinteract querytype=window') = 'TRUE'
FEHLER in Zeile 1:
ORA-13226: Oberfläche ohne räumlicher Index nicht unterstützt
ORA-06512: in "MDSYS.MD", Zeile 1723
ORA-06512: in "MDSYS.MDERR", Zeile 8
ORA-06512: in "MDSYS.SDO_3GL", Zeile 58
DB is 9.2.0.5 on Windows XPThis might be related to bug 3561140 - we are working with the appropriate folks in Oracle to try to resolve it. If you can post your view definition then we can try to ensure this is fixed at the same time (a small test case would be appreciated).
-
Lead Selection does not work after setting filter for ALV.
Hi, Can you please suggest on below scenario :
I have a Node with a sub node in it .
I am using the supply function on Sub Node to retrieve the date based on Parent Node.
There are two ALV's to display parent and item data. The issue is when a filter(user defined filter) is done on Parent table, the supply function does not work. The value is that of the selected row before setting the filter. Even after removing the filter, the item data is stuck and does not change on Lead Selection.
One thing I noticed is if the child table is a table UI, there is no issue. The only problem is when the second table is ALV
Thanks In AdvanceHi Prashanthi,
Your issue can be resolved as below
Create an event handler method 'set_alv_data' for the event 'ON_LEAD_SELECT' of parent alv
Write the below code inside the event handler method
METHOD set_alv_data.
DATA lo_node TYPE REF TO if_wd_context_node.
DATA lv_path TYPE string.
DATA lv_index TYPE string.
lv_index = r_param->index.
CONDENSE lv_index.
CONCATENATE wd_this->wdctx_my_parent_node
lv_index
wd_this->wdctx_my_child_node
INTO lv_path SEPARATED BY '.'.
lo_node = wd_context->path_get_node(
path = lv_path
DATA lo_interface TYPE REF TO iwci_salv_wd_table.
lo_interface = wd_this->wd_cpifc_alv_child( ). "get the ref of alv comp of child
lo_interface->set_data(
EXPORTING
* only_if_new_descr =
r_node_data = lo_node
ENDMETHOD.
The above code sets the data node of child alv based on lead selection of parent alv data.
Note: Replace 'parent_node', 'child_node' with your nodes & 'alv_child' with your alv component name of child alv.
If you want to control the data of child alv on filter function, you can use the event ON_STD_FUNCTION_AFTE and once you define the filter you get the r_param->id = 'SALV_WD_FILTER_DEFINE' & now you can clear data of child alv.
Hope this helps you.
Regards,
Rama -
After upgrade date selection does not work in xml forms
Hi Experts,
since we upgrade the portal from 7.0.19 to 7.0.24 we have a problem with the timestamp in the xml forms in combination with IE7. When we click on the date selction button, the date screen appears and the form disappears. The only option we can choose is cancel and then the date selection screen disappears and the form is not comming back. Selecting a date en choose ok does not work. I tried with IE6 then it works fine. Before the upgrade it works fine with IE7.
How to solve this?
thanks in advance.
Vo.I created a OSS message and the answer is : [Note 1491775 - XML Forms locked when closing browser window|https://websmp130.sap-ag.de/sap(bD1ubCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1491775]
gr
Vo. -
Tree Multiple Selection does not work ???
Hello, while migrating my application from Flex 1.5 to Flex
2, I had the disgreement to discover that multiple selection in
tree does not work anymore.
I event tried the basic example found in Flex documentation
(see below), which does not work
Please, I need this feature in my application ! How can I do
? Is it normal ?
ThanksMultiple selection in the tree was removed for the General
release.. I am sure they plan to put it back as soon as possible.
Tracy -
Search help does not work when view context is mapped to comp context
Hello,
I am trying to display search help for an input field of a view. The context to which the input field is bound is a node with an attribute. I have specified Dictionary Search help for the attribute. Now when I execute the application, I am able to get the search help in the screen.
But, I need to map this view context node to its comp controller context. When I do the mapping, the search help does not appear when executed.
It would be a great help if someone can point out an answer to this.
Thanks,
MayaHi Maya
Follow these steps:
1.Delete the context node/attribute which is bound to search help from the View.
2.Now Save metadata.
3.Perform Context mapping again .In the Edit Context Mapping window drag the node/attribute FROM RIGHT PANE TO LEFT PANE and select the entry.
4.Delete the Input Field from the view.
5.Save again
6.Close NWDS and reopen it.
7.Create input field again and bind it to the context element.
Hope this solves the problem.
Regards
Ananda -
I have jtable with some data and in some particular columns checkboxes.
Only one of those columns can be edited. I implemented in my table model a method to pass rows which should be disabled and implemented the functionality in the isCellEditable for disabling the editing.
This works just fine.. but
I have a multiple selection on my table.. but whenever i try to select a row or several rows the row does not get highlighted.. (this worked well before without the editing functionality).
Could anyone explain how to get around this problem? or where the problem exactlly is
thnx in advance
stfndlnshow the code.. the problem is within..
-
Selection in the Generic Data Source does not work
Hi gurus,
I have some problem with the selection in the Generic Data Source.
I have created a view as a base of a Generic Data Source.
This view is based on several table; i.e.: VBUK-VBELN (Sales Order number), VBAP-ERDAT (creation date of Sales Order), VBAP-POSNR (Sales order item), VBAK-BSTNK (Customer Purchase order number).
In the view, some join conditions have been defined: VBUK-VBELN = VBAK-VBELN, VBUK-VBLN = VBAP-VBELN.
I want to extract the Sales Order number, Sales order item and Customer Purchase order number for the Sales order created on the previous year.
On the Generic Data Source, I select VBELN (Sales order number) and ERDAT (creation date of sales order) as selection.
However, when I run the extractor checker (RSA3) on this Generic Data Source, the selection does not work at all, i.e.:
eventhough I restricted the Sales order number and/or the creation date of sales order, the generic data source ignores the selection criteria and extract ALL data.
Does anyone ever have similar problem? Did I miss some step in the Generic DAta Source creation? How to fix this problem?
Thanks a lot in advance.
Best regards,
FenHi Fen,
Just check what is the output you get for the same selection for the view you created.
Bye
Dinesh -
SELECT * CONNECTION not work
Hi,
It is found that SELECT * does not work with CONNECTION. For example, I use the following statement to retrieve data from another system and an error states that SQL error 207 when accessing table 'MARA'. 'Invalid column name 'ANIMAL_ORIGIN''. If columns are specified, data can then be retrieved. The SAP BASIS version is 7.31.
SELECT SINGLE *
INTO CORRESPONDING FIELDS OF ls_mara
FROM MARA
CLIENT SPECIFIED
CONNECTION ('G01')
WHERE MANDT = '100'.Hi TS,
You gave the answer already, but look at the HELP:
To allow the Open SQL command to be run for the secondary database connection, the table definitions in the connection must be the same as those in the standard database.
Cheers,
Custodio -
Print icon on toolbar does not work
Recently bought new computer running W7
Use acrobat to print postage labels on royal mail site
Have latest version of acrobat and when screen comes up showing label to be printed the 'floating' toobar appears but clicking on print icon has no effect
I am forced to used 'CTRL P' and then 'enter'
Occasionaly CTRL P gives me another toolbar at the top of the window which also has a print icon, this does nothing either
Can anyone suggest what is going wrong, should I go back to an earlier acrobat that worked fine on my old XP PC ?
Thanks
GrahamThank you
Yes you are correct using a PDF in browser to print post labels.
Running Windows 7, Internet explorer 9, Acrobat Reader Version 10.0
CTRL P brings up dialog box OK and I can print from there.
Cannot comment if problem happens outside of browser as it is home
computer and do not have need to view PDF's offline but will find thsi
out if important.
Graham
>--Original Message--
>From: [email protected]
>Date: 23/02/2012 13:18
>To: "flat-pack"<[email protected]>
>Subj: Print icon on toolbar does not work
>HitenderPrakash [http://forums.adobe.com/people/HitenderPrakash
created the discussion
>"Re: Print icon on toolbar does not work"
>To view the discussion, visit: http://forums.adobe.com/message/4224450#4224450 -
Select All in a table does not work for Drag and Drop
Hi. I am using Jdeveloper 11.1.1.2 but have also reproduced in 11.1.1.3.
I am trying to implement drag and drop rows from one table to another. Everything works fine except when I do a Select All (ctrl-A) in a table, the table visually looks like all rows are selected, but when I try to click on one of the selected rows to drag to the other table, only the row I click on is dragged.
I tried setting Range Size -1, fetch mode to FETCH_ALL, content delivery to "immediate" but nothing works.
I even have reproduced not using a view object but just a List of beans with only 5 or 10 beans showing in the table.
Does anyone know how to get Select All to work for a Drag Source?
Thanks.
-EdFrank-
OK, thanks for looking into that. I also submitted this service request, which includes a simple sample app to demonstrate the problem:
SR #3-2387481211: ADF Drag and Drop does not work for rows in table using Select All
Thanks again for the reply.
-Ed -
My left arrow does not work on my macbook pro(model A1226).
I have reset nvram, performed a safe boot, pulled the cache to desktop, replaced .globalpreference.plist, & tested all other keys with "keyboard viewer" (all other keys work except for the arrow).
In addition, I have gone thru all the recommended checks with universal access and have booted from snow leopard dvd and the left arrow still does not work.
I have tried using the left arrow key in all of applications I use such as: excel, ms word, address book, calendar, iphoto, terminal, & highlighting an icon and using the arrows to move to another selected icon.
Here is the kicker! In addition, I purchased a logitech solar bluetooth keyboard and the arrows work fine with my ipad but do not work when paired with the macbook pro. All other keys work fine on the macbook pro using the bluetooth keyboard.
I believe this says that the problem is not in my macbook pro keyboard. So where can it be?
Can anyone think of any other rabbit holes I can search?
thanks and regards
vats3I would also like to add that I've reverted the two cd drive and hard drive mods I did and the laptop is back to factory hardware and there is 0 corrosion or mold visible.
-
In the Applications tab -- Content Type -- the "portable document format" icon is a Word 2010 icon (not Adobe), so selecting Adobe Reader or preview in Firefox as action does not work to display the PDF. I can see this Applications difference because my other Firefox laptop has the Adobe icon, and I can view PDFs. Essentially, a PDF is coming in as a Word document -- and the computer tries to open it up as a Word file.
How do I get the correct PDF icon in the Applications list -- the same way it displays (and works) on my other laptop.Adobe PDF Plug-In For Firefox and Netscape 10.1.7 ?
I think you need to add this to the list of applications and the action to take on the type of content. This can also be managed in the about:permissions page. [[Permissions Manager - Give certain websites the ability to store passwords, set cookies and more]] -
SELECT DISTINCT does not work - Another Problem!
Dear All
Previous Post
I just posted a thread, which has been answered by an expert. It's here:
SELECT DISTINCT does not work. Why?
My original problem was that the Query returned duplicate records, and SELECT DISTINCT did not work.
The solution was to change this select:
T0.[U_SupInv] AS 'Link'
... to this:
CAST(T0.[U_SupInv] as nvarchar(100)) AS 'Link'
The amended Query worked.
New Problem
I just discovered that resolving the problem created a new one.
The field U_SupInv (Link) is in fact a UDF.
I created it so that all Suppliers' Invoices could be Scanned to pdf files, and these pdf could be linked
to the respective AP Invoice.
Originally, when I clicked 'Link' in my Query results, the pdf scan pops up.
When the Query is amended by adding CAST, the link becomes dead.
Help
Could anyone tell me how I can make SELECT DISTINCT work, as well keeping the LINKS live?
The main purpose of my Query is to help users view the pdf scans by clicking on the links.
Thanks
Leon Lai
Here's my Original Query
SELECT
T0.[UpdateDate] AS 'Update Dt',
T0.[TaxDate] AS 'Doc Dt',
CASE T5.[TransType]
WHEN '18' THEN 'PU ' + CONVERT(VARCHAR(6), T0.[DocNum])
WHEN '19' THEN 'PC ' + CONVERT(VARCHAR(6), T0.[DocNum])
END 'SAP Ref.',
T1.[ImportLog] AS 'Ship #',
T0.[CardCode] + '' AS 'Supplier #',
T0.[CardName] AS 'Supplier Name',
T0.[DocTotal] AS 'Rs',
T1.[BlockNum] AS 'Reqn #',
T0.[DocNum] AS 'Doc No',
T0.[U_SupInv] AS 'Link'
FROM klship.[dbo].[OPCH] T0
INNER JOIN klship.[dbo].[PCH1] T1 ON T0.[DocEntry] = T1.[DocEntry]
INNER JOIN klship.[dbo].[OJDT] T5 ON T0.[TransID] = T5.[TransID]
WHERE
(T0.[UpdateDate] >= '[%2]' AND
T0.[UpdateDate] <= '[%3]' AND
T0.[U_SupInv] IS NULL)
OR
(T0.[UpdateDate] >= '[%4]' AND
T0.[UpdateDate] <= '[%5]' AND
T0.[U_SupInv] IS NOT NULL)
FOR BROWSEDear István Korös,
Thanks a lot for your answer.
I will test your suggestion tomorrow, as it's night and I am returning home now.
However, I do not think it will suit my requirements for the foll reasons:
- I worked hard to get rid of the need to enter anything in the @Scan2 field.
- This UDF was created solely as a text of instruction for my staff.
Unfortunately I had to fill in something to make the Query work.
- The problem is that if the user forgets to click the drop-down arrow and leaves @Scan2
blank, the query does not work.
- With the help of another expert, I succeeded in ignoring @Scan2 altogether.
- I posted only a simplified version of my Query on the forum, without the codes relating to eliminating the
need to enter something in @Scan2, so you may not be aware of my requirement.
- I hope you understand my reluctance. But I will try your suggestion nevertheless.
My Suggestion
I think using PCH1.VISORDER may be the solution.
If we select only those rows where visorder = 0, then
- there will be no duplication
- I need not use SELECT DISTINCT
- All my LINKS to pdf files will be live because I need not use CAST
- I may retain that part of my Query which permits ignoring @Scan2 altogether.
- A Dream!-
The problem is that I don't know how and where to place that VISORDER.
If you think I may be right, could you help me along that line?
Best Regards
Leon Lai
Maybe you are looking for
-
With my taking any action, my folders and files no longer appear under documents (under Places). Now a folder titled Documents has appeared on my desktop with all my files and folders. What happened?What happened?
-
How to write a file in unix server through oracle plsql code
Hi All, My requirement is to create and write a file (any file for eg txt file) in unix box with in a specified directory through oracle plsql code. Oracle sits in windows server. using utl_file package we can create directory where oracle resides an
-
The PDFs digitally signed are not compatible with the standard PDF/A
Firmando digitalmente i file PDF/A-1b perdono la compatibilità con lo standard Dopo parecchi tentativi (per esser certo di escludere problemi eventualmente derivanti dal contenuto dell'elaborato), ho creato un PDF da Blocco Note (S.O.: Windows XP S.P
-
Occurs 0 term in internal tables
Hello frendz!! occurs 0 term in internal tables .PLz tell me in details. regards
-
I am a student and I have had a subscription to Lightroom and PHotoshop. I received the softward as a gift and I am trying to download it now. I am being asked to close photoshop CC. How do I do this. Do I need to cancel my subscription in order