Getting distinct values
I have a table storing username,login_date. I need to retreive
username and the last login date of all the users. So I issued the
query
select distinct(username),max(login_date) from login_log group by username,login_date;
but the above returns duplicate usernames ..i.e.. the usernames
are repeated..
How to solve this ?
Kai
Hi, Kai,
GROUP BY username, login_datemeans "make one row of output for each distinct value of *the combination of* username and login_date.
You want just one row pt output for each distinct value of username, without reference to any other column, so don't mention any other column in the GROUP BY clause
{quote:title=KaiS wrote:}{quote}
I have a table storing username,login_date. I need to retreive
username and the last login date of all the users...Do you want the last login date of *all* users, together, or *each* user separately? No doubt, it's very clear to you, but everyone else has to guess. Please post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data whenever you have a question.
The query below does both; pick either last_all or last_each.
{code}
SELECT username
, MAX (MAX (login_date)) OVER ( ) AS last_all
, MAX (login_date) AS last_each
FROM login_log
GROUP BY username, login_date
{code}
Similar Messages
-
"How to get distinct values of sharepoint column using SSRS"
Hi,
I have integrated sharepoint list data to SQL Server reporting services. I am using the below to query sharepoint list data using sql reporting services.
<Query>
<SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
<Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
<Parameters>
<Parameter Name="listName">
<DefaultValue>{GUID of list}</DefaultValue>
</Parameter>
<Parameter Name="viewName">
<DefaultValue>{GUID of listview}</DefaultValue>
</Parameter>
<Parameter Name="rowLimit">
<DefaultValue>9999</DefaultValue>
</Parameter>
</Parameters>
</Method>
<ElementPath IgnoreNamespaces="True">*</ElementPath>
</Query>
By using this query, I am getting a dataset which includes all the columns of sharepoint list. Among these columns, I wanted to display only 2 columns (i.e Region and Sales type) using chart. I have created a Region parameter but when I click preview, the drop down box is giving me all the repeatative values of region like RG1,RG1,RG1,RG2,RG2,RG2,RG2,RG3.......... I wanted to display only distinct values of Region parameter so that whenever end user select region from the parameter drop down, it will display the respective value of Sales type column.
Also when I select only RG1 parameter, it is giving me a chart including the sales type of all the Regions. (it should display me only the sales type of RG1) How can I link these 2 columns so that they will display the values respectively.
I would really appreciate if anyone can help me out with this.
Thanks,
Sam.Hi Sam,
By code, the CAML language doesn’t have any reserved word (or tag) to set this particular filter to remove duplicate results.
In this case, we could use the custom code to get distinct records.
Here are the detailed steps:
1. Create a hidden parameter that gets all the records in one field.
Note: Please create another dataset that is same of the main dataset. This dataset is used for the parameter.
2. Create a function that used to remove the duplicate records.
Here is the code:
Public Shared Function RemoveDups(ByVal items As String) As String
Dim noDups As New System.Collections.ArrayList()
Dim SpStr
SpStr = Split(items ,",")
For i As Integer=0 To Ubound(Spstr)
If Not noDups.Contains(SpStr(i).Trim()) Then
noDups.Add(SpStr(i).Trim())
End If
Next
Dim uniqueItems As String() = New String(noDups.Count-1){}
noDups.CopyTo(uniqueItems)
Return String.Join(",", uniqueItems)
End Function
3. Create another parameter that will be used for filtering the maindata.
Please set the available value to be =Split(Code.RemoveDups(JOIN(Parameters!ISSUE_STATUS_TEMP.Value, ",")), ",")
And the default value to be the value you what such as the first value:
=Split(Code.RemoveDups(JOIN(Parameters!ISSUE_STATUS_TEMP.Value, ",")), ",").(0)
4. Go to the main dataset. Open the property window of this dataset.
5. In the “Filters” tab, set the filter to be:
Expression: <The field to be filter>
Operator: =
Value: =Parameters!Region.Value
The parameter “Region” should be the parameter we created in the step3.
Now, we should get distinct values of SharePoint columns.
If there is anything unclear, please feel free to ask.
Thanks,
Jin
Jin Chen - MSFT -
How to get Distinct Values from Answers
Hi,
How to get Distinct values from answers, i've tried to put some functions on it.
Thanks,
MalliMalli,
Are you trying to fetch data from Dimension Attr OR Fact Measures? Did you try the advance tab - > Advanced SQL Clauses - > Check this box to issue an explicit Select Distinct. -
Get distinct values from a coma seperated string variable
Hi ,
I am getting an comma seperated string as in parameter, now i want to get the distinct values from that string and will use those values to pass it to a query.
any helptry this:
sorry about the messiness - it's just quickly copied from some badly formatted code....
TYPE T_FieldArray IS TABLE OF varchar2(255) INDEX BY BINARY_INTEGER;
function SPLIT_CSV_FIELDS (
p_Input_Str in varchar2,
p_Delimiter in varchar2,
p_Quote_Char in varchar2)
return t_fieldarray is
v_FieldArray T_FieldArray;
v_input_str varchar2(4000);
v_field_str varchar2(255);
v_pos number;
e number := 0;
v_delim_str varchar2(3);
cur_pos number;
begin
loop
-- find each delimiter char in string
v_pos := INSTR(v_input_str, p_Delimiter);
-- each time delimiter char is found
if v_pos > 0 then
-- current field value is current string to position prior to delimiter char
v_field_str := UPPER(SUBSTR(v_input_str, 1, v_pos - 1));
-- remove quote char from end of field (if any)
v_field_str := TRIM(TRANSLATE(v_field_str, NVL(p_Quote_Char, p_Delimiter), ' '));
-- increment element number
e := e + 1;
-- get remainder of input string to check
v_input_str := SUBSTR(v_input_str, v_pos + 1, LENGTH(v_input_str) - v_pos);
v_FieldArray(e) := v_field_str;
else
-- increment element number
e := e + 1;
-- last field value is what's left of input string less quote char (if any)
v_field_str := TRIM(TRANSLATE(UPPER(v_input_str), NVL(p_Quote_Char, p_Delimiter), ' '));
v_FieldArray(e) := v_field_str;
exit;
end if;
end loop;
return v_FieldArray;
end; -
Get distinct values from plsql array
Hi,
I have declared a variable as below in plsql proc.
type t_itemid is table of varchar2(10);
inserted set of items in to this using a program
now i want distinct values from that array how can i get it.I am using 9i so i cannot use set operator and more over my problem is that i am declaring the variable inside the plsql block . when i tried i am getting the below errors:
SQL> r
1 declare
2 type t_type is table of varchar2(10);
3 v_type t_type;
4 begin
5 v_type := t_type('toys','story','good','good','toys','story','dupe','dupe');
6 for i in (select column_value from table(v_type)) loop
7 dbms_output.put_line(i.column_value);
8 end loop;
9* end;
for i in (select column_value from table(v_type)) loop
ERROR at line 6:
ORA-06550: line 6, column 41:
PLS-00642: local collection types not allowed in SQL statements
ORA-06550: line 6, column 35:
PL/SQL: ORA-22905: cannot access rows from a non-nested table item
ORA-06550: line 6, column 10:
PL/SQL: SQL Statement ignored
ORA-06550: line 7, column 22:
PLS-00364: loop index variable 'I' use is invalid
ORA-06550: line 7, column 1:
PL/SQL: Statement ignored -
CE function to get distinct values from Column table
Hi All,
Could you please let me know the appropriate CE function to get the distinct values from column table.
IT_WORK = SELECT DISTINCT AUFNR FROM :IT_WO_DETAILS;
Thank you.Hi,
If you have 10g, you can use Model( with model performance is better than connect by )
Solution
========================================================================
WITH t AS
(SELECT '0989.726332, 1234.567432, 3453.736379, 3453.736379, 0989.726332, 3453.736379, 1234.567432, 1234.567432, 0989.726332'
txt
FROM DUAL)
SELECT DISTINCT TRIM(CHAINE)
FROM T
MODEL
RETURN UPDATED ROWS
DIMENSION BY (0 POSITION)
MEASURES (CAST( ' ' AS VARCHAR2(50)) AS CHAINE ,txt ,LENGTH(REGEXP_REPLACE(txt,'[^,]+',''))+1 NB_MOT)
RULES
(CHAINE[FOR POSITION FROM 1 TO NVL(NB_MOT[0],1) INCREMENT 1] =
CASE WHEN NB_MOT[0] IS NULL THEN TXT[0] ELSE REGEXP_SUBSTR(txt[0],'[^,]+',1,CV(POSITION)) END );
=========================================================================
Demo
=======================================================================
SQL> WITH t AS
2 (SELECT '0989.726332, 1234.567432, 3453.736379, 3453.736379, 0989.726332, 3453.736379, 123
4.567432, 1234.567432, 0989.726332'
3 txt
4 FROM DUAL)
5 SELECT DISTINCT TRIM(CHAINE)
6 FROM T
7 MODEL
8 RETURN UPDATED ROWS
9 DIMENSION BY (0 POSITION)
10 MEASURES (CAST( ' ' AS VARCHAR2(50)) AS CHAINE ,txt ,LENGTH(REGEXP_REPLACE(txt,'[^,]+',''))+1 NB_MOT)
11 RULES
12 (CHAINE[FOR POSITION FROM 1 TO NVL(NB_MOT[0],1) INCREMENT 1] =
13 CASE WHEN NB_MOT[0] IS NULL THEN TXT[0] ELSE REGEXP_SUBSTR(txt[0],'[^,]+',1,CV(POSITION)) END );
TRIM(CHAINE)
3453.736379
1234.567432
0989.726332
SQL>
======================================================================== -
How to get distinct values from a list and display in a ListView webpart.
Hi,
I have a requirement in which I need to pull unique/distinct values from a custom list and then display it via a listview webpart. Can any one suggest how this can be done.
If possible please share the CAMEL query to fetch distinct values from a custom list.
Thanks,
AnkitHi Ankit,
Is there any particular reason that the values need to be shown in a list view web part? Are you going to use that web part for filtering via web part connections?
I ask because the enterprise site collection features include the SharePoint List Filter web part, which may accomplish what you're looking for.
If you just need to display the values in a grid view, you might have more luck with the JavaScript Client Object Model. Try putting the following in a text file:
<style>
.CustomTableClass{display:table;table-layout:fixed}
.CustomRowClass{display:table-row;}
</style>
<div id="distinct_values_div" class="CustomTableClass">
<img src="/_layouts/loading.gif" />
</div>
<script language="JavaScript" type="text/JavaScript">
var siteUrl = '/sitecollection/web'; //use the actual subsite URL here
var listName = 'mylist'; // use the actual list name here
var field = "Title" // use the actual field you want to display here
var divToUpdate = document.getElementById("distinct_values_div");
var rowClass = "CustomRowClass";
ExecuteOrDelayUntilScriptLoaded(function(){
var clientContext = new SP.ClientContext(siteUrl);
var web = clientContext.get_web();
var lists = web.get_lists();
var list = lists.getByTitle(listName);
var camlQuery = new SP.CamlQuery();
camlQuery.set_viewXml('<View><Query></Query><RowLimit>500</RowLimit></View>');
this.collListItem = list.getItems(camlQuery);
clientContext.load(collListItem,"Include ("+field+")");
clientContext.executeQueryAsync(
Function.createDelegate(this, this.onQuerySucceeded),
Function.createDelegate(this, this.onQueryFailed));
},"sp.js");
function onQueryFailed(sender, args){
divToUpdate.innerHTML = 'Unable to retrieve values: '+args.get_message());
function onQuerySucceeded(sender, args){
var allValues = [];
var listItemEnumerator = collListItem.getEnumerator();
divToUpdate.innerHTML = "";
while(listItemEnumerator.moveNext()){
var listItem = listItemEnumerator.get_current();
if(!containsString(allValues,listItem.get_item(field)){
var value = listItem.get_item(field);
allValues.push(value);
var newDiv = document.createElement("div");
newDiv.className = rowClass;
newDiv.innerHTML = value;
divToUpdate.appendChild(newDiv);
function containsString(strArray, text){
var contains = false;
for (var i=0; i<strArray.length; i++){
if(strArray[i]==text){contains = true; break;}
return contains;
</script>
Upload the text file to a library on the site, then add a content editor web part to a page where you want the distinct values to appear. In the content editor web part's properties, edit the Content Link so that it links directly to the text file. This
will cause the JavaScript to run on the page. -
How to get distinct values from this view
I had created a view to get to display from 2 tables.But i got duplicate values in this.
Please give any solution for this view code.
CREATE OR REPLACE VIEW TRADEQUOTEHISTORY_VIEW
(BOND_ID, BOND_NAME, COMM_PER_SHARE, QUOTE_DATE_TIME, TYPE,
STOCK_PRICE, BID_PRICE, ASK_PRICE, ACTUAL_HEDGE, SOURCE_ORDER_ID,
SOURCE_ORDER_NAME, NOTES, SIDE_ID, BIDNUKED, ASKNUKED,
REALSTOCK, LAST_UPDATED_DATE)
AS
SELECT bi.bond_id, bi.bond_name,
( (bs.comm_per_share * bi.cv_cnvs_ratio * bs.hedge)
/ (bi.px_pos_mult_factor)
nq.quote_date_time, bi.market_sector_des, nq.stock_price,
nq.bid_price, nq.ask_price, nq.actual_hedge, so.source_order_id,
so.source_order_name, nq.notes, bs.side_id,
( bs.bid_price
+ ( (csv.lastprice - bs.stock_price)
* bi.cv_cnvs_ratio
* bs.hedge
/ bi.px_pos_mult_factor
( bs.ask_price
+ ( (csv.lastprice - bs.stock_price)
* bi.cv_cnvs_ratio
* bs.hedge
/ bi.px_pos_mult_factor
csv.lastprice,
bs.last_updated_date
FROM mtsc_bondinfo bi,
mtsc_basissheet bs,
mtsc_newquoteorder nq,
mtsc_sourceorder so,
mtsc_stock_v csv
WHERE bi.bond_id(+) = bs.bond_id
AND bs.bond_id(+) = nq.bond_id
AND csv.bondid = bs.bond_id
AND so.source_order_id(+) = nq.source_order_id
UNION
SELECT bi.bond_id, bi.bond_name,
( (bs.comm_per_share * bi.cv_cnvs_ratio * bs.hedge)
/ (bi.px_pos_mult_factor)
nq.quote_date_time, bi.market_sector_des, bs.stock_price,
bs.bid_price, bs.ask_price, bs.hedge, so.source_order_id,
so.source_order_name, nq.notes, bs.side_id,
( bs.bid_price
+ ( (csv.lastprice - bs.stock_price)
* bi.cv_cnvs_ratio
* bs.hedge
/ bi.px_pos_mult_factor
( bs.ask_price
+ ( (csv.lastprice - bs.stock_price)
* bi.cv_cnvs_ratio
* bs.hedge
/ bi.px_pos_mult_factor
),csv.lastprice,
bs.last_updated_date
FROM mtsc_bondinfo bi,
mtsc_basissheet bs,
mtsc_newquoteorder nq,
mtsc_sourceorder so,
mtsc_stock_v csv
WHERE bi.bond_id(+) = bs.bond_id
AND bs.bond_id(+) = nq.bond_id
AND csv.bondid = bs.bond_id
AND so.source_order_id(+) = nq.source_order_id
ORDER BY last_updated_date DESC
result is coming like this
BOND_ID BOND_NAME ((BS.COMM_PER_SHARE*BI.CV_CNVS_RATIO*BS.HEDGE)/(BI.PX_POS_MULT_FACTOR)) QUOTE_DATE_TIME MARKET_SECTOR_DES STOCK_PRICE BID_PRICE ASK_PRICE ACTUAL_HEDGE SOURCE_ORDER_ID SOURCE_ORDER_NAME NOTES SIDE_ID (BS.BID_PRICE+((CSV.LASTPRICE-BS.STOCK_PRICE)*BI.CV_CNVS_RATIO*BS.HEDGE/BI.PX_POS_MULT_FACTOR)) (BS.ASK_PRICE+((CSV.LASTPRICE-BS.STOCK_PRICE)*BI.CV_CNVS_RATIO*BS.HEDGE/BI.PX_POS_MULT_FACTOR)) LASTPRICE LAST_UPDATED_DATE
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 9 135 104 25 41 STREET MARKET AN 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 9 135 104 25 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 9 135 104 25 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 9 135 104 25 41 STREET MARKET New Notes 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79901.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 9 300 400 25 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 9 300 400 25 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 9 300 400 25 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 9 300 400 25 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:55:15 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 135 104 25 41 STREET MARKET AN 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 300 300 25 41 STREET MARKET AN 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 135 104 25 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 300 300 25 41 STREET MARKET fgdf dfgf 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 135 104 25 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 300 300 25 41 STREET MARKET HGH HHGHF 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 135 104 25 41 STREET MARKET New Notes 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 300 300 25 41 STREET MARKET New Notes 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79901.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 80066.4 80066.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 9 200 200 25 41 STREET MARKET AN 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 9 200 200 25 41 STREET MARKET fgdf dfgf 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 9 200 200 25 41 STREET MARKET HGH HHGHF 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 9 200 200 25 41 STREET MARKET New Notes 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79966.4 79966.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 08/01/2007 Corp 9 300 400 25 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 09/01/2007 Corp 9 300 400 25 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 11/01/2007 Corp 9 300 400 25 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 17/07/2007 7:06:20 PM Corp 9 300 400 25 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 5591906636.41908 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:55:14 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 9 135 104 25 41 STREET MARKET AN 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 9 135 104 25 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 9 135 104 25 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 9 135 104 25 41 STREET MARKET New Notes 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79901.4 79870.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 08/01/2007 Corp 9 300 400 25 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 9 300 400 25 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 11/01/2007 Corp 9 300 400 25 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 9 300 400 25 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 62812767.6093129 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:49:17 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 01/08/2007 12:49:04 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 200 200 25 41 STREET MARKET AN 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 200 200 25 41 STREET MARKET fgdf dfgf 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 200 200 25 41 STREET MARKET HGH HHGHF 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 200 200 25 41 STREET MARKET New Notes 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79966.4 79966.4 905 01/08/2007 12:48:22 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 300 400 25 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 300 400 25 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 300 400 25 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 300 400 25 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:02:32 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 300 400 25 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 300 400 25 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 300 400 25 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 300 400 25 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 12:01:05 PM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 705563.241890625 08/01/2007 Corp 9 300 400 25 41 STREET MARKET AN 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 9 300 400 25 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 705563.241890625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 705563.241890625 11/01/2007 Corp 9 300 400 25 41 STREET MARKET HGH HHGHF 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 9 300 400 25 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 705563.241890625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 80066.4 80166.4 905 01/08/2007 11:58:23 AM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 08/01/2007 Corp 9 135 104 25 41 STREET MARKET AN 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 9 135 104 25 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 11/01/2007 Corp 9 135 104 25 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 9 135 104 25 41 STREET MARKET New Notes 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 7925.450625 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79901.4 79870.4 905 31/07/2007 10:55:09 PM
106 007903AK3 Corp 89.025 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 08/01/2007 Corp 9 135 104 25 41 STREET MARKET AN 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 09/01/2007 Corp 9 135 104 25 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 11/01/2007 Corp 9 135 104 25 41 STREET MARKET HGH HHGHF 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 17/07/2007 7:06:20 PM Corp 9 135 104 25 41 STREET MARKET New Notes 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79901.4 79870.4 905 31/07/2007 5:53:25 PM
106 007903AK3 Corp 89.025 08/01/2007 Corp 6 7 78 78 41 STREET MARKET AN 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
106 007903AK3 Corp 89.025 08/01/2007 Corp 9 130 104 25 41 STREET MARKET AN 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
106 007903AK3 Corp 89.025 09/01/2007 Corp 9 130 104 25 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
106 007903AK3 Corp 89.025 09/01/2007 Corp 200 5 7 8 41 STREET MARKET fgdf dfgf 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
106 007903AK3 Corp 89.025 11/01/2007 Corp 4 6 6 8 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
106 007903AK3 Corp 89.025 11/01/2007 Corp 9 130 104 25 41 STREET MARKET HGH HHGHF 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
106 007903AK3 Corp 89.025 17/07/2007 7:06:20 PM Corp 9 130 104 25 41 STREET MARKET New Notes 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
106 007903AK3 Corp 89.025 17/07/2007 7:06:20 PM Corp 67 78 90 34 41 STREET MARKET New Notes 110 79896.4 79870.4 905 31/07/2007 1:05:18 AM
Regards
Kishore BBOND_ID BOND_NAME ((BS.COMM_PER_SHARE*BI.CV_CNVS_RATIO*BS.HEDGE)/(BI.PX_POS_MULT_FACTOR)) QUOTE_DATE_TIME MARKET_SECTOR_DES STOCK_PRICE BID_PRICE ASK_PRICE ACTUAL_HEDGE SOURCE_ORDER_ID SOURCE_ORDER_NAME NOTES SIDE_ID (BS.BID_PRICE+((CSV.LASTPRICE-BS.STOCK_PRICE)*BI.CV_CNVS_RATIO*BS.HEDGE/BI.PX_POS_MULT_FACTOR)) (BS.ASK_PRICE+((CSV.LASTPRICE-BS.STOCK_PRICE)*BI.CV_CNVS_RATIO*BS.HEDGE/BI.PX_POS_MULT_FACTOR)) LASTPRICE LAST_UPDATED_DATE
109 018490AL6 Corp 18871.341129 Corp 27 139 166 87 110 120752.494 120779.494 905 01/08/2007 12:55:26 PM
109 018490AL6 Corp 18871.341129 Corp null null null null 110 120752.494 120779.494 905 01/08/2007 12:55:26 PM
I am not inserting values into newquoteorder,but i got values from that table ask,bid,stock values, it shows that values as null -
How to get distinct values in a comma separated list of email addresses?
Hi Friends,
I have a cursor which fetches email address along with some other columns. More than one record can have same email address.
Ex
CURSOR C1 IS
SELECT 1 Buyer,'XX123' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 2 Buyer,'XX223' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 1 Buyer,'XX124' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 2 Buyer,'XX224' PO, '[email protected]' Buyer_email from dualNow, i open the cursor write the contents into a file and also form a comma separated list of buyer emails as follows
for cur_rec in c1
LOOP
--write contents into a file
l_buyer_email_list := l_buyer_email_list||cur_rec.buyer_email||',';
END LOOP
l_buyer_email_list := RTRIM(l_buyer_email_list,',');
The buyer email list will be like: '[email protected],[email protected],[email protected],[email protected]'
Inorder to avoid duplicate email address in the list, i can store each of this value is a table type variable and compare in each iteration whether the email already exist in the list or not.
Is there any other simpler way to achieve this?
Regards,
Sreekanth Munagala.If you are using oracle version 11, you can use listagg function
with c as
(SELECT 1 Buyer,'XX123' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 2 Buyer,'XX223' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 1 Buyer,'XX124' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 2 Buyer,'XX224' PO, '[email protected]' Buyer_email from dual
select buyer, listagg(buyer_email,',') within group (order by buyer)
from c
group by buyer
order by buyerFor prior versions
{cod}
with c as
(SELECT 1 Buyer,'XX123' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 2 Buyer,'XX223' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 1 Buyer,'XX124' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 2 Buyer,'XX224' PO, '[email protected]' Buyer_email from dual
select buyer, rtrim(xmlagg(xmlelement(e,buyer_email||',').extract('//text()')),',')
from c
group by buyer
order by buyer -
Getting a list of distinct values
Hello,
I'm using Toplink named queries with an sql-expression (in JDev Studio 10.1.0.3.) but I'm having trouble to get distinct values.
I want to create a dropdown list containing all pricerange possibilities, the basic data comes from a table with following format:
PRICERANGE_ID -- ACTIVITY -- PRICE
LOW--------------------- Analysis ---- 65
LOW -------------------- Training ----- 75
MEDIUM -------------- Analysis ---- 75
MEDIUM -------------- Training ----- 90
HIGH ------------------- Analysis ---- 85 etc.
I have now created a TopLink named query, type: ReadAllQUery,
SQL statement: select pricerange.PRICERANGE_ID from pricerange
group by pricerange.PRICERANGE_ID
order by pricerange.PRICERANGE_ID
and PRICERANGE_ID is part of the primary key of pricerange (but I don't expect this to be a problem)
Now, when I use this query to get the values in a dropdown list, I don't get any values as a return. I have tested in pure SQL (using TOAD) in which I was able to get the correct value for each record.
My guess is that is some problem with defining row names in this TopLink query. Since I ask only to select the data of one column, but when I want to create a dropdown list I get a list of all fields in the original table.
Can you limit the selection to certain fields or columns in a TopLink named query ? Are there other options ?
I have posted this question on the Toplink forum and did get the suggestion of Doug Clarke to use a ReportQuery instead of a ReadAllObjects query, but it's still not clear to me where and what I should do.
Kind regards,
NemataThis discussion is being followed up on at Re: getting a list of distinct values
-
Not able to get distict values even after defining MAP MEMBER FUNCTION
Hi,
I am trying to get distinct values from a query to a table type. Please see the code below
CREATE OR REPLACE TYPE T_COPY_EVNT_DTL
IS
OBJECT
eventId VARCHAR2(100),
eventDescription VARCHAR2(100),
promoMonthDescription VARCHAR2(100),
promoStartDate VARCHAR2(100),
promoEndDate VARCHAR2(100),
PROMOCOSTSTARTDATE VARCHAR2(100) ,
MAP MEMBER FUNCTION sort_key
RETURN VARCHAR2 );
CREATE OR REPLACE TYPE BODY T_COPY_EVNT_DTL
AS
MAP MEMBER FUNCTION sort_key
RETURN VARCHAR2
IS
BEGIN
RETURN eventId ;
END;
END;
CREATE OR REPLACE TYPE T_EVENT_TABLE
IS
TABLE OF T_COPY_EVNT_DTL;
with event_data as (
select '1' event,'event1' event_desc,'monthdesc1' promo_month_desc ,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
select '1' event,'event1' event_desc ,'monthdesc1'promo_month_desc ,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
select '3' event,'desc3' event_desc ,'monthdesc3' promo_month_desc,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
select '2' event ,'desc2' event_desc ,'monthdesc2' promo_month_desc ,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date ,'01/02/2001' promo_cost_start_date from dual )
SELECT cast(collect(distinct t_copy_evnt_dtl(event,
event_desc,
promo_month_desc,
promo_start_date,
promo_end_date,
promo_cost_start_date) ORDER BY
event_desc,
promo_month_desc,
promo_start_date,
promo_end_date,
promo_cost_start_date) as t_event_table) from event_data;
result :
T_EVENT_TABLE('T_COPY_EVNT_DTL('2','desc2','monthdesc2','01/01/2001','01/01/2002','01/02/2001')',
'T_COPY_EVNT_DTL('3','desc3','monthdesc3','01/01/2001','01/01/2002','01/02/2001')',
'T_COPY_EVNT_DTL('1','event1','monthdesc1','01/01/2001','01/01/2002','01/02/2001')',
'T_COPY_EVNT_DTL('1','event1','monthdesc1','01/01/2001','01/01/2002','01/02/2001')')Please help me to find out the reason why it is not working...Remove the comma from T_COPY_EVNT_DTL TYPE.
ORA-22800 indicates invalid user-defined type.
PROMOCOSTSTARTDATE VARCHAR2(100) ,
MAP MEMBER FUNCTION sort_keyAnd it will be fine.
SQL> CREATE OR REPLACE TYPE T_COPY_EVNT_DTL
2 IS
3 OBJECT
4 (
5 eventId VARCHAR2(100),
6 eventDescription VARCHAR2(100),
7 promoMonthDescription VARCHAR2(100),
8 promoStartDate VARCHAR2(100),
9 promoEndDate VARCHAR2(100),
10 PROMOCOSTSTARTDATE VARCHAR2(100),
11 --,
12 MAP MEMBER FUNCTION sort_key
13 RETURN VARCHAR2 );
14 /
Type created
SQL>
SQL> CREATE OR REPLACE TYPE BODY T_COPY_EVNT_DTL
2 AS
3 MAP MEMBER FUNCTION sort_key
4 RETURN VARCHAR2
5 IS
6 BEGIN
7 RETURN eventId ;
8 END;
9 END;
10 /
Type body created
SQL>
SQL> CREATE OR REPLACE TYPE T_EVENT_TABLE
2 IS
3 TABLE OF T_COPY_EVNT_DTL;
4 /
Type created
SQL>
SQL> with event_data as (
2 select '1' event,'event1' event_desc,'monthdesc1' promo_month_desc ,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
3 select '1' event,'event1' event_desc ,'monthdesc1'promo_month_desc ,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
4 select '3' event,'desc3' event_desc ,'monthdesc3' promo_month_desc,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
5 select '2' event ,'desc2' event_desc ,'monthdesc2' promo_month_desc ,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date ,'01/02/2001' promo_cost_start_date from dual )
6 SELECT cast(collect(distinct t_copy_evnt_dtl(event,
7 event_desc,
8 promo_month_desc,
9 promo_start_date,
10 promo_end_date,
11 promo_cost_start_date) ORDER BY
12 event_desc,
13 promo_month_desc,
14 promo_start_date,
15 promo_end_date,
16 promo_cost_start_date) as t_event_table) from event_data;
CAST(COLLECT(DISTINCTT_COPY_EV
<Object> -
Distinct values from dynamic internal tabls
Hi All,
I have a dynamic internal tables like <dy_table> , i want to get distinct values from this internal tables,
how to do that, structure of dynamic internal tables is dynamic acc. to user conditions.
regards,
AnujHi Anuj
Just try this,
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = tb_fields_for_it
IMPORTING
ep_table = gp_dyn_table.
ASSIGN gp_dyn_table->* TO <gt_table>.
ASSIGN LOCAL COPY OF INITIAL LINE OF <gt_table> TO <fs_table>.
LOOP AT tb_output.
*To assign value for serial number.
ASSIGN COMPONENT 1 OF STRUCTURE <fs_table> TO <ls_field>.
<ls_field> = tb_output-sno.
UNASSIGN <ls_field>.
*To assign value for Sales Organization.
ASSIGN COMPONENT 2 OF STRUCTURE <fs_table> TO <ls_field>.
<ls_field> = tb_output-vkorg.
UNASSIGN <ls_field>.
*To assign Rate for its respective Condition type.
LOOP AT tb_konp WHERE knumh = tb_output-knumh.
READ TABLE tb_fieldcat1 WITH KEY fieldname = tb_output-kschl.
IF sy-subrc EQ 0.
lv_count = tb_fieldcat1-col_pos.
ASSIGN COMPONENT lv_count OF STRUCTURE <fs_table> TO <ls_field>.
IF tb_konp-konwa EQ '%'.
tb_konp-kbetr = tb_konp-kbetr / co_10.
<ls_field> = tb_konp-kbetr.
ELSE.
<ls_field> = tb_konp-kbetr.
ENDIF.
ENDIF.
ENDLOOP.
lv_count = lv_count + 1.
APPEND <fs_table> TO <gt_table>.
CLEAR <fs_table>.
ENDLOOP.
Hope this proves helpful to you. -
Sorting a column does not result in distinct values on Dashboard prompts
Hi,
We have a period column, the records of which are 'JAN-02' , "FEB-02"...."DEC-09". We need sort this column in descending order in Dashboard Prompts. We have another column "Date", which has been used to sort the period column. To achieve this in descending order, we have converted Show Results from “All Values” to “SQL Results” in dashboard prmpts, then entered the below sql.
SELECT "CODE COMBINATIONS"."LINE AC PERIOD" FROM INVOICE_PAYMENTS
order by "CODE COMBINATIONS"."LINE AC DATE" desc
The above sql resulted in non-distinct values as below. Using distinct in the above sql throws syntax error.
Period
JAN-09
JAN-09
JAN-09
FEB-09
FEB-09
How do we get distinct values and in descending order??
Thanks and appreciate any ideas
SuryaGo to advanced tab and check "Use distinct clause" that will fire a distinct to the query.
In the rpd month logical column , there is an option called sort order in the general properties and you need to specify the date column if you need to sort it based on the date column and in the Answers you can simply enable Descending sort order on the same column. That should take care of it
Hope it helps
Thanks
Prash -
Select distinct values for ssrs sharepoint parameter
hi,
I need distinct selected values for parameter dropdown in shaepoint ssrs. Everrything will work fine if i select value and label field same field like(Location_Code). But i need value field to be different field (LocationID). like (dropdown id in value field
and text as lable field)
Because i am using value field in record filtering.
Any suggestions?
Thanks Manohara RHi Manohar,
Pls check the lin
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/6495db18-a1c1-480b-8c92-89c74ee47cf5/how-to-get-distinct-values-of-sharepoint-column-using-ssrs?forum=sqlreportingservices
Please remember to click 'Mark as Answer' on the answer if it helps you -
Xquery to return distinct values in xml
Hi,
I have a requirement, where in i have to get distinct values from an xml file.
EX: Input
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Main xmlns="http://www.abc.org.com/FormDetails">
<abcd first="1" second="2"/>
<Fruits>
<fruit name="banana" color="green">
<fruit name="apple" color="red">
<fruit name="grape" color="green">
<fruit name="apple" color="red">
<fruit name="banana" color="green">
<fruit name="apple" color="red">
<fruit name="grape" color="green">
<fruit name="orange" color="orange">
<fruit name ="lemon" color="yellow">
</Fruits>
<Fruits>
<fruit name="banana" color="green">
<fruit name="apple" color="red">
<fruit name="grape" color="green">
<fruit name="apple" color="red">
<fruit name="banana" color="green">
<fruit name="apple" color="red">
<fruit name="grape" color="green">
<fruit name="orange" color="orange">
<fruit name ="lemon" color="yellow">
</Fruits>
<Fruits>
<fruit name="banana" color="green">
<fruit name="apple" color="red">
<fruit name="grape" color="green">
<fruit name="apple" color="red">
<fruit name="banana" color="green">
<fruit name="apple" color="red">
<fruit name="grape" color="green">
<fruit name="orange" color="orange">
<fruit name ="lemon" color="yellow">
</Fruits>
</Main>
Required output: String
banana = green|apple = red| grape=green|orange=orange|lemon=yellow
I have used this xquery:
declare namespace xf = "http://tempuri.org/abcorg/Transformations/Distinct_Fruits/";
declare namespace ns = "http://www.abc.org.com/FormDetails";
declare function xf:Distinct_Fruits($fruits as element(ns:Main))
as xs:string{
for $d in distinct-values($fruits//ns:fruit/@name)
return "{$d} ="
for $e in distinct-values($fruits//ns:fruit/@color)
return "{$e}|"
declare variable $fruitsas element(ns:Main) external;
xf:Distinct_Member($fruits)
I am getting error like:
Error executing the XQuery transformation: line 11, column 1: {err}FORG0005: expected exactly one item, got 2+ items
Please let me know where It went wrong.
Thanks..
Edited by: user12679330 on Jul 12, 2011 4:47 AMHi,
Please let me know where It went wrong.The function's return value is declared as a string but you're actually returning sequences of string literals.
One way to achieve that is using string-join function :
(here for testing purpose, I used an external $doc variable)
declare namespace xf = "http://tempuri.org/abcorg/Transformations/Distinct_Fruits/";
declare default element namespace "http://www.abc.org.com/FormDetails";
declare function xf:Distinct_Fruits( $fruits as element(Fruits)* )
as xs:string
string-join(
for $d in distinct-values($fruits/fruit/@name)
return concat($d, " = ", $fruits/fruit[@name=$d][1]/@color)
, "|"
xf:Distinct_Fruits($doc/Main/Fruits)Note that I assumed that a fruit with a given name will always have the same color.
If that's not the case and you might have something like :
<Main>
<abcd first="1" second="2"/>
<Fruits>
<fruit name="banana" color="green"/>
<fruit name="apple" color="red"/>
<fruit name="grape" color="green"/>
<fruit name="apple" color="red"/>
<!-- here is a red banana! -->
<fruit name="banana" color="red"/>
<fruit name="apple" color="red"/>
<fruit name="grape" color="green"/>
<fruit name="orange" color="orange"/>
<fruit name ="lemon" color="yellow"/>
</Fruits>
</Main>then the solution is to use deep-equal function to test if two nodes are identical (as per their values, attributes and children) :
declare function xf:Distinct_Fruits( $fruits as element(Fruits) )
as xs:string
string-join(
for $i in $fruits/fruit
let $f := $i[not(some $x in $i/preceding-sibling::fruit satisfies fn:deep-equal($x,.))]
where ($f)
return concat($f/@name, " = ", $f/@color)
, "|"
};which gives :
banana = green|apple = red|grape = green|banana = red|orange = orange|lemon = yellowEdited by: odie_63 on 12 juil. 2011 14:43 - changed first example to reflect sample modification
Maybe you are looking for
-
Cash flow statement - change of chart of account
hai, In cash flow statement, i have copied OASPRATIO 4 (direct method) and i edit general data selection in Financial statement version. in that INT is available how can i change our chart of account in that place. govind
-
Grab files print at Bottom of Page
I don't remember Grab>Capture>Selection printing at the bottom of a page before. Any way to change it to print at the top of the page.
-
Move WSS 3 site/content to another domain
We currently have WSS 3.0 running in domain A. Will bring up a new WSS 3.0 in domain B. Need to move site/content from WSS 3.0 domain A to WSS 3.0 domain B. No common user accounts between domain A and domain B. Just want to move the site/content ove
-
I want to do the following, without having to change the settings on my iPod every time I plug it in . . . 1 - have it automatically sync on my home iMac 2 - have it act only as a hard drive on all other Macs, so I can use it as a handy portable driv
-
Forwarding user decison in workflow
Hi, We are using the user decision step with three options 1. Accept 2.Reject 3. Edit ECM. If the user choose Edit ECM, transaction CC02 will be called from the Dialog step which using the ECM BO method. Also we are looping back the decision step to