Filtering rows based on the value of the field
HelloI have something like this:
create table stuff
(
Avalue varchar2,
anothervalue varchar2,
thirdValue varchar2,
aNumber number
)
INSERT INTO stuff Values ('abc', 'cde', efg', 2);
INSERT INTO stuff Values ('abc', 'cde', efgggg', 4);
INSERT INTO stuff Values ('abc', 'xxx', efg', 1);
INSERT INTO stuff Values ('abc', 'xxx', efgxxx', 2);
INSERT INTO stuff Values ('abc', 'yyy', efg', 2);
I would like to receive the lines with the most "anumber" - value, grouped by "value" and "anothervalue" (but not "thirdvalue"). So, in this example, I want to rank 2, 4 and 5.
Someone has an idea? I think that a 'order by desc"isn't the best way here?
select avalue,
anothervalue,
thirdvalue,
anumber
from (
select s.*,
rank() over(partition by avalue,anothervalue order by anumber desc) rnk
from stuff s
)
where rnk = 1
/
AVALUE ANOTHERVAL THIRDVALUE ANUMBER
---------- ---------- ---------- ----------
abc cde efgggg 4
abc xxx efgxxx 2
abc yyy efg 2
SQL>
SY.
Tags: Database
Similar Questions
-
In the form of table-update of rows based on the selection of the checkbox
Hi all
I have a tabular layout with line selector. I need to update manually checked columns, how would write a process audited records updated?
Something like this:
Thank you very much.BEGIN FOR i in 1..apex_application.g_f01.count LOOP IF apex_application.g_f01(i) is not null THEN UPDATE TEST_USERS set USER_ID = :P14_TO WHERE rowid = :APEX$ROW_ID; COMMIT; END IF; END LOOP; END;
You can refer to the line that you want to process through the value stored in the box.
If you use apex_application.g_f01 (i) to make reference to the line and you want to update the row based on the ROWID in your request, your SQL query should have the box as follows:
apex_item. CheckBox2 (1, rowid)
Then your PLSQL process would be like this:
BEGIN FOR i in 1..apex_application.g_f01.count LOOP IF apex_application.g_f01(i) is not null THEN UPDATE TEST_USERS set USER_ID = :P14_TO WHERE rowid = APEX_APPLICATION.G_F01(i); COMMIT; END IF; END LOOP; END;
I hope this helps.
Cheers, Pete
-
How to replace filtering engine based on the Windows Component?
HI - how to replace filtering engine based on the Windows Component?
See the link below. This fix is well worth trying, but if your system has been damaged by malicious programs such as Sirefef there may be more issues involved.
blogs.technet.com/b/asiasupp/archive/2011/12/27/error-code-0x80070424-with-Windows-Firewall-and-quot-base-filtering-engine-service-quot-not-available-in-services-database-list.aspx
-
The default value based on the field from another table to a custom object
I'm trying to set the default value to a field in the custom object to the value of a field of account. I tried the syntax 50 ways different and just don't get the case. The label for the account field displays the form of s/n, the integration of the tag is ltDBA_ACCT and it appears in the fx reports area as Account.Text_22.
The field of custom object that I am triying update is also called s/n, which was originally the required field 'NAME '. The name of the table, account, should it be included? Do I need a function to the field?
I've updated the external ID using the line with syntex < ID > ID (at least higher ID) so I know that it is possible to define a default value, but s / < n >, < ltDBA_ACCT >, 'account '. "" S/n "and so on are simply not working.
If anyone knows how to get into what I would be really grateful for the help.OK, so if you default a field to the value of another object, you must use the JoinFieldValue function. I think you understand that, based on your original post, but I want to be sure you do.
Then this won't work by default if the folder is created from the object that you want to join the because a default works in record creation and the ID must be available so that it works correctly. It will not work if you choose the record of the related object after that registration of the custom object is created. You can set the default after, but that does not meet your requirements.
The syntax of the default are the following: JoinFieldValue (ref_record_type, foreign_key, field_name).
In your case, ref_record_type is '
', foreign_key is [ ] and field_name is ' '. The best way is to determine what is the name of the field to create a new workflow for the account and use the Workflow Rule Condition expression builder to choose your field ("DBA") in the list. The value returned by the expression builder must be placed in the field_name variable in the function JoinFieldValue (minus the parentheses and quotes). Give it a shot and let me know how you do.
Thom -
Rows based on the timestamp column
Hi Experts
I'm trying to get the last 3 records based on the timestamp column. But I am not able to understand where I should start... ?
To make it more clear
I have the following data
I want toid date 1 07/03/09 3:57:55.000000 PM 2 08/03/09 9:23:55.000000 PM 3 05/03/09 7:53:55.000000 PM 4 08/03/09 5:41:55.000000 PM 5 06/03/09 8:50:55.000000 PM
Thanks and greetings2 08/03/09 9:23:55.000000 PM 4 08/03/09 5:41:55.000000 PM 1 07/03/09 3:57:55.000000 PM
Saurabh Sharmaselect * from ( select * from x order by dt desc ) where rownum <= 3
Published by: Alex Nuijten on March 10, 2009 11:31
-
Calculate the price based on the field
Hello
My apologies, I know it's a very basic question, but I can't understand the correct syntax for the custom calculation Script necessary to produce the total cost in my form (I just received Acrobat Pro today).
I have the user fill in the quantity field and then I try to set the TOTAL field to calculate the cost by multiplying the quantity by the price of $29. I thought it was simple, like writing a formula in Excel, but it doesn't seem to work that way and I can not find all resources on Adobe.com or online who point me in the right direction. Any help anyone can offer would be greatly appreciated.
It might be easier to use the option of simplified field notation, in which case you must enter:
29 * QTY
If you want to use a custom calculation script, it could be something like:
Custom calculation for a field text script
(function () {}
Get the value of the quantity, as number
var qty = + getField("QTY").value;
Calculate the value of this field if the quantity is greater than 0
If (Qty > 0) {}
Event.Value = util.printf ("%.2f", 29 * qty); round to the nearest hundred
} else {}
Event.Value = ""; This field blank
}
})();
If this option gives you more flexibility. you to round off and empty the field. You can also perform additional checks to ensure that the amount of sense (for example, a positive integer within a certain range) you can find more information in the Acrobat JavaScript reference, and here is a link to a tutorial introduction on how to set up calculations in PDF forms: https://acrobatusers.com/tutorials/how-to-do-not-so-simple-form-calculations
Be sure to set the computed fields read-only so that the user does not try to interact with them.
-
you place your order of rows based on the values
Hello
I have two tables for example: emp1 emp2 and
Published by: vishnu prakash on Sep 8, 2010 04:40emp1 AD_NAME VD COURSE_NOS ------------------------------ AD1 100 3 AD2 2 2 AD3 50 5 emp 2 AD_NAME COURSE ------------------------- AD1 C1 AD1 C2 AD1 C3 AD2 C1 AD2 C2 AD3 C1 AD3 C2 AD3 C3 AD3 C4 AD3 C5 i want to order the ad_name of emp2 based on highest vd order of emp1 but the order should be for alternative vd like AD1 100 AD3 50 AD2 2 AD1 100 AD3 50 AD2 2 . . . AD3 50
You mean, more like this...
SQL> ed Wrote file afiedt.buf 1 with emp1 as (select 'AD1' as ad_name, 100 as vd, 3 as course_nos from dual union all 2 select 'AD2', 2, 2 from dual union all 3 select 'AD3', 50, 5 from dual union all 4 select 'AD4', null, 2 from dual) 5 ,emp2 as (select 'AD1' as ad_name, 'C1' as course from dual union all 6 select 'AD1', 'C2' from dual union all 7 select 'AD1', 'C3' from dual union all 8 select 'AD2', 'C1' from dual union all 9 select 'AD2', 'C2' from dual union all 10 select 'AD3', 'C1' from dual union all 11 select 'AD3', 'C2' from dual union all 12 select 'AD3', 'C3' from dual union all 13 select 'AD3', 'C4' from dual union all 14 select 'AD3', 'C5' from dual union all 15 select 'AD4', 'C1' from dual union all 16 select 'AD4', 'C2' from dual) 17 -- 18 -- END OF TEST DATA 19 -- 20 select ad_name, vd, course_nos, course 21 from ( 22 select emp1.ad_name, vd, course_nos, course 23 ,row_number() over (partition by emp1.ad_name order by decode(vd,null,1,0), course) as crn 24 from emp1 join emp2 on (emp1.ad_name = emp2.ad_name) 25 ) 26* order by decode(vd,null,1,0), crn, vd desc nulls last SQL> / AD_ VD COURSE_NOS CO --- ---------- ---------- -- AD1 100 3 C1 AD3 50 5 C1 AD2 2 2 C1 AD1 100 3 C2 AD3 50 5 C2 AD2 2 2 C2 AD1 100 3 C3 AD3 50 5 C3 AD3 50 5 C4 AD3 50 5 C5 AD4 2 C1 AD4 2 C2 12 rows selected. SQL>
?
-
Combine the rows based on the value of the column
I try to combine lines based on a common value.
Data in the table:
Result A
Here are my main request...Player_ID Player_Name Team_Name Points Sequence 99999 John Smith Bulls 50 1 99999 John Smith Pistons 14 2 What i want in the output Result B Player_ID Player_Name Team_Name Points 99999 John Smith Bulls 64 (50 for Bulls)
Current query gives me the result of the result of Aselect player_id, player_name, team_name, points from ( SELECT player_id, player_name, team_name, sum(points) sum_points FROM stats_data WHERE season_id = 2008 AND points > 0 GROUP BY player_id, player_name, team_name ) t ORDER BY sum_points DESC, last_name;
(1) not entirely sure how, to combine the player_id basic data
2) once I found 1, I'm sure that by adding the ("sum_points" for "team_name") to the output can be done with a case statement, I think?Hello
Thank you.
Let me make sure I understand: If a player on two or more teams, the one with the largest value of the sequence appears in the column team_name. Others will be displayed, in the order of sequence, in the points column.
This done:
WITH gb1 AS ( SELECT player_id, player_name, team_name, sequence , SUM (points) AS sum_points , ROW_NUMBER () OVER ( PARTITION BY player_id, player_name ORDER BY sequence DESC ) AS r_sequence , STRAGG (' ' || SUM (points) || ' for ' || team_name) OVER ( PARTITION BY player_id, player_name ORDER BY sequence ) AS all_points FROM game GROUP BY player_id, player_name, team_name, sequence ) SELECT player_id , player_name , MIN (team_name) KEEP (DENSE_RANK FIRST ORDER BY r_sequence) AS team_name , TO_CHAR (SUM (sum_points)) || MAX ( CASE WHEN r_sequence > 1 THEN ' (' || REGEXP_REPLACE ( SUBSTR (all_points, 2) , ' ,[^,]$' ) || ')' END ) AS points FROM gb1 GROUP BY player_id, player_name ORDER BY player_id, player_name;
The information listed in points (e.g. '(16 pour les TAUREAUX, 4 pour les PISTONS) ') requires the aggregation of the 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 used the first option on this page, the function defined by the user STRAGG, that you can copy from this page.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. -
SQL question - aggregate rows based on the value of the columns
Hi all
DBA_EXTENTS reports on the number of starting point of measurement (column BLOCK_ID) and the size of the scale in the Oracle (BLOCKS column) blocks.
I'm trying to combine the lines of the segments of same as if their associated extensions are adjacent.
For example, assume that the data in the view are as follows:
Nom_segment Block_id BLOCKS EMP 10 8 EMP 18 8 DEPARTMENTS 26 16 DEPARTMENTS 42 8 EMP
50 16 EMP 66 8 And I want to do a set of results that looks like this:
Nom_segment Block_id BLOCKS EMP 10 16 DEPARTMENTS 26 24 EMP 50 16 I thought to use an analytical query, but I couldn't find something that meets this requirement.
Can you please help?
Hello
Here's a way to do that using the analytical SUM function:
WITH got_grp AS
(
SELECT nom_segment, block_id, blocks
, block_id - SUM (blocks) over (PARTITION BY nom_segment
ORDER BY block_id
) AS the grp
FROM the data
)
SELECT nom_segment
MIN (block_id) AS grp_block_id
SUM (blocks) AS grp_blocks
OF got_grp
GROUP BY nom_segment, grp
ORDER BY grp_block_id
;
The data you posted in response to #3:
Pini Dibask wrote:
Thanks Frank,.
If you would care to post CREATE TABLE and INSERT to your sample data and the version of your database, then I could show you exactly.
The Oracle version is 11.2.0.4
This is the CREATE TABLE and INSERT statements for the sample data:
CREATE THE TABLE DATA (NOM_SEGMENT VARCHAR2 (20), BLOCK_ID NUMBER, NUMBER OF BLOCKS);
INSERT IN DATA VALUES ("EMP", 10, 8);
INSERT IN DATA VALUES ("EMP", 18: 8);
INSERT IN DATA VALUES ("DEPARTMENTS", 28, 16);
INSERT IN DATA VALUES ("DEPARTMENTS", 42, 8);
INSERT IN DATA VALUES ("EMP", 50, 8);
INSERT IN DATA VALUES ("EMP", 66, 8);
is not the same as the data in your first post and the results are not the same, either.
The fixed difference technique involves lines don't overlap. In the sample data in response #3, 'DEPARTMENTS' lines overlap, i.e. blocks 42 and 43 belong to two segments.
-
Sort the rows based on column values
Hello
I have a table of applications in my jsff page. A columns displays the status for each line that can be successful, error, untreated.
According to the requirement, the lines should be displayed alphabetically for different status values. First of all, all the lines with the status as "Not processed" should appear in alphabetical order. Then, all the lines with 'Error' status in alphabetical order and the latest ranks with the status of 'Success'
Pointers how this can be achieved will be useful.
Hello
In the query of your view object, adds a clause: ordering by State, yourSecondColumnName.
If the natural order of your status column is different from the order of your choice (untreated, error, success), you can:
1 Add a calculated column in your query to use in the order of. For ex, add a column and named statusInt by the expression (case when status = Not_Processed then 1 when status = error then 2 3 another thing). So the order by clause will be: stautsInt, yourSecondColumnName.
2 - a more dynamic solution is to have the priority of your articles set in the db (for ex a new column in the table where the statutes are defined) and include this priority column in your query to the order you want.
Kind regards
Elias.
-
Filtering the data in row based on the setting
Hello
I have a report with the following columns:No Name mgr_role1 mgr_role_value dir_role2 dir_role_value super_role3 super_role3_value ...... 1 abc Manager 1111 Director 2222 Supervisor 4444
We can create any parameters and filters the data like this in Discoverer?I want to pass a parameter with LOV or enterable field i.e Role: If Role = 'Manager' I want to filter dir_role2,dir_role_value,super_role3,super_role3_value If Role = 'Director' I want to filter dir_role1,dir_role_value1,super_role3,super_role3_value If Role = 'Supervisor' I want to filter dir_role1,dir_role_value1,super_role2,super_role2_value
Thank you
KiranHello
You should probably create a condition for each column you are filtering on. Something like:
dir_role1 = CASE WHEN: role IN ('supervisor', 'Director') THEN: dir_role ELSE dir_role1 END
so that the column is filtered only when the role is supervisor or Director.
Rod West
-
To return a specific number of rows based on the data in a table column
Hello
I have a table named orders that has the column orderid and noofbookstoorder in addition to the other columns.
I want to query the orders table and according to the value of the value of "noofbookstoorder" that return number of lines.
For example
OrderID noofbookstoorder
3 s
2 3
3 2
When I ask the above data saying
Select * from orders where orderid = 2;
because there noofbookstoorders 3 value the query should return 3 rows and when I query
Select * from orders where orderid = 3;
He must return to 2 rows and
Select * from orders where orderid = 1;
should return 1 row.
Is it possible to do this. If Yes, then how can I write my query.
Thanks in advance.with t as ( select 1 Orderid,1 noofbookstoorder from dual union all select 2,3 from dual union all select 3,2 from dual ) select t.* from t, table(cast(multiset(select 1 from dual connect by level <= noofbookstoorder) as sys.OdciNumberList)) where Orderid =
/ For example:
SQL> with t as ( 2 select 1 Orderid,1 noofbookstoorder from dual union all 3 select 2,3 from dual union all 4 select 3,2 from dual 5 ) 6 select t.* 7 from t, 8 table(cast(multiset(select 1 from dual connect by level <= noofbookstoorder) as sys.OdciNumberList)) 9 where Orderid = 2 10 / ORDERID NOOFBOOKSTOORDER ---------- ---------------- 2 3 2 3 2 3 SQL> with t as ( 2 select 1 Orderid,1 noofbookstoorder from dual union all 3 select 2,3 from dual union all 4 select 3,2 from dual 5 ) 6 select t.* 7 from t, 8 table(cast(multiset(select 1 from dual connect by level <= noofbookstoorder) as sys.OdciNumberList)) 9 where Orderid = 3 10 / ORDERID NOOFBOOKSTOORDER ---------- ---------------- 3 2 3 2 SQL> with t as ( 2 select 1 Orderid,1 noofbookstoorder from dual union all 3 select 2,3 from dual union all 4 select 3,2 from dual 5 ) 6 select t.* 7 from t, 8 table(cast(multiset(select 1 from dual connect by level <= noofbookstoorder) as sys.Odc iNumberList)) 9 where Orderid = 1 10 / ORDERID NOOFBOOKSTOORDER ---------- ---------------- 1 1 SQL> -- And if you want to select multiple orders SQL> with t as ( 2 select 1 Orderid,1 noofbookstoorder from dual union all 3 select 2,3 from dual union all 4 select 3,2 from dual 5 ) 6 select t.* 7 from t, 8 table(cast(multiset(select 1 from dual connect by level <= noofbookstoorder) as sys.Odc iNumberList)) 9 where Orderid in (2,3) 10 / ORDERID NOOFBOOKSTOORDER ---------- ---------------- 2 3 2 3 2 3 3 2 3 2 SQL>
SY.
Published by: Solomon Yakobson, October 26, 2009 07:36
-
Filtering measure based on a value from column to RPD
Hello
I created 2 measure in RPD effectively: channel change SLA
1 success Count who is count (Response_Event_DateTime) and
2. failure Count which is count (Failure_Reason_Key)
and in the report I put filters for these measures in Edit as formula
Success: FILTER ("ALS DONE change the channel". "County of success' using ("SLA MADE the channel change"". ")" ((Right key failed"< 1))
Chess: FILTER ("ALS DONE change the channel". "County of failure" using ("ALS FACT the channel change" ".") " ((FAILURE_REASON_KEY"NOT IN (-1, 1)))
then I calculated the percentage of success /(Successes+Failures) * 100
Everything works fine, but is there a way to put these filters for the successes and failures in RPD? So that users can simply drag and drop these measures and calculate the percentage of success?
Thanks in advance
SiriYes, you can put it in SPR... Simply create 2 new columns of logic more under table "Channel change ALS MAKES"
(1) success logic column
(2) failures logic columnFor success, check the box "use logic existing columns as source", then click 3 points...
And then in the expression builder... build the formula above... IE
FILTER ("ALS DONE change the channel". "County of success' using ("SLA MADE the channel change"". ")" Key failure of reason. "<>Even for outages logic column
Make two columns in the presentation layer, and then you're done...
Thank you
Ashish -
The line formatting based on the value of a column
Hi friends
I'm trying to format the entire row based on the value of the first column in my answers.
Example, if the first value of column 'F' now, I want the row to be colorful
I can do a conditional formatting on a column, but I want to do down the line
F 8.1% 12.0%
------------------------------------------
E 5.2% 3.5%
------------------------------------------
M 2.3% 3.3%
------------------------------------------
If one has done this or suggestions please answer
Thank you
Sang AWell, the conditional formatting can be done in PivotTables until the next version, 11g. In the meantime, you two options:
(1) http://gerardnico.com/weblog/2009/04/06/obiee-cross-conditional-formatting-on-a-pivot/
(2) http://oraclebizint.wordpress.com/2008/04/29/oracle-bi-ee-101332-conditional-formatting-based-on-multiple-character-columns-in-a-pivot-table/
(3) you can use your custom column filter functionality to get your ' sales in year 20xx "and a presentation to make this dynamic variable. So you can declare an array and use the method I described above.
Good luck.
-
How to get the total number of occurrences based on the value of a column.
Hi all
It is the first time I'll ask the question here on your forum, but since then followed several threads. I guess it's now my turn to ask a question. Anyway here's the thing, I have a query that should return to count the number of rows based on the value of HOUSING. Something like this:
-----
-----WIPDATAVALUE SLOT N M 1-2 TRALTEST43S1 1 3 1-2 TRALTEST43S1 2 3 3 TRALTEST43S1 3 3 4-6 TRALTEST43S2 1 4 4-6 TRALTEST43S2 2 4 4-6 TRALTEST43S2 3 4 7 TRALTEST43S2 4 4
As you can see above, on the TRALTEST43S1 of the SLOT, there are three occurrences, so M (Total number of occurrences) must be three and this column N he's counting. It is the same with the TRALTEST43S2 of the SLOT. It's the query I have so far:
And it leads to something like this:SELECT DISTINCT WIPDATAVALUE, SLOT , LEVEL AS n , m FROM ( SELECT WIPDATAVALUE , SLOT , (dulo - una) + 1 AS m FROM ( SELECT WIPDATAVALUE , SLOT , CASE WHEN INSTR(wipdatavalue, '-') = 0 THEN wipdatavalue ELSE SUBSTR(wipdatavalue, 1, INSTR(wipdatavalue, '-')-1) END AS una , CASE WHEN INSTR(wipdatavalue, '-') = 0 THEN wipdatavalue ELSE SUBSTR(wipdatavalue, INSTR(wipdatavalue, '-') + 1) END AS dulo FROM trprinting WHERE (containername = :lotID OR SLOT= :lotID) AND WIPDATAVALUE LIKE :wip ) ) CONNECT BY LEVEL <= m ORDER BY wipdatavalue;
-----
-----WIPDATAVALUE SLOT N M 1-2 TRALTEST43S1 1 2 1-2 TRALTEST43S1 2 2 3 TRALTEST43S1 1 1 4-6 TRALTEST43S2 1 3 4-6 TRALTEST43S2 2 3 4-6 TRALTEST43S2 3 3 7 TRALTEST43S2 1 1
I think that my current query based results M and N on WIPDATAVALUE and not HOUSING that's why I get the wrong result. I also tried to use WITH instruction and it works well, but unfortunately, our system cannot accept the subquery factoring.
I know that you guys will be of help because you are all awesome. Thank you all
Published by: 1001275 on April 19, 2013 20:07
Published by: 1001275 on April 19, 2013 20:18Hello
1001275 wrote:
Hi sb92075,You are right that it is available with this version. But our system doesn't put queries that use subquery factoring.
What system are you talking about? If you really have something that prevents you from using all the features of Oacle, you should seriously think about fixing it.
Any other ideas on how we can do this without help WITH clause?
Yes; If a WITH clause is referenced that once, it can be re-written as a point of view online:
SELECT wipdatavalue , slot , ROW_NUMBER () OVER ( PARTITION BY slot ORDER BY low_number ) AS m , COUNT (*) OVER ( PARTITION BY slot ) AS n FROM ( -- Begin in-line view (got_numbers) SELECT wipdatavalue , slot , TO_NUMBER ( SUBSTR ( wipdatavalue , 1 , INSTR ( wipdatavalue || '-' , '-' ) - 1 ) ) AS low_number , TO_NUMBER ( SUBSTR ( wipdatavalue , 1 + INSTR ( wipdatavalue , '-' ) ) ) AS high_number FROM trprinting ) -- End in-line view got_numbers CONNECT BY LEVEL <= high_number + 1 - low_number AND low_number = PRIOR low_number AND PRIOR SYS_GUID () IS NOT NULL ORDER BY low_number , m ;
Maybe you are looking for
-
Hello 1- I works with digitizer 5142 or. I want complex data streams, for which I activated the SDC and the rest of the Pentameters. I want to acquire as binary width vi example in examples of niscope. Now the problem is when I extract the data in th
-
photos, videos and music available in the phone but...
photos, videos and music available in the phone but not visible to play music and gallary motorola any idea about that? What real happen? all the data available in the ES Explorer
-
Acer aspire 5742g processor intel core i5 - 460 m have bluetooth
If were so is the key for opening on
-
Delete the account of another individual on my laptop
I use Windows Live. My account has been linked to the account of my sister, because she used my laptop. Sometimes, his contact address list comes up. How to delete his account of from my computer? Thanks for any help!
-
Hello I'm new here so sorry if my question is a bit silly. I am trying to download my file located in the web, but I'm having a lot of problems. connection = Connector.open (HttpConnection) (true url, Connector.READ),inputStream = connection.openInpu