Problem with query select
Hello
Select transactionid, (TO_TIMESTAMP (endtime, "MON-DD-YYYY HH24:MI:SS)-TO_TIMESTAMP (starttime," MY - DD - YYYY HH24 timetaken:MI:SS))))
from (select a.transactionid, MAX (TO_CHAR (HH24:MI:SS' a.time_stamp,'DD-MON-YYYY)) endtime, starttime MAX (TO_CHAR (a.time_stamp,'DD-MON-YYYY HH24:MI:SS')))))
A newspaper, logaltkey b where a.time_stamp > TO_DATE ('29.01.2014:11:00:00 ',' DD.) MESSRS. ' YYYY:HH24:MI:SS)
and
a.time_stamp < TO_DATE ('30.01.2014:15:33:24 ',' DD.) MESSRS. ' YYYY:HH24:MI:SS)
and interfaceid = 'Member '.
and a.logid = b.logid
and b.altkeyname = 'SXC');
The query above returns the error below, some one please share your entries to make it work.
ORA-00937: not a single group group function
00937 00000 - 'not a single-group function.
* Cause:
* Action:
Error on line: column 2:14
You do not have to include group by clause in your query internal.
Try it below:
Select transactionid, (TO_TIMESTAMP (endtime, "MON-DD-YYYY HH24:MI:SS)-TO_TIMESTAMP (starttime," MY - DD - YYYY HH24 timetaken:MI:SS))))
Of
(
Select a.transactionid,
Endtime MAX (TO_CHAR (a.time_stamp, 'DD-MON-YYYY HH24:MI:SS')),
StartTime MAX (TO_CHAR (a.time_stamp,'DD-MON-YYYY HH24:MI:SS'))))
Of
Journal of a,
logaltkey b
where a.time_stamp > TO_DATE ('29.01.2014:11:00:00 ',' DD.) MESSRS. ' YYYY:HH24:MI:SS)
and
a.time_stamp<>
and interfaceid = 'Member '.
and a.logid = b.logid
and b.altkeyname ='SXC
A.transactionid group
)
Tags: Database
Similar Questions
-
problem with query select in the search
Hello
Here I use MYSQL database and when I insertind to the database date, it saves as "2009-11-10 00:00:00 ' and when I used to do this show in dateformat as November 10, 2009".
Here's the problem occurs, when I write a search like query
Select recruitername, interviewdate, skillset
details
where interviewdate = #form.interviewdate #.I'm not a problem with the date. could u please help me how to solve this problem.
Or, better yet, a
with a type date. WHERE interviewdate =
-
Problem with query select when the value is "I" or "II".
Hello
APEX 4.0.2
I have a select as below,
Select CLASS_TITLE
of VW_TITLE
where instr (upper ("CLASS_TITLE"), upper (nvl (DECODE (: P80_CLASS_TITLE, 'ALL', NULL,: P80_CLASS_TITLE), "CLASS_TITLE"))) > 0
P80_CLASS_TITLE is defined as LOV. When I select "administrative specialist I" in the list, it returns the following.
E specialist I
Administrative Specialist II
But if I select 'Administrative Specialist II', it returns only Administrative Specialist II.
I only have this problem when there is an 'I' or 'II' in the CLASS_TITLE; Otherwise, it returns the correct values.
Thanks a lot for your help.
MTthe mt user says:
Sorry if I you confused. That's what I want the select statement to make. If I select a class title in the list of values, I want to display the title of the selected class. If I do nothing select in the list of values, then display all class titles in the table which is the default value.I assumed that "ALL" is the default value from the LOV. If the above does not work it appears that it must be null. So much more SQL 101:
select t.class_title from vw_title t where t.class_title = :p80_class_title or coalesce(:p80_class_title, 'ALL') = 'ALL'
I'm guessing that you came with all the stuff INSTR/DECODE...
You would probably enjoy taking up the + 2 day Developer Guide + brush on basic SQL.
-
Problem with query (Date)
I have a query that works very well on a bt database when I run the same question him on another database returns an error
Query
Select a.COL1
of tab1 a
where a.col2 in (select b.col1
tab2 b
where b.col2 = 'EDF '.
and b.col3 = 'ABCD')
and a.COL2 = '7875750'
and a.COL3 = "KJD" and
a.part_date) = 23 November 2009 12:00:00 AM ';
Error:
ORA-01858: a non-digit character was found here where was waiting for a digital
The strange part is... its fine on a db of work and give more top of the error on the new database configuration recently... I tried to use the to_date bt it always returns an error
Help, pleaseThe problem is twofold.
(1) suboptimal SQL
(2) dependent data "bug".
You change the code, change the data or live with this error -
Problem with query issuing service
Hello
I had a problem with sub query with the cast function.
Any help appreciated reallly.SQL> SELECT 2 CAST ( ( ( (COUNT ( 3 CASE 4 WHEN ServiceRequest_ec.WasCaseClosed = 1 5 THEN 1 6 END) )* 100) / (COUNT (DISTINCT ServiceRequest_ec.case_id)) ) AS nvarchar) AS Average 7 FROM ServiceRequest_ec 8 INNER JOIN cases_ec 9 ON ServiceRequest_ec.case_id = cases_ec.case_id 10 INNER JOIN contacts_ec 11 ON ServiceRequest_ec.contact_id = contacts_ec.contact_id 12 INNER JOIN users_ec 13 ON contacts_ec.user_id = users_ec.user_id 14 INNER JOIN departments_ec 15 ON contacts_ec.department_id = departments_ec.department_id 16 WHERE 1 = 1; END) )* 100) / (COUNT (DISTINCT ServiceRequest_ec.case_id)) ) AS nvarchar) AS Average * ERROR at line 6: ORA-00902: invalid datatype SQL> spool off
Thanks in advance
Published by: user512743 on December 8, 2008 03:40I find a lot of difference in your script. Just run this part and let us know if it is running or not->
SELECT CAST( ( COUNT( CASE WHEN ServiceRequest_ec.WasCaseClosed = 1 THEN 1 END ) * 100 )/( COUNT( DISTINCT ServiceRequest_ec.case_id ) ) AS nvarchar2(30) ) AS Average FROM ServiceRequest_ec INNER JOIN cases_ec ON ServiceRequest_ec.case_id = cases_ec.case_id INNER JOIN contacts_ec ON ServiceRequest_ec.contact_id = contacts_ec.contact_id INNER JOIN users_ec ON contacts_ec.user_id = users_ec.user_id INNER JOIN departments_ec ON contacts_ec.department_id = departments_ec.department_id WHERE 1 = 1 GROUP BY contacts_ec.user_id, users_ec.UserName , users_ec.firstname , users_ec.lastname , contacts_ec.department_id , departments_ec.name;
Maybe you run a partial query of much more complex query. And does not separate the two successfully. After you receive this error - I guess.
Just run my solution and let us know.
Kind regards.
LOULOU.
-
Hi, problem with the selection and processing
I'm having problems with re-sizing any shape using the Selection (V) tool. It did not work properly, I don't know how it has stopped working. Is it possible to fix this?
Thank you.
Navid
Navid,
Display > display the bounding box?
CTRL / Cmd + Shift + B to toggle between Hide and Show, one of the regular keyboard mishits.
-
problems with customization select lists and popup LOVs
Hello
I have 2 problems on selection lists and popup LOVs.
The first is on a list in tabular form.
It must be created with APEX_ITEM. SELECT_LIST_FROM_LOV or similar and take its values of a named LOV.
This worked fine, but now it should also have the possibility to enter a free value.
I tried to accomplish this by creating an APEX_ITEM. POPUP_FROM_LOV, but there is a problem with the function which is called the icon of the right arrow to the input field (for eg. genList_f11_5()).
If the line is added by addRow, then it works fine, but if the line is not empty
Then the function call is as genList_f11_$ _row () and the input field becomes worthless, when an LOV is selected.
The other problem is on a list of selection that should have the opportunity to enter a custom value and
It should also be able to select multiple values. I tried to implement this in a text box that contains the selected values, and a multiple select list, with an event handler in each option. The user can click on options and they would be copied into the text box. The problem is that I couldn't make the event handler works in Internet Explorer.
I would like ideas on one of these problems.
TiinaHello
It can be created at APEX_ITEM. TEXT.
APEX_ITEM also generates the name attribute that I use the jQuery selector in the sample.
Use jQuery UI autocomplete just similarly as in my example with APEX_ITEMKind regards
Jari -
Problems with convert selection to 3D Reppouse
I'm currently building a logo using the Reppouse PS CS5 Extended 3D feature. I have items separated all to convert to a 3d object and set up. It will be exported to After Effects.
My problem is with the addition of the effect of 'Current Selection' here is a picture next to the item, I work with, and what is happening during the conversion to 3D.
How can I get photoshop to recognize the empty spaces? Or, is there a way to cut all the gray that it inserts into the empty should be?
The service recognizes the empty spaces in the text, I have no problem with that. And I use is just the cage of gold so I'm stuped as to why the program rejects my selection.
-Thanks in advance
MHL
Check constraints in the regrowth Panel options.
Mylenium
-
Problems with the selections in cs5
Hey, recently I started noticing odd behavior that's not happened before involving selections in photoshop cs5.
the first thing I noticed, when I made a selection with the lasso on any given layer and hit transform, the tool only has not automatically select active pixels as it did before. Instead, the processing area was around the entire selection, I did even if the borders do not contain active pixels. It is a very big problem for me because when I have my items in a certain place, and I want to turn them in this position, thay move somewhat because the selection is not limited to the shape. I was wondering if this is some new CS5 that can be changed. or old function that I've accidentally switched on.
My second problem is that when I make a selection with the Selection tool or the lasso tool, then I swiitch on the move tool to move the selected content and then switch back to a selection tool to delete only a part of the previous Thatcher so that I can spend the rest of the content, place of deselection of this region, it erases the pixels contained in the deselection. and I just want to remove the selection, do not delete the pixels. I also wonder if it is a function that can be modified or if I have a big problem.
Any help will be much appreciated.
AD 1)
A solution might be to switch to the tool move and press the left and right arrow in the order.
AD 2)
One solution might be to enter and exit quick mask by Q hit twice.
-
I'm going to give a big thanks for the help with this. I have a table with a numeric field called "lotnum". Each lines 'lotnum' has a value of 1000, 1001, 1002, 1003... 2000, 2001, 2003, etc.) The parent row is always the one that ending in zero (i.e.: 1000, 2000, etc...) 12000, all parents are). The children all end in 1,2,3, 4... etc... My problem is that another field (let's call it "x_dev") should be of value not only for the parent, but also for the child, but they do not. I need a query that will help me to compare the value 'x_dev' of the parent to the value of all the values of "x_dev" for children to determine whether they are identical or not.
Sample data:
Lotnum x_dev
1000 20
1001 null
1002 null
20 2000
2001 null
(ie: 1000 motorcycles (parent) with children (1001 and 1002) to determine if the value of "x_dev" is the same and if not equal to the parent.) I know that I will probably use instr or substr from right to left, since the only constant, it is the last three digits represent the children. The remaining digits are the parent (1, 10, 100, 1000), then the value could be between 1000-1000000)
Thank you very much
Published by: kirkladb on July 14, 2012 12:09select t1.lotnum, t2.lotnum parent_lotnum, t1.dev_x, t2.dev_x parent_dev_x from tbl t1, tbl t2 where mod(t1.lotnum,1000) != 0 and t2.lotnum = trunc(t1.lotnum / 1000) * 1000 and lnnvl(t2.dev_x = t1.dev_x) / LOTNUM PARENT_LOTNUM DEV_X PARENT_DEV_X ---------- ------------- ---------- ------------ 1002 1000 20 1001 1000 20 2001 2000 20 SQL>
Or if it will be easier for you:
select t1.lotnum, t2.lotnum parent_lotnum, t1.dev_x, t2.dev_x parent_dev_x from tbl t1, tbl t2 where mod(t1.lotnum,1000) != 0 and t2.lotnum = trunc(t1.lotnum / 1000) * 1000 and (t2.dev_x != t1.dev_x or t1.dev_x is null) / LOTNUM PARENT_LOTNUM DEV_X PARENT_DEV_X ---------- ------------- ---------- ------------ 1002 1000 20 1001 1000 20 2001 2000 20 SQL>
SY.
-
[8i] problem with query involving an instruction box
First of all, I work in 8i. I create sample data, etc., I would like to ask if there is a general answer to my question. My query is very complex and to come up with a sample of cases will not be a futile effort, but I will if it ends up being necessary.
I had a query that worked very well... I got all the results that I expected.
The query looked something like this:
One of the columns of a ' is a sequence number, and there may be multiple lines (if any) associated with a particular sequence number. I call these my result 'groups '.SELECT d.* , NVL(date_1, date_2) AS date_filter FROM complex in-line view d WHERE NVL(date_1,date_2) <= SYSDATE + 10 ORDER BY d.col_1 , date_filter , d.col_2 , d.col_3
I then added a case statement such as:
(Note: I also tried using NOT EXISTS instead of NOT IN, with the same results)SELECT CASE WHEN d.col_4 IS NOT NULL AND d.col_5 != d.col_6 AND d.col_5 NOT IN ( another complex query, which is actually the same as an in-line view used in 'd' ) THEN '*' WHEN d.col_4 IS NOT NULL AND d.col_5 != d.col6 THEN '-' END AS flag , d.* , NVL(date_1, date_2) AS date_filter FROM complex in-line view d WHERE NVL(date_1,date_2) <= SYSDATE + 10 ORDER BY d.col_1 , date_filter , d.col_2 , d.col_3
When I ran the new query with the case statement, suddenly d.col_5 do not have the same values. I still have the same number of rows returned, and the same number of lines by "group", but in all the ranks where the case statement returns an asterisk, d.col_5 lacked its value. In addition, a few lines with an asterisk should not have got one, because d.col_5 has been equal to d.col_6 (before the value of d.col_5 was missing its value).
If I remove the case statement and just run the original query, all values of d.col_5 are back. I don't know why a case statement would affect any other provision of the request...
Anyone?
Thanks in advance
Published by: user11033437 on August 20, 2010 14:15Hello
It's weird!
No, I've not seen this before.
Your main query is easier that you posted it? There were bugs in older versions on the use of combinations of functions anlaytic together, and all versions are likely to get confused if you use analytical functions in a CONNECT BY query. But you do it all in the main query you posted.
I noticed a number of things that could be linked.
d.col5 NOT IN (SELECT col_x FROM ...)
never returns TRUE if the subquery col_x values are set to NULL. Ensure that the subquery is the condition "col_x IS NOT NULL".
If the IN subquery in the case statement is exactly the same as a subquery used in d, then consider making a view. (A regular freestanding "CREATE or REPLACE the VIEW" view, not a view online.)
I don't see how or one of these things would cause the behavior you reported, but you should do them anyway (at least the "col_x IS NOT NULL" condition) and see if the problem persists.
If you leave the CASE expression, but merely the condition in comment
-- AND d.col_5 NOT IN ( -- another complex query, which is actually the same as an in-line view used in 'd' -- )
the problem goes away? (I bet it does; I'm just grasp at straws here.)
Published by: Frank Kulash, August 20, 2010 17:12
I wrote the message above before seeing your second message.
It is even stranger that just change 'NOT IN d.col5' to 'NOT IN d.col6' seems to fix the problem. -
Hi all!
I've just updated Photoshop 2015.5 CC version.
I am currently working on a design that needs cutting contours.
So I picked all the areas belonging to the background of the image and then click on the "select and mask" to refine the edges and then clear my selection as I usually did.
But instead, my selection disappeared...
My steps were:
- Selection of the areas to clear with "themagic wand tool.
- Click on 'select and mask' (output parameters: output to the selection).
- Click on 'OK'.
- Selection has disappeared!
I have provided all the tools to their default settings, but nothing has changed.
I tried to close and reopen the case, repeat the steps to delete the background, but I always feel the question.
It is a big problem for me!
I hope that there is someone who could help me/us with this!
Best,
Joanna
I actually asked the new workspace me first thing after update, because I wasn't getting. It's different enough that you need to learn everywhere, I'm afraid, but it is definitely an improvement when you become familiar with it. See Julianne Kost guide below, but I suspect that you may need to adjust the sliders that control the opacity of the background. Or simply click on the transparent part to start the selection.
-
Hello
I'm trying the sect a person on a picture and paste it into this collage photo, I'm working on that. First I tried to use the quick selection tool, but I guess my man I'm cutting too many colors: when I use the quick selection, it immediately goes into a rectangle around the entire image. I even tried to paint the rest of the picture in black with the exception of humans, but always the same results with the quick selection. Then I tried the lasso, but nine times out of ten, he would stop and do an odd choice. When I finally got a good lasso selection (done after much cursing) then CS6 told me that 'the selection is empty' . What? I made a new layer before I made the selection.
Can you help me solve these problems?
I just downloaded CS6 just a day ago and have a lot to learn, but I worked with Paint.net and Paint Shop Pro for the past two years, so I'm familiar with paint and photo editing software.
Thank you
Kelly
[amended to be readable by an admin text]
Please do not submit your application in green. It's a useless distraction.
You are trying to make a selection in an empty layer.
Back to the image of the layer, not the empty one that you created, and you will be able to make a selection.
Once selected, press Cmd + J to your object selected on a new layer. I think that's what you had in mind.
-
Problems with the "Select tool?"
Because I have updated the latest version of Adobe Illustrator on cc, the "Select" tool does not correctly. It does not scale the rectangle shapes (made by the tool 'Form') using the "select" tool (all other forms work fine). I tried to contact customer service at this topic and it seems that it is a software update. I asked an ETA, but was initially ignored, and the 2nd time said they could not provide me with this information yet, only that he had been sent to the engineering team. I have projects and patterns to talk of the possibility of those not being not on the time and all I was asking for a was an estimated time that the glitch would be fixed and then nothing more said, I booted from the live chat. At this point, I am furious because I tried to be patient ALL day with the customer service team and that's how I'm treated... All I want is a time on how long it usually takes to update glitches can be solved. Even if it takes a month, it would be nice to be able to provide this information to my people.
Zewster,
It seems that the problem is a bug that is limited to only one of the MAC versions starting from 10.7 and 10.8, but not 10.9 (Mavericks), see this thread linked below.
https://forums.Adobe.com/thread/1595973
Thus, a switch for the Mavericks with a reinstall might be another way to solve here and now.
-
Problem with the selection of database adapter operation
Hello
When I invoke the database adapter selection operation, I don't see not all the fields within Invoke1_SelectSelect_InputVariable (I'm supposed to see mapping). Can someone let me know what the problem is. Currently I read a value and if the input value is equal to the value of the field in view he must retrieve all the values associated with this field.
Thank youSelect empno, empid of base table WHERE empno = #empno_value
empno_value will be the parameter that you intend to move through a field of the input variable...
Maybe you are looking for
-
Hi all - when I insert a plug-in effect to an audio track in Logic Pro X, I hear only the audio not transformed during the recording, but the audio processed at reading later. I've got "monitoring software" checked in the audio preferences. What bone
-
problem with java and pogo games
I use mozilla, and now with the problems with java and hackers cannot play my pogo, what can I do? I disabled my java I tried java 6 does not work or is not safe, what is a safe way to play games on pogo using java?
-
I asked a question before, but my description was not detailed enough. As part of an attempt to deal with the issues described below, I discovered that I couldn't boot from the HD Recovery. If I have to do a clean reinstall of the operating system, I
-
Question about 600 EX - RT and compatibility 5DmkII
I'm sure this has been covered a hundred times already, but I saw myself in confusion on the subject. So I thought I just ask the community. I decided that I want to redo my lighting set 'location' by removing some of my portable flashes because com
-
Dell 8132f: Get of QSFP 40 G serial number
Dear Dell support, Please let me know how to get the QSFP 40 G serial number I did plug into the switch and do like stack-port. Best regards T.