PLEASE HELP ME! COLUMNS SPLIT IN ORACLE DISCOVERER
I have a certain column of discoverer I need to separate:
Column a:
ID
KING * 231333
HAJAR * 29283893
MDDDEDD * 21893838
What I need to do is separated by the * do anything:
Should look like this, at the end:
NEW COLUMN ID
KING * 231333 231333
HAJAR * 29283893 29283893
MDDDEDD * 21893838 21893838
I don't know how to do this calculation, can someone please help me?
Thank you in advance for your help!
The question is simple:
I'm trying to do is bring anything after the * in the column Id, no matter how long the name before the * but my calculation is far from the:
Here is an example of what might look like my data, but what I need to do:
Id NEW COLUMN
TNET * 231333 231333
AMER * 29283893.2 29283893.2
VILLAGES * 21893838 21893838
Do you know how to make this calculation?
Answer: SUBSTR (id, INSTR(id,'*',1) + 1, 999)
This was sent to me from someone on here saying "try to see if that helps" and he did, which is why I said thank you.
Tags: Database
Similar Questions
-
ID e-mail Split/search oracle of single column
I have a column name is email. It has sepeared of the id for messaging with commas
For example)
E-mail
--------
[email protected], [email protected]
[email protected], [email protected]
in my case, I want to take count of the particular mail id. (Ex: [email protected]) in all the lines.
This means that the number of times that particular mail id is coming.
Please help me how I can do... I am very new to oracle.
Thanks in advance,Hello
Welcome to the forum!
It's what you reqauested:
SELECT COUNT (*) AS found_cnt FROM table_x WHERE ',' || email || ',' LIKE '%,[email protected],%' ;
We cannot simply look for '[email protected]', because it may be a substring of another address, for example '[email protected] '. (This is called the problem of 'mother is in chemotherapy'). To solve this, we always seek a comma immediately before and after what we are really looking for.
The problem with that is the target string will not have a comma in front of him, if he happens to be the first point of the lsit, and he will not have a comma after it, if if is being the last. To solve this, we can concatenate comma in the source string (before the LIKE operator).Published by: Frank Kulash, April 6, 2010 09:33
-
Hai friends
I am new to oracle discoverer. I downloaded oracle discoverer administration 4.1.37 edition and edition 9.0.4 desktop that I need to create a few sample reports on the discoverer of the oracle.
We don't use any oracle database, we use only MYSQL... In the document of the administration, they have mentioned oracle discoverer has a ability to use ODBC. After that, I installed the version two in my system. I tried to connect to the MYSQL database via directors edition. First he ask me to create EUL so I tried to create EUL, but it returns an error...
What is needed is what version of discoverer should I use to create reports? and also, we use only MYSQL then, how can I connect to MYSQL using this version
I tried a lot of documents, but I'm not able to get that I have to follow...
Please help me
The following text was the error message that I get everything by creating the EUL
[IMG] http://img259.imageshack.us/img259/2391/47679896.png
Thank you
S.SurentherHello
The minimum you need to run the discoverer is BI tools of discoverer (Admin and office) for windows available from here and the database is available from here.
Alternatively, you can install the tools on the web, more and Viewer where you download Business Intelligence from here
There are several different versions of discoverer and tools available.
Rod West
-
Please help me to find the link to downlaod oracle BI experience
Please help me to find the link to downlaod oracle BI experience
I got experience in obiee, so where can find
Thanks in advanceHello
Discoverer belongs to BI Standard Edition. You can load BI from here. You need the 2 CDs for Discoverer Plus and Viewer and the CD-ROM of the discoverer Admin tools and office.
You must also apply the patches to go to the latest version. The LearnDiscoverer blog has details of the latest patches.
Rod West
-
Hi, after all stages of extraction of data from oracle to oracle during the execution of command "start extract ext1" his error giving this handler does not run both source and target, can you please help me. Thank you
Hello
The setting should be as below, and not only the port number should be...
PORT 7809
Kind regards
Veera
-
I have a table of the adf, I added a column that contains a button that I created, when I click it must remove this row in the table, but it is not, please help
I don't understand. You use vo and eo for you to use business components.
Again, this kind of code call in trouble.
You must post the changes to make them visible to the eo find vo. You must then run the query for the changes in the business layer strips then you must update the iterator he table is based on.
In your code I see that happen, hooch maybe because it is more often than not formatted and undocumented.
My advice is to do a small test case that you can manage with easy sql. Once you get it to run transfer you the results to the actual application.
Timo
-
Hello
I have an emp_job_det with a, b, c columns table. Note that this TABLE ALREADY has DATA OF THESE COLUMNS
IAM now add a new column "D" with forced not null
Fistly I alter the table by adding the single column "D", if I do, the entire column would be created with alll of nulls for the column DEFAULT D
ALTER table emp_job_det Add number D; -do note not null CONSTRAINT is not added
Second... If I try to add the constraint not null, get an eoor as already conatained null values...
(GOLD)
In other words, if I put the query
ALTER table emp_job_det Add number D NOT NULL; -THROWS ERROR AS TABLE ALREADY CONTAINS DATA
So my question is how how can I add a new column with a constraint not null, table already has the data, without falling off the table
Please help me on this issue...
Add the column without constraint, then fill the column. Once all the rows in the table are given in the new column, and then add the constraint not null.
-
New to oracle database. Can you please help?
I click on Start > > sqlplus
I enter username System
Password then *.
* I leave the empty host string.
I hit connect system / *.
can * connect Alexandre / *.
then I Pat grant connect, resource of Alexander;
Then I type host and a command prompt window opens.
He has the command line C:\oracle\product\10.2.0\db_1\BIN >
All is well so far. I get connected and is also granted to connect.
Before this line I type edit xyz.sql
But I get a message that says * "Edit" is not recognized as internal or external command, an executable program or batch fichier.*
I AM NOT ABLE TO WRITE A PROCEDURE, BECAUSE I GET THE ABOVE MESSAGE.
I use Windows Vista Home Premium. I installed Oracle 10 g Exprees Edition for Vista (10.2.0.3)
Please help me.
Thank you.sqlplus is what you want. Alternatively, the SQL Developer may be more intuitive if you're used to a GUI IDE, (that's another topic).
host is a sqlplus command that opens a command shell - you can get the world BACK on the Oracle database, where PL/SQL does not exist. It is used to temporarily leave the database and do something else at the system level without losing the current state of your sqlplus session.
Short answer: you need not order host for what you are trying to do. It is only adding to the confusion.
Example step by step (it's on Windows Vista Enterprise... Vista Home is the same)
I open a windows command shell
C:\Users\Brian>dir c:\ Volume in drive C has no label. Volume Serial Number is 74D4-C846 Directory of c:\ 05/05/2009 10:31 PM
Autodesk 09/18/2006 04:43 PM 24 autoexec.bat 09/18/2006 04:43 PM 10 config.sys 10/05/2010 10:04 PM inetpub 03/08/2009 04:47 PM PerfLogs 10/11/2010 08:52 PM Program Files 09/13/2010 06:55 PM Users 10/05/2010 10:05 PM Windows 2 File(s) 34 bytes 6 Dir(s) 3,747,790,848 bytes free Clearly, I'm in the BACK at this point. Connect to the database using sqlplus
C:\Users\Brian>sqlplus SQL*Plus: Release 10.2.0.1.0 - Production on Sat Feb 12 08:55:41 2011 Copyright (c) 1982, 2005, Oracle. All rights reserved. Enter user-name: bbontrag Enter password: Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production SQL> select * from global_name; GLOBAL_NAME -------------------------------------------------------------------------- XE SQL>
Clearly I am now in the database
SQL> host Microsoft Windows [Version 6.0.6001] Copyright (c) 2006 Microsoft Corporation. All rights reserved. C:\Users\Brian>dir c:\ Volume in drive C has no label. Volume Serial Number is 74D4-C846 Directory of c:\ 05/05/2009 10:31 PM
Autodesk 09/18/2006 04:43 PM 24 autoexec.bat 09/18/2006 04:43 PM 10 config.sys 10/05/2010 10:04 PM inetpub 03/08/2009 04:47 PM PerfLogs 10/11/2010 08:52 PM Program Files 09/13/2010 06:55 PM Users 10/05/2010 10:05 PM Windows 2 File(s) 34 bytes 6 Dir(s) 3,745,767,424 bytes free The host of sqlplus command opens a new command shell and drops me it. I do order things (file system) Shell instead of being able to issue sqlplus commands until I have to leave the session host.
If you try to change xyz.sql NOW you are looking for a command on a computer named edit.exe or edit.cmd or something. My machine happens to have one - it is an old BACK (not Notepad) text editor
If you do not have edit.exe on your machine you get the DOS error ' 'Edit' is not recognized as internal or external command an executable program or batch file. "
C:\Users\Brian>exit SQL>
I leave the shell and return to sqlplus. Here, I run the SQLPLUS to change the command, which opens your default text editor (usually Notepad)
SQL > edit xyz.sql
Notepad opens and I enter the following command:
create or replace procedure foo as begin dbms_output.put_line('Hello, World'); end; /
I save the file and exit in Notepad. I'm in sqlplus.
SQL> set serveroutput on size 1000000 SQL> @xyz.sql Procedure created. SQL> exec foo Hello, World PL/SQL procedure successfully completed. SQL>
-
New Oracle database. Can you please help?
I click on Start > > sqlplus
I enter username System
Password then *.
I leave the empty host string.
I type connect system /*.
then connect Alexandre /*.
then I Pat grant connect, resource of Alexander;
Then I type host and a command prompt window opens.
He has the command line C:\oracle\product\10.2.0\db_1\BIN >
All is well so far. I get connected and is also granted to connect.
Before this line I type edit xyz.sql
But I get a message that says * "Edit" is not recognized as internal or external command, an executable program or batch fichier.*
I AM NOT ABLE TO WRITE A PROCEDURE, BECAUSE I GET THE ABOVE MESSAGE.
I use Windows Vista Home Premium. I installed Oracle 10 g Exprees Edition for Vista (10.2.0.3)
Please help me.
Thank you.I'm not sure what you're asking. Are you try to use a command "modify" in MS-DOS after hosting on, or simply change a file or a command?
You can start an editor using the comamnd of 'Edit' in SQL * MORE using the command "edit" ("ed" for short). No need to host outside. The default editor is Notepad, but you can specify your own editor (with path) by using the command (not tested; I have not used it for a long time)
Set Editor = "c:\program files\myeditor\my_editor.exe".
that can be put into a file called login.sql to automataically value for a sql * plus term start
I'm not familiar with Vista, but XP requires the definition of 'Edit' where exists in your PATH variable if you try to use a command "Edit" under MS-DOS.
-
Please help - value of the long column of SQL report required in a separate cell
Hello.
I need to create a SQL report with the structure as below:
Country city vertical Business details for the State (detail desc)
MY Quincy Healthcare US
It is a detailed desc value that is displayed in a different cell.
It is a detailed desc value that is displayed in a different cell.
It is a detailed desc value that is displayed in a different cell.
It is a detailed desc value that is displayed in a different cell.
US MY Braintree, HE
It is a detailed desc value that is displayed in a different cell.
It is a detailed desc value that is displayed in a different cell.
It is a detailed desc value that is displayed in a different cell.
I came across a solution where you can hide/show the column value in another cell. But my requirement is that it should be displayed when the page opens, and the user will not have to click a button to see the value. This is mainly for their presentations, and printing. so its very annoying for them to click on the buttons so much to see the value of desc of detail for each record. I'm new to Java script, please helpI'm not sure to understand your needs - you are showing us 2 data lines, lines 7 or 9? You want the long description of detail on the same line, or below?
I'll go on the assumption that you are showing us two rows, and long descriptions in this example are found along 3 to 4 lines, and you want long descriptions under the details. In this case, I suggest using "column name" models They are much easier to use as they appear when you look at everything first, so bear with me.
Under 'shared components', select 'Models' and click then on create yellow > button. You create a report model, from scratch. On the last page of the wizard, select "Named column (model line)" for the type of model. This will create a model rather generic (and useless), which you'll have to edit; I don't know why they chose to not send you directly in the editor. When you change it, you will see that the single field whose value is 'Model line 1', and it is set to:
#1# #2# #3# #4# #5# To meet your needs with basic features, change it to something in the sense of:
#COUNTRY# #STATE# #CITY# #VERT# #DETAILS# Then, you probably want to put something in the position of the column model, such as:
Country State City Vertical Business Details Applies to whatever you want, of course the CSS styles.
Using the model is simple: If your report, select the model and make sure that your SQL returns values using the column names specified in your model. Otherwise, you will see "#COUNTRY #" literal text in your report.
You can get fancy with these, of course, as the application of different styles for alternating rows, but I'll leave that as pretty good to help you get started (I hope).
-David
-
What are the different types of tables in oracle - please help
I want to know the different types of tables of orcle... Please help meThere are seven types of tables in Oracle.
1. organized bunch of tables
2 index organized tables
3 clustered index tables
4 hash clustered tables
5. nested tables
6. global temporary tables
7 tables of objects
Source: http://www.adp-gmbh.ch/ora/concepts/tables.htmlBut if you ask the types of tables in sense of the uses they are n types:
1 step tables
2. operational tables
3. functional tables
4. layout tables
5 archive tables
6. other tables
Source: http://www.databasejournal.com/features/oracle/article.php/3616476/Types-of-Tables-in-Oracle.htmAnd of course, the full details can be found in the documentation.
HTH
Girish Sharma -
Poplist table from advanced - please help to solve this
Hi all
I created a page, 2regions-
Region1 - display the header data (double column by default) - dynamic where clause to display data
Noire2 - Advanced Table, where I need to add lines and insert into db
I converted a textinputfield in messagechoice (currencycode) and tried the partial page rendering to hide other textinput fields based on the currency code:
I managed the button Add a line to the PFR to create the new line for advanced table.
And also written logic for PPR hide fields according to tuturial OA.
Whenever I have add the newline is added, but the poplist does not work. It shows an empty list.
Could you please help if there is nothing I can do with logic advanced table?
Thanks in advance,
Suman
Ok. The decline is down the list of values for all lines?
It seems that the query behind the VO will figure not return all rows.
oracle.apps.xxdm.ecrc.poplist.server.xxCurrencyCodesVO
See you soon
AJ
-
Please help to read the XML with XMLTable
Hi gurus,
I'm not very familiar with XML parsing. It seems to me that it should be very easy to get the data. For some reason, I'm having a problem to get the data.
SELECT *.
OF e util.hlsr_online_entries,.
XMLTABLE)
XmlNamespaces)
' http://tempuri.org/ ' as "dt",
("urn: schemas-microsoft-com: XML-diffgram-v1" as "dg")."/ DataTable / dg:diffgram/DocumentElement/JrShowCustomerHeifers.
PASSAGE XMLTYPE (e.entry_data)
COLUMNS
SeqNo TO the ORDINALITE,
DocumentID NUMBER PATH "DocumentID",.
PATH of VARCHAR2 (100) ClubName "ClubName") as test
WHERE e.ref_id = 33422The query above does all the data for me. My hunts is the problem with the tab DocumentElement. I tried a different variant management.
Please help me to resolve the application
I have the XML document following the DotNet developer
<? XML version = "1.0" encoding = "utf-8"? >
" < DataTable xmlns =" http://tempuri.org/ ">
< xs: Schema id = "NewDataSet" xmlns = "" "xmlns: XS =" " http://www.w3.org/2001/XMLSchema " "xmlns:msdata ="urn: schemas-microsoft-com: xml-msdata" >
< xs: element name = "NewDataSet" msdata:IsDataSet = "true" msdata:MainDataTable = "JrShowCustomerHeifers" msdata:UseCurrentLocale = "true" >
< xs: complexType >
< xs: Choice minOccurs = "0" maxOccurs = "unbounded" >
< xs: element name = "JrShowCustomerHeifers" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "DocumentID" type = "xs: int" minOccurs = "0" / >
< xs: element name = "ClubName" type = "xs: String" minOccurs = "0" / >
< xs: element name = "Name" type = "xs: String" minOccurs = "0" / >
< xs: element name = "FirstName" type = "xs: String" minOccurs = "0" / >
< xs: element name = "PreferredName" type = "xs: String" minOccurs = "0" / >
< xs: element name = "Email" type = "xs: String" minOccurs = "0" / >
< xs: element name = "Exhibitor" type = "xs: String" minOccurs = "0" / >
< xs: element name = "AnimalName" type = "xs: String" minOccurs = "0" / >
< xs: element name = "RegistryNo" type = "xs: String" minOccurs = "0" / >
< xs: element name = "DateofBirth" type = "xs: String" minOccurs = "0" / >
< xs: element name = "NameofSire" type = "xs: String" minOccurs = "0" / >
< xs: element name = "SireRegistryNo" type = "xs: String" minOccurs = "0" / >
< xs: element name = "NameofDam" type = "xs: String" minOccurs = "0" / >
< xs: element name = "DamRegistryNo" type = "xs: String" minOccurs = "0" / >
< xs: element name = "Tattoo" type = "xs: String" minOccurs = "0" / >
< xs: element name = "SecondaryTattoo" type = "xs: String" minOccurs = "0" / >
< xs: element name = "UniversalIDNumber" type = "xs: String" minOccurs = "0" / >
< xs: element name = "Tattoo_Location" type = "xs: String" minOccurs = "0" / >
< xs: element name = "Secondary_Tattoo_Location" type = "xs: String" minOccurs = "0" / >
< xs: element name = "OracleBreedID" type = "xs: int" minOccurs = "0" / >
< xs: element name = "JrValidationBreedName" type = "xs: String" minOccurs = "0" / >
< xs: element name = "ValidationDate" type = "xs: DateTime" minOccurs = "0" / >
< xs: element name = "ValidatedBy" type = "xs: String" minOccurs = "0" / >
< xs: element name = "ValidationComment" type = "xs: String" minOccurs = "0" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< / xs: Choice >
< / xs: complexType >
< / xs: element >
< / xs: Schema >
< xmlns:msdata = diffgr:diffgram "" urn: schemas-microsoft-com: xml-msdata "xmlns:diffgr =" urn: schemas-microsoft-com: XML-diffgram-v1 ">"
< DocumentElement xmlns = "" >
< JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers1" msdata:rowOrder = "0" >
< > 18442 DocumentID < / DocumentID >
< ClubName > Perrin FFA < / ClubName >
Hamman < name > < / LastName >
< FirstName > Charles < / name >
< email > [email protected] < / email >
< setting > hammam, Charles < / Exhibitor >
< > 113 AnimalName < / AnimalName >
< RegistryNo > C1026447 < / RegistryNo >
< DateofBirth > 14/01/2013 < / DateofBirth >
< NameofSire > 808 808 DAYS of MATCH LH < / NameofSire >
< SireRegistryNo > C961101 < / SireRegistryNo >
SADIE 7/7 < NameofDam > < / NameofDam >
< DamRegistryNo > C941067 < / DamRegistryNo >
< > 113 tattoo < / tattoo >
< SecondaryTattoo / >
< UniversalIDNumber > 1194F020 < / UniversalIDNumber >
< Tattoo_Location > TATTOO - left ear < / Tattoo_Location >
< Secondary_Tattoo_Location / >
< OracleBreedID > 6383 < / OracleBreedID >
Beefmaster < JrValidationBreedName > < / JrValidationBreedName >
< ValidationDate > 2014-11-25T 08: 39:00 - 06:00 < / ValidationDate >
< ValidatedBy > laineyb < / ValidatedBy >
< ValidationComment / >
< / JrShowCustomerHeifers >
< JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers2" msdata:rowOrder = "1" >
< > 18473 DocumentID < / DocumentID >
< ClubName > Perrin FFA < / ClubName >
Hamman < name > < / LastName >
< FirstName > Charles < / name >
< email > [email protected] < / email >
< setting > hammam, Charles < / Exhibitor >
< AnimalName > PURPLE CORALEE 349 KPH < / AnimalName >
< RegistryNo > P43461953 < / RegistryNo >
< DateofBirth > 04/11/2013 < / DateofBirth >
< NameofSire > PURPLE MOXY 22 X AND < / NameofSire >
< SireRegistryNo > P43126458 < / SireRegistryNo >
< NameofDam > TCC CORKY 6603 < / NameofDam >
< DamRegistryNo > P42457119 < / DamRegistryNo >
< > 349 tattoo < / tattoo >
< SecondaryTattoo > km/h < / SecondaryTattoo >
< UniversalIDNumber > 1194F021 < / UniversalIDNumber >
< Tattoo_Location > TATTOO - left ear < / Tattoo_Location >
< Secondary_Tattoo_Location > TATTOO - right ear < / Secondary_Tattoo_Location >
< OracleBreedID > 6389 < / OracleBreedID >
< JrValidationBreedName > Polled Hereford < / JrValidationBreedName >
< ValidationDate > 2014 - 12-01 T 11: 55:00 - 06:00 < / ValidationDate >
Hannah < ValidatedBy > < / ValidatedBy >
< ValidationComment / >
< / JrShowCustomerHeifers >
< JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers3" msdata:rowOrder = "2" >
< > 18474 DocumentID < / DocumentID >
< ClubName > Perrin FFA < / ClubName >
Hamman < name > < / LastName >
< FirstName > Charles < / name >
< email > [email protected] < / email >
< setting > hammam, Charles < / Exhibitor >
< AnimalName > LANGFORDS SWEET N SOUR 4107 < / AnimalName >
< RegistryNo > 43504761 < / RegistryNo >
< DateofBirth > 02/03/2014 < / DateofBirth >
< NameofSire > LH TNT 1017 < / NameofSire >
< SireRegistryNo > 43199794 < / SireRegistryNo >
< NameofDam > LANGFORDS LADY 2206 AND < / NameofDam >
< DamRegistryNo > 43315143 < / DamRegistryNo >
< > 4107 tattoo < / tattoo >
< SecondaryTattoo / >
< UniversalIDNumber > 1194F018 < / UniversalIDNumber >
< Tattoo_Location > TATTOO - left ear < / Tattoo_Location >
< Secondary_Tattoo_Location / >
< OracleBreedID > 6398 < / OracleBreedID >
Hereford < JrValidationBreedName > < / JrValidationBreedName >
< ValidationDate > 2014-11-24T 14:26:00 - 06:00 < / ValidationDate >
Validator < ValidatedBy > < / ValidatedBy >
< ValidationComment / >
< / JrShowCustomerHeifers >
< JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers4" msdata:rowOrder = "3" >
< > 18475 DocumentID < / DocumentID >
< ClubName > Perrin FFA < / ClubName >
Hamman < name > < / LastName >
< FirstName > Charles < / name >
< email > [email protected] < / email >
< setting > hammam, Charles < / Exhibitor >
< AnimalName > PURPLE CCC 19A LYDIA < / AnimalName >
< RegistryNo > P43406978 < / RegistryNo >
< DateofBirth > 05/02/2013 < / DateofBirth >
< NameofSire > PURPLE MB WOMANIZER 14UET < / NameofSire >
< SireRegistryNo > P42945146 < / SireRegistryNo >
< NameofDam > PURPLE CMCC NASTIA 9U < / NameofDam >
< DamRegistryNo > P42927201 < / DamRegistryNo >
< > 19A tattoo < / tattoo >
< SecondaryTattoo / >
< UniversalIDNumber > 1194F017 < / UniversalIDNumber >
< Tattoo_Location > TATTOO - left ear < / Tattoo_Location >
< Secondary_Tattoo_Location / >
< OracleBreedID > 6389 < / OracleBreedID >
< JrValidationBreedName > Polled Hereford < / JrValidationBreedName >
< ValidationDate > 2014 - 12-01 T 11: 55:00 - 06:00 < / ValidationDate >
Hannah < ValidatedBy > < / ValidatedBy >
< ValidationComment / >
< / JrShowCustomerHeifers >
< JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers5" msdata:rowOrder = "4" >
< > 18477 DocumentID < / DocumentID >
< ClubName > Perrin FFA < / ClubName >
Hamman < name > < / LastName >
< FirstName > Charles < / name >
< email > [email protected] < / email >
< setting > hammam, Charles < / Exhibitor >
< AnimalName > PURPLE SGW EDEN 12 b < / AnimalName >
< RegistryNo > P43521932 < / RegistryNo >
< DateofBirth > 02/04/2014 < / DateofBirth >
< NameofSire > first TIME's a WASTINe 0124 < / NameofSire >
< SireRegistryNo > 43123163 < / SireRegistryNo >
< NameofDam > PURPLE SM WONDER WOMAN 160Y < / NameofDam >
< DamRegistryNo > P43235169 < / DamRegistryNo >
< tattoo > 12 b < / tattoo >
< SecondaryTattoo > 12 b < / SecondaryTattoo >
< UniversalIDNumber > 1194F015 < / UniversalIDNumber >
< Tattoo_Location > TATTOO - left ear < / Tattoo_Location >
< Secondary_Tattoo_Location > TATTOO - right ear < / Secondary_Tattoo_Location >
< OracleBreedID > 6389 < / OracleBreedID >
< JrValidationBreedName > Polled Hereford < / JrValidationBreedName >
< ValidationDate > 2014 - 12-01 T 11: 56:00 - 06:00 < / ValidationDate >
Hannah < ValidatedBy > < / ValidatedBy >
< ValidationComment / >
< / JrShowCustomerHeifers >
< / DocumentElement >
< / diffgr:diffgram >
< / DataTable >
user12021633 wrote:
Regarding your suggestion, I've never used the syntax of FLWOR. I'll try to implement if I can make it work.
"FLWOR is the abbreviation of ' for Let's where Order by Return" and refers to the full form of an XQuery query expression.
Do you think it would be faster than the way I have the values?
You have used a FLWOR expression (the 'for' + 'return' part of it) in this post: Re: Please help to read the XML with XMLTable
And I have already said: do not use in this case.
Faster or slower isn't the point. Oracle will evaluate the expression in the same way.
But from a maintenance point of view, it's obviously much easier to use a simple XPath expression like this:
/DT:GetJrShowCustomerHeifersResponse / dt:GetJrShowCustomerHeifersResult / dg:diffgram/DocumentElement/JrShowCustomerHeifers
-
Change the default value of some columns in an oracle 11g table
I have a table called cust_file, its table consists of a large number of columns (one of these columns called cus_tax) and have a lot of data.
I use oracle 11g, I want to change the default value of the column cus_tax is equal 1.
I wrote
ALTER TABLE cust_file MODIFY (1 by DEFAULT cus_tax).
Table changed
but after I inserted new data to test the operation, I found that the new record has a value = null for the column cus_tax
then I tested it using the following query
Select data_default in the all_tab_columns where table_name = 'CUST_FILE' and column_name = 'CUS_TAX ';
no selected line
so please help me to change the default value of the cus_tax column.
Thanks for any help.
> but after I inserted new data to test the operation, I found that the new record has a value = null for the column cus_tax
If the INSERT included a NULL value for the column, the GET of a NULL inserted by default substitution.
SQL > create table hkc_test_10 (id_column number, data_col_1 varchar2 (5), data_col_2 varchar (5));
Table created.
SQL > insert into hkc_test_10 values (1, 'First', 'F');
1 line of creation.
SQL > select * from hkc_test_10 by 1.
ID_COLUMN DATA_ DATA_
---------- ----- -----
1 first F1 selected line.
SQL > alter table hkc_test_10 change (data_col_2 default 'TRUE');
Modified table.
SQL > insert into hkc_test_10 values (2, 'Second', NULL);
1 line of creation.
SQL > select * from hkc_test_10 by 1.
ID_COLUMN DATA_ DATA_
---------- ----- -----
1 first F
2 second2 selected lines.
SQL > insert into hkc_test_10 (id_column, data_col_1) values (3, 'Third');
1 line of creation.
SQL > select * from hkc_test_10 by 1.
ID_COLUMN DATA_ DATA_
---------- ----- -----
1 first F
2 second
3 third TRUE3 selected lines.
SQL >
Hemant K Collette
-
Please, help me to join of two tables?
Hello..
I'm using oracle 11g.
I have two tables with below description
1.esb_v_study_personnel
study_code_alias varchar2,
Site_ID number,
role_at_site_level_desc varchar2
2 esb_v_study_site
study_code_alias varchar2
Site_ID
I'm counting the role_at_site_level_desc where it is'Monitor' or 'primary monitor'
So I wrote the following query
Select study_code_alias, site_id,.
no_of_study_monitors (role_at_site_lvl_desc)
esb_v_study_site_personnel
study_code_alias IN & arg_trial_code
role_at_site_lvl_desc in ()"Monitor" "Main screen"()
Group of study_code_alias, study_site_id
order by study_site_id
using the above, I'm getting lines of 1617.
but I want to map the resultant site_id
esb_v_study_site with lines of 1647. If I want to get all the site_id in esb_v_study_site table mapping to above query.
Can you guide me on this point.
I tried with a left outer join, but still iam getting lines of 1617.
Select study_code_alias,
no_of_study_monitors (role_at_site_lvl_desc)
esb_v_study_site_personnel
study_code_alias IN & arg_trial_code
role_at_site_lvl_desc in ()"Monitor" "Main screen"()
Group of study_code_alias, study_site_id
order of study_site_id) a
LEFT OUTER JOIN
ON a.trial_no = d.trial_no et a.study_site_id = d.study_site_id
où d.study_code_alias in & arg_trial_code
Group by d.study_code_alias, d.study_site_id, a.no_of_study_monitors
order by d.study_site_id
Please help me on this?
I'm not quite sure, because your query seems to us of small missing pieces. He was probably down during some copy & paste on this forum.
I guess the reason is that the left join is performed after the group where the count on the column does not count NULL values that might be created by the outer join.
Maybe you can start with the following query and give us the results and tell us if it is always wrong and what the outcome would be expected.
example (not tested the syntax)
select d.study_code_alias ,d.site_id , count(a.role_at_site_lvl_desc) no_of_study_monitors , count(distinct a.role_at_site_lvl_desc) no2 , count(*) no3 from esb_v_study_site d left join esb_v_study_site_personnel a on a.trial_no=d.trial_no and a.study_site_id=d.study_site_id and a.role_at_site_lvl_desc in ('Field Monitor','Primary Monitor') where d.study_code_alias IN (&arg_trial_code) group by d.study_code_alias,d.study_site_id order by d.study_site_id;
BTW: If you read the FAQ in the upper right corner, here, he said how well sql zip code search.
Maybe you are looking for
-
Unable to transfer data to external hard drive from El Capital upgrade
Hi all, I was wondering if anyone has had the same issue as me or can help. I have an external drive (Seagate 1 TB) that I use to transfer files to and from my Mac Air (2012 i5 4 GB). Since the recent upgrade to El Capitan, I was able to see and ac
-
With the latest version of Firefox, my decreased printing choices
When I hit print on the file menu, it used to give me an option of derivative of part of a page and print only the selection.She's not done that after the most recent update of Firefox.How can I get it back?Patches that I have been offered on the pag
-
Re: a required component is not found
Me too! Analysis of error code 4, [(2,0,80040154), (0,0,0), (3,56,0)] Scan on L7590 The doctor analysis says it works fine. I've even heard do the scan test (with the scan doctor) but when he said okay, now try you it, I received the same message as
-
HII everybody... I'm new here just started today! Ineed help concerning the new model (1599usd) base Acer Predator 17... I wanted to know about its gpu... This model also has 980 m 4 GB nvidia GPU or it has 970 m? I also wanted to know about the inte
-
I use win xp pro 32 bit and want to update for win 7 pro, how can I do? I have
Hi I bought a new PC and need to upgrade all these years I was with win XP pro 32 bit, I need to switch to Win 7 pro. 64 bit...what I have to buy a new copy of license or just pay the amount of the upgrade to the new version of windows? If so how do