Really advanced StringTokenizer query...
Just wondering... Why isn't StringTokenizer in the java.text package? It is a utility, of course, but it is more so (IMO) a text-manipulation class.
Aside from "cuz Sun said so", of course.
It could be completely arbritrary. But the following is from the javadocs for java.text, and StringTokenizer does not fit.
Package java.text
Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.
Similar Messages
-
No. Price Range ListPrice No$al Price Nett Price Special Deal Special Deal 2
Qty/Value Range - 0 - 10pcs 11 - 99pcs 100 - 149pcs 150pcs & above
No.1 ABC Part number 10.00 $10 - 10% $10 - 12% $10 - 15% $10 - 20%
Qty/Value Range (Group Discount) - 100 - $399 $400-$799 $800 & above
No.2 7441-1 Swivels 1.00 - $1 - 10% $1 - 15% $ 1 - 20%
7441-2 Swivels 1.00 - $1 - 10% $1 - 15% $ 1 - 20%
7441-3 Swivels 1.00 - $1 - 10% $1 - 15% $ 1 - 20%
7441-4 Swivels 1.00 - $1 - 10% $1 - 15% $ 1 - 20%
7441-5 Swivels 1.00 - $1 - 10% $1 - 15% $ 1 - 20%
https://docs.google.com/spreadsheet/ccc?key=0ArZGkcAMROWFdG81R09xNjBTNDNOS0doakE1aVgxamc
Hi All,
Advance pricing Query- my client requirement is as above... for each part number for each range they are giving different discount and for some parts they are giving discount based on Amount as mentioned above.
for same part numbers they have different discount ranges like Customer Group A , B, C, D (location, nation and export order customer) different discounts.
Is it possible to achieve this Qualifers, modiers are need to create sepearte price list for each group...
Kindly advise.
highly appreciate quick responses.
Edited by: 949067 on 14-Aug-2012 23:09
Edited by: 949067 on 24-Aug-2012 02:43Let us go through the steps involved in integrating Advanced Pricing with Purchasing so that we know if we have missed anything.
1. Create Price Lists in Advanced Pricing.
2. Setup Profile Options in System Administrator responsibility:
QP: Licensed for Product - at Application: Purchasing level = Purchasing.
QP: Pricing Transaction Entity - at Application: Purchasing level = Procurement
( Site level - ‘Order Fulfillment’ )
Profile option can be set at site, application, and user levels.
QP: Source System Code – at Application: Purchasing level = Oracle Purchasing
( Site level -- ‘Oracle Pricing’ )
Profile can be set at site and responsibility levels.
QP: Item Validation Organization - at Application: Purchasing level = null
( Site level -- specified in Financial Options )
Profile option can be set at site and responsibility levels.
3. Add item to the Price list Advanced Pricing ->Price Lists -> Price List Setup.
Enter the item/price/dates etc.
4. Create Contract Purchase Agreement.
5. Create Approved Suppliers List. In the Source Documents, select the Type as Contract and reference the Contract Agreement Number.
Create the Sourcing Rule and add the Rule to the Assignment Set.
6. Create the Standard Purchase Order referencing the Contract Purchase Agreement in the Reference Documents.
The Price listed should be defaulted from the Price Lists.
Cross-Check the following steps and let me know if it still fails and we can try to resolve from then on :) -
Need Help with Advanced SQL Query
It's advanced for me, at least. I have three tables that I
need to use:
Product (product_id and product_title are the fields)
shipRegion (shipRegion_ID)
product_shipRegion_shipCharge (product_id, shipRegion_ID,
primaryShipCharge, secondaryShipCharge)
What I am trying to do is create a query that will look for
two things:
1. Any product that is listed in the
product_shipRegion_shipCharge table that has a primary or secondary
ship charge of $0.00 or is NULL.
That part is easy:
SELECT DISTINCT p.product_id, p.product_title
FROM product p
INNER JOIN product_shipRegion_shipCharge pss ON p.product_id
= pss.product_id AND (pss.primaryShipCharge IS NULL OR
pss.primaryShipCharge = 0 OR pss.secondaryShipCharge IS NULL OR
pss.secondaryShipCharge = 0)
WHERE p.display = 1
AND p.price > 0
It's this next part that's tricky for me:
2. Get the product_id and product_title (from the product
table) that does NOT have any entry in the
product_shipRegion_shipCharge table.
I'm guessing that I need to include some kind of LEFT JOIN in
the above query to find out what all of the regions are (from the
shipRegion table) and then see what's missing for each product in
the product_shipRegion_shipCharge table, but I have no idea how to
do it.
Anyone?
JoshThis should be what the query would look like using the left
join:
SELECT product_table.product_id, product_table.product_title
FROM product_table
LEFT OUTER JOIN product_shipRegion_shipCharge
ON product_shipRegion_shipCharge.product_id =
product_table.product_id
WHERE product_shipRegion_shipCharge. product_id IS NULL
SQL Server's query optimizer will probably turn the '...IN
(subquery)' or '...exists (subquery)' into this kind of execution
plan on its own - depending on your table structures. -
Advanced-Table in Advanced-Table Query RN
I'm having difficulty creating a query region in the inner table within an Advanced-Table in Advanced-Table relationship. The inner tables searchable items appear in the outer tables simple search region and an error is raised when I open the detail table. The error states that the the item is not defined in the outer table VO. The error is correct, the column does not exist in the outer table's VO. It only exists in the inner table's VO and I've indicated what VO instance the column exists in when defining the item in the inner table. So my question is why does OAF check for an item in the outer table's VO when I've told it that the item exists in the VO defined on the inner table's item attributes?
Thanks for any answers or pointers.
JasonI have been working on attempting to allow a user to specify query criteria for an inner table. Is this possible?
This is all I've been able to locate on this topic in the R12 Developer's Guide.
"The inner table bears a master-detail relation with the outer table. For each master row, corresponding detail rows are displayed in an inner table. Users can control the rows in the inner table by defining additional search criteria to the criteria already defined in the view link, which relates the outer view object with the inner view object."
The second sentence implies that query criteria can, in fact, be provided for an inner table set of data.
Thanks,
Jason -
Advanced? Query question
Advanced for me anyway. Okay, running on an Oracle 11g database, I have a table that consists of the following fields:
acad_yr (academic year)
gender
ssno (social security number)
age
and many other fields not relevant to this question. The academic years run from 2006 through 2013, and the same people can appear multiple times in the table, but only once per academic year.
I want to write a query (or rather one of you kind folks write a query since I obviously can't) that will display the following output:
2006 2007 2008 2009 2010 2011 2012 2013
AGE M F M F M F M F M F M F M F M F
20-24 xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx
25-29 xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx
30-34 xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx
35-39 xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx
40-44 xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx
45-49 xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx
50-59 xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx
60-99 xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx
Where xxx is a count of the number of people in the table that meet the academic year, gender and age criteria.
Thoughts?
Bobwith
test_data as
(select floor(dbms_random.value(2009,2014)) acad_yr,
case when dbms_random.random > 0 then 'F' else 'M' end gender,
floor(20 + abs(20 * dbms_random.normal)) age
from dual
connect by level <= 1000
select *
from (select acad_yr,gender, case when age between 20 and 24 then 'g_20_24'
when age between 25 and 29 then 'g_25_29'
when age between 30 and 34 then 'g_30_34'
when age between 35 and 39 then 'g_35_39'
when age between 40 and 44 then 'g_40_44'
when age between 45 and 49 then 'g_45_49'
when age between 50 and 59 then 'g_50_59'
when age between 60 and 99 then 'g_60_99'
end age_group,
count(*) cnt
from test_data
group by acad_yr,gender, case when age between 20 and 24 then 'g_20_24'
when age between 25 and 29 then 'g_25_29'
when age between 30 and 34 then 'g_30_34'
when age between 35 and 39 then 'g_35_39'
when age between 40 and 44 then 'g_40_44'
when age between 45 and 49 then 'g_45_49'
when age between 50 and 59 then 'g_50_59'
when age between 60 and 99 then 'g_60_99'
end
pivot (max(cnt) for (gender,acad_yr) in (('F',2009) as F_2009,
('M',2009) as M_2009,
('F',2010) as F_2010,
('M',2010) as M_2010,
('F',2011) as F_2011,
('M',2011) as M_2011,
('F',2012) as F_2012,
('M',2012) as M_2012,
('F',2013) as F_2013,
('M',2013) as M_2013
order by 1
AGE_GROUP
F_2009
M_2009
F_2010
M_2010
F_2011
M_2011
F_2012
M_2012
F_2013
M_2013
g_20_24
16
19
18
25
20
27
15
19
26
18
g_25_29
24
19
16
19
15
19
17
18
22
23
g_30_34
16
16
11
13
14
14
16
16
17
15
g_35_39
15
12
11
17
13
15
16
13
16
12
g_40_44
10
12
14
8
11
8
8
11
13
12
g_45_49
10
7
10
4
15
6
10
4
9
14
g_50_59
10
10
7
5
6
7
9
8
8
9
g_60_99
4
4
2
7
4
8
3
1
5
4
Regards
Etbin -
Help with an advance mysql query
I'm using CF 7 to query a MySQL 5 DB.
I was wondering if it's possible to add an OR operator in a
subquery or at the end of a conditional statment. Let's say that in
my conditional WHERE statement after a few inclusive conditions, I
wanted to add an "AND & OR" logic.
maybe by including part of my code I can be a little more
clear:
<cfquery name="domysearch" ...>
SELECT
a.id as id,
b.company as company,
c.add_line1 as add_line1,
FROM registratn_contacts a, registratn b,
registratn_addresses c
WHERE a.owner = #arguments.owner#
AND b.id = a.master_record
AND c.id = a.address_id
AND c.state = 'NY'
OR c.state = 'CA'
I would like to know if I can or should accomplish this in my
query or if I should have this logic outside the query?
Thanks for any help!!!!
CarlosWHERE .....
AND (c.state = 'NY' OR c.state = 'CA')
You can use an OR, but it is probably
better to use an IN clause, as it is essentially an OR, and
would be more efficient.
AND c.state IN ( 'NY', 'CA')
Phil -
Dear Experts
We got a scenario as folllows:
There are 10 orders billed for customer. The customer is paying for 5 orders & the same is booked in accounting.
Now the customer is paying in advance for the new special order & not for the remaining 5 orders.
When we place a new order how the credit check will treat this order?
will the system consume the amount for remaining 5 orders & then take the special order? or how it will happen?
Thanks
JHai,
The advance money received for the new order can be booked by FI against the New order number itself, so the remaining 5 pending order will remain the same, as far as credit check is concern, if the credit limit is exceeding while creating the new order then the order will not be saved.
Regards,
Sudhir -
Hello everyone,
I'm currently working on a music publishing project. This
project is accepting song (sheet music) submissions for inclusion
in a book. We have a committee of four members that will be
"voting" on whether or not to include the songs in this book.
Where I'm getting stuck is this: I am creating a page where
the committee members can see a list of the songs that have been
submitted. A member can look at the song's sheet music and place
their vote via links on the page. They can only vote once per song.
What I need help on is writing a query that will pull up all
of the songs listed in the database that have either no votes, or
one, two, or three votes (not four votes). The problem is in
writing the query that gets songs that have either NONE or less
than FOUR. If I was only looking for songs with some votes I could
easily do an inner join to get my results, but because I'm looking
for songs with no votes or a few in an associated table, I'm having
trouble.
For simplicity sake, here are the table's functions:
Song Table
Song ID
Song Title
Compose Name
etc...
Vote Table
Song ID
Approval Member Name
Vote (yes, no)
How would I set up the query to pull the information I need?
I'm completely stuck and could definitely use the help.
TIA,
Joshhow about something like this?
========================================================================================== ======
SELECT Songs.SongTitle,Count(Votes.yesNo) AS CountOfVote
FROM Songs LEFT JOIN Votes ON Songs.SongID = Votes.SongID
GROUP BY Songs.SongTitle
HAVING COUNT(Votes.yesNo) < 4;
========================================================================================== ======
you might have to modify some column names but this format
should give you what you seek.
let me know how this works. -
Hey Friends it's very useful interview links that will give the answer of frequently asked question
http://latest-in-it-sectror.blogspot.com
check out this link and send it as many as you can for help the other person click others google adds to get some of most interesting query in others field.If you want to ask any query you can just post a comment on my blog.http://latest-in-it-sector.blogspot.com/
Nicolas. -
POWL Confirmation - Status field modification in Advance Search Query
Hi All,
I am on Confirmations POWL search query screen (Employee Self Services-Overview-Confirmations-All).
How can I add a new value "Error in Process" in Status field.
In Result screen, I can see some Confirmations which are in Error in Process state.
Thanks and Regards,
PankajHi Pankaj
Please check the below note.
i think this would be helpful to your question.
1613664
Thanks
Abhishekh Narsingpuria
Message was edited by: Zoltan Keller
please do not ask for points -
I am trying to perform an update query on one field that uses multiple foreign key parameters from one table to update the other table. The data in all three foreign key parameter fields are not constant. Accuracy is absolutely critical. I tied this as well as other various scenarios with no success. Can anyone help?
Update A_table a
set a.rate = (
select b.rate
from B_table b
where b.id = a.id
and b.transdate = a.transdate
and b.orgnum = a.orgnum
and b.transdate = to_date('31/12/2007', 'dd/mm/yyyy')
)I think most of the new guys post product related questions here because, they might have heard that there is something called forums, they go to google and type oracle forums. When the forums home page opens they directly post in the first link available, which is unfortunately this forum. Probably moving Database forum up, and moving technology network community forums below would solve this problem compared to the number of people who don't even read the forum name before posting.
-
Hi, I have few issues in my advanced table:
Please help me in resolving them.
1. When I add a new column to the existing table, it adds up in 2 positions.
Lemme explain it clearly, I have 3 columns in my table. If i want to add one more column.
If i add that, it gets added to two positions in the table.
I mean to add in the second position. It gets added in the second and last position.
Please help me how to solve this issue.
2.One more issue is that, If I populate a messagestyledtext based on the lov map, the context gets lost, wen i move out of the LOV.
I mean, if i select some value in the LOV, some messagestyledtext needs to be polutaed and it works fine for the first time.
If i go out of that LOV, the value of the messagestyledtext is lost.
Help me to resolve this issue.
Thanks,
Preethi
Edited by: Preethi on Dec 2, 2008 11:17 PMPreethi,
I will guess from your reference to using "Advanced Table" that you are talking about OA Framework, in which case, you should be asking on the OA Framework forum.
John -
Advanced Table - Query on formatting column
Hi all
I want to achieve some thing like this in my advanced table.
Employee# Name salary
1 ABC $12,000.00
2 XYZ $10,000.00
3 RTY $2,000.00
Salary column in DB
12000 , 10000, 2000
1) I need to display currency symbol ($) prefix to amount with decimal points.
2) user must be able to sort on salary column.
(If i convert salary to string for requirement 1, Sorting will not work on properly)
what is the best way to do this ?
Thanks in advancePreethi,
I will guess from your reference to using "Advanced Table" that you are talking about OA Framework, in which case, you should be asking on the OA Framework forum.
John -
Advance xpath query freezes spry
Hello
var dsAns = new Spry.Data.XMLDataSet("xml/fileName.xml",
"//folder[id='IDFour']/ancestor::folder");
For the xml file below, produces what seems an endless loop.
This happens in firefox and IE7.
<?xml version="1.0" encoding="iso-8859-1"?>
<structure>
<folder>
<id>IDOne</id>
<name>testOne</name>
<folder>
<id>IDTwo</id>
<name>testTwo</name>
</folder>
<folder>
<id>IDThree</id>
<name>testThree</name>
<folder>
<id>IDFour</id>
<name>testFour</name>
</folder>
</folder>
</folder>
<folder>
<id>IDFive</id>
<name>testFive</name>
</folder>
</structure>Hi AGM,
I've reproduced the problem internally, filed a bug for it,
and will look into it.
The infinite loop seems to be happening in the Google XPath
library we use at the time we evaluate the XPath expression.
--== Kin ==-- -
Help with a advanced SQL query
I have a table with the help of standard lengths of material. (tblStdLength)
In another table are the lengths that are in stock at the material. (tblOnStock)
I would want to match these two tables to find out how much of the stock of standard lengths you have in stock the table.
If the length is longer than the nearest standard length, the drag of the excess down to the nearest standradlängd if there is an X "CUT field.
However, I have encountered a problem and can not solve this ...
Ex:
Material Cable23 have 4 standard lengths in Table tblStdLength:
{code}
Material StdLength
Cable23 | 2000
Cable23 | 4000
Cable23 | 6000
Cable23 | 8000
Materials Cable23 have the following lengths in stock in Table tblOnStock:
Material Factor Length TotalQty Cut
Cable23 | 1 | 383 | 383 |
Cable23 | 1 | 424 | 424 |
Cable23 | 1 | 998 | 998 |
Cable23 | 1 | 1000 | 1000 |
Cable23 | 3 | 4000 | 12000 | X
Cable23 | 1 | 4234 | 4234 | X
{code}
In this mode, shall the lengths of 12000 + 4000 include in the calculation of the total stock of standard lengths.
The answer should be 16000.
4000, it gets of 4234. It has X on the 'Cut' field and then it round down to the nearest standard length.
How do I do this best? Hope I explained so you understand ...Hi again,
SQL works great when there are several lengths (rows) in the table tblStdlength. But sometimes there is only one standard length per matrial in the table (1 row), then it does not work. Why? Assumes lead function that there should be several rows?
with tblStd as
select Material
, stdlength
, lead(stdlength) over (partition by material order by stdlength) hstdlength
from tblStdlength
select t.Material
, sum(floor(s.total_qty/t.stdlength)*t.stdlength) tot_quantity
from tblStd t, tblonstock s
where t.material=s.material
and s.length >= t.stdlength
and s.length< t.hstdlength
group by t.material
Maybe you are looking for
-
View jobs with SQL Developer and export to file with delimiter
Hi, is there a way to view, create and alter my database jobs with SQL developer? And is it possible to export tables, views or simple queries to file delimited different from the CSV standard? Diego.
-
What is the 1/2" slit on the right front edge of the MacBook Pro?
I recent bought a 15" Macbook Pro (2012 Model without the Retina Display). I love it, but I notice there is a little 1/2" slit on the right front edge of the laptop. Looking on the Tec Specs Page that lists all the ports and connections it is not lis
-
Select data from table not in another table
Hi, I want to select data from table A which is not in table B. Currently I am doing: select snoA, nameA, dobA from A where snoA not in (select snoB from A, B where snoA = snoB and nameA = nameB) But above is very slow. Can I do something like: selec
-
Error message: not authorized to play them on your computer
Error message: Some of the music in the itunes library weren't copied to the ipod because you are not authorized to play them on this computer. I have a Toshiba computer, Vista and I don't even know where to begin. Help anyone. Thanks.
-
Solution Manager Integration with QC
Hello All, I have one general query.... If test cases are in MS word stored in solar02, In this case do we need to generate Test case in QTP again ? can anyone brief about how does this integration works? Regards, Shyam