Application for common among a result set
Hi gurus,
I have a defined result as below.
SerialNumber | Location |
---|---|
FG 123, 87 | Brazil |
FG 123, 87 | CA |
123CD 87 | CA |
654FG 95 | CA |
654FG 95 | Brazil |
534AB12 | Brazil |
.... | ... |
Now I want the output as
FG 123, 87
654FG 95
The serial numbers that are common to both locations.
Thanks in advance,
Rachid
If the issue is not explicitly limited to the mentioned locations (Brazil, CA), a group with a having clause could be an option:
with
data in the form of)
Select "FG 123, 87" serialnumber, 'BRAZIL' double location
Union of all the
Select 'FG 123, 87', 'CA' from dual
Union of all the
Select '123CD 87', 'CA' from dual
Union of all the
Select "FG 654, 95', 'CA' from dual
Union of all the
Select "FG 654, 95', 'BRAZIL' from dual
Union of all the
Select '534AB12', 'BRAZIL' from dual
)
Select the serial number
from the data
Group by Numeroserie
After count (distinct place) > 1;
SERIALN
-------
654FG 95
FG 123, 87
Tags: Database
Similar Questions
-
XML format for the export of result set by the user
Hello
I would like to export my entire test sequence results in a new XML file. The format of the XML file is given and fixed.
My first attempt was to create a LabView VI to export data in XML format.
I read that there is no way to set the format with the standard version of LabView. But I have a suspicion that there is an upgrade so I can set the XML format by myself.
Does anyone know what update I need?
Or did someone knows how to export XML in a different way?
Thanks for your help!
You're right that the current implementation does not do.
You have two options:
1. create your own plugin that analyzes your resultlist and generates the XML file
2. create something late MainSequence which analyses the resultlist and generates the XML file
It depends on the scope of your project. If there is one thing to type 1 and then option 2 would be easier. If it's something, you use through multiple tests and then I'd go with Option 1.
In both cases, you must go to analyze thorugh the results list and generate code for XML. I recommend keeping the algorithm in TestStand to browse the resultlist. It is much easier and simpler. Simply create a sous-suite that does and pass the list of results.
Kind regards
-
UNION and UNION ALL giving multiple result sets even if INTERSECT does not lines.
Hello
I have a set of two queries. I used the UNION to join the result set. When I used UNION ALL, I get a different result set.
BT when I use INTERSECT, I m not getting all the lines.
SO, which I guess is, as operation INTERSECT isn't Govind all the lines, then the UNION and UNION ALL of the result sets must be simliar.
But I m getting different result sets.
Please guide me.
Thank you.
Hello
UNION returns separate lines; UNION ALL returns all rows that produce queries.
INTERSECT has nothing to do with it. You can have the lines in a single query. For example
Job SELECTION
FROM scott.emp
UNION - ALL THE
SELECT 'FUBAR '.
DOUBLE;
In this example, there is no overlap between the 2 queries (INTERSECT would have 0 rows).
UNION produces 6 lines, because the query at the top of the page produces 5 distinct lines (of 14 total ranks) and the background query 1.
UNION ALL product lines 15: 14 of the request from top and 1 of the request from the lower part.
I hope that answers your question.
If not, post a test script (if necessary) and complete, including some UNION, UNION ALL queries INTERSECT. Post of the CREATE TABLE and INSERT statements for all tables using those queries (with the exception of the commonly available rtables, such as those of the scott schema) and a specific question, such as "the UNION query all product...» I expect the UNION query to produce... because... but instead, it produces... Why is this? It seems contractict... manual which says that... ».
-
Application for Windows is empty
I build a DPS for Windows Viewer, using the online tool, which I installed on a pc Windows 8.1 to test. But when I open the app is empty with no folios.
I built a single application for ios and android, and both work perfectly.
If I open the Adobe Content Viewer for Windows and connect with the same powers that I used for the application, I can al Folios.
The App has been approved on the Windows (not yet released) store.
I try to rebuild several times of get app, change the gray screen empty setting and even the app id, but same result, with only the title display, but no folios.
I've updated my Viewer for December 8 to exit and I can confirm that now I can see my custom library.
But when I opened a Folio, there are now up to return to the library, is this a bug or we put in place on the library (this is not necessary on android or iOS).
Also, is it possible that we can debug a custom Windows Library?
-
Get spaces empy in the result set
Hello
We are migration CF 5 to 9. App works great in CF5. but when we run the same code in CF9, for all sets of results, we get the empty sapce for each field.
Ex:
CF5: field1: order_id, value = "OL123456".
CF9: field1: order_id, value = "OL123456".
We get the empty sapce for each field in the result sets. I know that we can use the topping, but we have so many pages in the application and we cannot do that. can someone help how to solve this problem. I am using the database Ingres and connection with another datasource in CF Admin.
Srinivas
I used the query of queries and the problem is solved.
-
Concatenate the result set into a SQL string
Hi, I need help with the concatenation of a result set in order to avoid the duplication of data.
I have 3 tables:
SCRIPT
ID - number PK
DATE - day
TITLE - Varchar2
AUTHOR
A_ID - number PK
A_Name - Varchar2
SCRIPT_AUTHOR
ID - number - PK, FK of Script.ID
A_ID - number PK, FK of Author. A_ID
I need the list of all authors for each script on a single line, for the moment I have the following SQL code:
Select S.Title, SA. A.ID
SCRIPT S, SCRIPT_AUTHOR SA
WHERE SCRIPT.ID = SCRIPT_AUTHOR.ID
and as expected it's returning a dataset as follows:-give me 2 lines in this case for a script:
S.TITLE, SA. A_ID
1, 1
1, 2
What I'm really after is a result set that combines the two authors in this case a file: 1, 1:2, so I don't have 1 line by script.
Scripts can have many authors, and I want to do it for a lot of scripts at a time.
I hit a blank on how to do it, is it possible to do it with SQL?
Thank you very much
p.s. help: Oracle Database 10g Enterprise Edition release 10.2.0.3.0Hello
This is called 'aggregation of chain.
[AskTom.oracle.com | http://asktom.oracle.com/pls/asktom/f?p=100: 11:0:P11_QUESTION_ID:2196162600402] shows several ways to do so.I recommend the first, the function defined by the user STRAGG, that you can copy from this page.
Once you have installed STRAGG, your query is simply
Select S.Title , STRAGG (SA.A.ID) AS sa_id_list FROM SCRIPT S , SCRIPT_AUTHOR SA WHERE SCRIPT.ID = SCRIPT_AUTHOR.ID GROUPB BY s.Title;
On Oracle 10 (and more) you can have a similar function, the WM_CONCAT (property WMSYS), already installed.
WM_CONCAT is not documented, so you can't use it in your Production applications. -
How can I change the setting on my Apple to change the settings for automatic renewal at normal setting
I get a fresh fresh message on my credit card and I need to stop this setting automatic renewal for apple applications.
If you mean cancel the renewal auto-renewal subscription and then follow these instructions: view, change or cancel your subscription - Apple Support
(I asked for your message to be moved to the forum of the iTunes Store, where you have posted is for questions about the iTunes U app.)
-
I am constantly this message and it quite disturbing. Please, help me to turn it off.
What I found in Google is this link, and there is no answer.Message is:
E-mail % has already been added as an application for mailto linksHello
Sorry for this problem, it is very annoying sound! This occurs whenever you try to click on a link of e-mail on the Web sites, or is it at other times? It seems that there is a problem with the default mail client specified in Firefox. The first think you should do is verify that the e-mail client that you are using is indeed defined as the default system. Depending on the client you use, this could be done in a number of different ways.
The other thing you could try is to reset Firefox, which restores the common Firefox settings that can cause problems. Don't worry, you won't lose your bookmarks saved, passwords and other important things, but it will restore all the other settings, leaving you with a fresh start.
If you think something would open to try, here are the instructions: Refresh Firefox – reset the parameters and modules
Please let me know if this solves the problem, so I can check this off my list of todo - or please let me know if you need help, and I'll have to do this new sort it out for you!
Thank you
David -
a warning bar appears titled [JavaScript Application] and inside, it reads: uninstal set.
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > appearance/themes).
- Makes no changes on the start safe mode window.
See:
-
I bought this new comp with windows 7 already installed. has worked fine up intill a week or two it y a. I installed a new game, and after installation, I press launch to play it and pop up with a message saying not sufficient privileges: you must be an administrator when you run this application for the first time. also, I thought that I must be the administrator when I tried to launch the disk defragmentation. my account is the administrator account so I don't understand why they say that.
I'm sorry. I was reading through additional FAQS regarding the same problem. I saw where someone said to try to add another admisistrator account to try to take on the former. but I had no luck with this ether. I also downloaded the program of the UAC, and I turned it off, reset my computer and still no change to my problem. I also tried to download the MSE restore tool, but I found myself with a message saying that I have no MSE
Sorry, the MSE tool is to set the MSE when its broken.
UAC controller Tool v1.0 can be used to control the
The UAC settings.However, I suggest you restart the PC and after BIOS hold the F8 key
and when the Windows Startup Menu appears, select Mode safe mode with networking.Now, you will enter Safe Mode. On the page to connect, you will see the
Standard Windows administrator click it to open a windows session, press and hold
in mind, the password can be blank.Once you have done that make a new account administrator and giv it a name.
Restart the PC. That you did this newspaper using the new account.
Once you have done that decide what to keep with your current administrator
account once you've done it restart the PC, BIOS hold down the F8 key and
Select Mode safe mode with network and enter dependencies the Standard Windows administrator.Go to control panel-> user accounts control and security for the family-> user accounts, then
Select manage another account. In the list, select the administrator account
your select and then delete the account, then it will ask you if you want to keep
files etc, it's your own decision. Itknowledge24.com -
Programming an application for blackberry
Hello
Can program us any application in common. So it supports all blackberry devices. If it so? Please tell me how?
Because you have compiled this application with a plu JDE 4.7, it runs by default in compatibility mode. That said, it will always display the keyboard that you see and you will not be able to run your application. If you go to Options/Applications you can turn off the coast and then see if you can do more with your application. Also search the forum for other references to the compatibility mode for more information.
Concerning your problem, you are sure that focus has actually been moved? Field in which the characters get typed in.
You have to be careful with the storm, because it can cause problems with the code to handle the change in emphasis, especially code that relies on movefocus, because the update can jump around and does not move in the order of one field to another.
-
What is the best platform to develop applications for BlackBerry 10?
Hi all
I have developed applications for BlackBerry 6 and 7 for the last 3 years, but I am very new to BlackBerry 10. I know that most of the developer would like BB 10 is something new. I have about five years of experience in the JAVA platform, but unfortunately BB 10 is not supported it unless you develop applications for Android and the port at 10 BB.
When I checked the list of programs that are supported by BB 10, I saw C/Cpp, Cascades, HTML5 and action script among them. But which one to choose? There is where I am confused. I don't have any experience in the above mentioned technologies. If I select, I need to learn from the beginning. When I went through a few posts, I got to know many people prefer to develop in HTML5, as it is a cross-platform technology. But many have said that it may have problems of performance and the native technologies like C/Cpp, waterfalls will be the best options in terms of performance.
Can anyone suggest me the best technology to start with BB10?
Cascades is based on Qt, which is a cross-platform C++ library. It encapsulates many low level BB Native API - s for easier use, but you still have direct access to these APIs if necessary. C++ syntax is similar to Java, so it shouldn't be too difficult to pass. I suggest choosing stunts.
-
There is no driver selected for the item or a set of device information
There is no driver selected for the item or a set of device information
Error message when I try to update the mouse driver or video driver. Windows 7Hello
Thanks for posting your question in the Microsoft Community.
From your problem description, I understand that you can not update the driver. Please let me know if this isn't the problem that you are experiencing.
I understand the inconvenience caused to you. I will help you solve the problem.
Before troubleshooting, I have little information about the issue.
- When exactly do you get this error?
- Did you of recent changes to the computer before this problem?
Try installing the driver in compatibility mode. Here are the steps how to install drivers in compatibility mode.
(a) place the driver on the OfficeSetup file.
(b) make a right click the driver installation file and select Properties or compatibility tab select the appropriate options in entries to the displayed image.
(c) click apply, and then click OK.
(d) right click on the file and select run as administrator to install.
I also recommend that you contact the manufacturer of the hardware device, and you learn about the support of future drivers for Windows 7.
If the problem persists, post your reply with results and questions above. We are happy to help you further in the advanced troubleshooting steps!
It will be useful.
-
Group by result set divergence
Hi all
Please help me on below.
When I group by result set is as below.
SQL > select count (*), the Group of the stg_famis_equip, by attribut2, attribut2 having count (*) > 1;
COUNT (*) ATTRIBUT2
---------- --------------------
2 FM023566
2 FM021481
2 FM025833
2 FM058806
Where, if I query with WHERE clause for certain values as below.
Please suggest me on, why it is show as count = 2 and when questioning with only WHERE clause (some time no record). I do one any error... Please suggest me.
SQL > select attribut2, attribut3 from stg_famis_Equip where attribut2 = 'FM023566';
ATTRIBUT2 ATTRIBUT3
-------------------- --------------------
FM023566 12
SQL > select attribut2, attribut3 from stg_famis_Equip where attribut2 = 'FM021481';
ATTRIBUT2 ATTRIBUT3
-------------------- --------------------
FM021481 11
FM021481 12
SQL > select attribut2, attribut3 from stg_famis_Equip where attribut2 = 'FM025833';
ATTRIBUT2 ATTRIBUT3
-------------------- --------------------
FM025833 07
FM025833 12
SQL > select attribut2, attribut3 from stg_famis_Equip where attribut2 = 'FM058806';
no selected line
I'm on the Oracle 11 g Enterprise Edition Release Database 11.2.0.2.0 - 64 bit Production
Thank you
This means that:
FM023566 has the new line and return at the end of the string (13/10)
FM021481 is clean
FM025833 is also clean
FM058806 has the new line and carriage return to then end of the string
Trim will replace spaces when not specified what should be trimmed. If you could do a RTRIM (attribute2, CHR (13): 10 to clean the data.)
HTH
-
Assessment of EL expression for game on AMX results page empty
Hello
I have a REST service with some search criteria. If the search criteria fits well, I'll get a set of results to display on a page AMX. If the search criteria are too narrow, I get a message from the REST service and the result set is empty.
In this case, I want to display a message (outputText) that the search does not work. I try to define an EL for the 'Rendering' property using the keyword 'empty '. But all my attempts so far using bindings. FlightsEntity.collectionModel or bindings.findFlightsByParametersIterator have failed, that is, these objects are not empty in this case. Unfortunately, CRG does not evaluate EL in debug mode to see which expression would give the desired (true) result.
All tips EL expression I could use to test for an empty results set?Kind regards
JürgenTry this:
#{bindings.yourIteratorName.iterator.totalRowCount == 0}
Maybe you are looking for
-
Can't Flash BIOS for Satellite A100 - 162 PSAA9E
Hi all, I tried flashing my BIOS of the laptop but it always restart when it comes to flashing phase. I use the WinPhlash of + "drivers & Bios +.
-
I had a few actual creation difficulty one Hotmail account for my daughter. I'm using Windows (newer) 8. I have created an account for it, but can't make it work. Everytime I try to sign into his Hotmail I get the following error: "Hotmail 44 look
-
No communication with the modem, lack of driver (Vista)
I am a novice on computer, and I'm tired of trying to get this Vista computer will. No modem/internet. I tried to run the restore disc, but still no luck. It is an Emachines T5088 with a 56K modem, basic Windows Vista Edition and Pentium 4 processor
-
String 'command prompt' should I type to get windows vista to start in Vista?
I have an acer laptop that someone gave it to me. They said that the operating system has been "liquidated" hard drive. How can I get vista to boot using a command prompt?
-
DRIVER FOR VISTA OR DELL 1600N MFP PRINTER NOT TO "DRIVE" THE FUNCTIONS.
DRIVER FOR VISTA FOR DELL 1600N MFP PRINTER NOT TO "DRIVE" THE FUNCTIONS. MORE SPECIFICALLY: 1) I CAN'T SCAN; 2.) I CAN'T REDUCE THE SIZE OF THE PAGE WHEN I PRINT. (3.) I CAN NOT SEND FAX. I INSTALLED THE RECOMMENDED DRIVE, BUT IT DOES NOT WORK. MY G