SQ02 Coding help
Hi,
I have a selection screen program for sale order change bapi in Dev 700 Client & its working fine.
Now i want to execute same in Qulity client 900 without transporting request number.
Through SQ02.
Just let me know how to proceed for Extras-Code there are so many code section
how to execute this BAPI program which having selection screen also in SQ02.
thanks
HI,
If the want to test on the same server with different client then there is not need to transport .
If you need to transport the request to Quality server which is different form development.
Similar Messages
-
AS 2.0 to AS 3.0 coding help!
im new to flash and all this, so can someone please translate this code to AS3.0 coding, before i kill myself
_root.onEnterFrame = function ()
if (_root.mouseX<50){
imgBar.prevFrame();
imgBar.prevFrame();
if (MovieClip(root).mouseX<550){
imgBar.nextFrame();
imgBar.nextFrame();
I know i have to change _root with MovieClip(root) but after that im just stuck help please. thy!if, when your mouseX is less than 50, you want imgBar to move to its previous frame use:
imgBar.addEventListener(Event.ENTER_FRAME,onEnterFrame)
function onEnterFrame()
if (MovieClip(root).mouseX<50){
imgBar.prevFrame();
} else {
imgBar.nextFrame(); -
Hi
Iu2019ve coded some custom fields in Adhoc query to output infotype free text (maintained via F9 in infotype).
syntax error
The code is correct to me, and was tested and worked.
I now have an issue when a query is run with the relevant fields I receive error:
Error when generating the report (see long text)
Message no. AQ_AD_HOC221
Diagnosis
The report cannot be generated because the internal description is invalid or incomplete, or because the selection screen is too large.
Regenerate the assigned InfoSet, and read the log. If the InfoSet is OK,make sure that at least one field is given as output.
f you used the 'Refresh' icon to start the query, use the 'Output' menuoption to execute the query. This gives you a full screen display of the data.
If an output was generated, the query cannot work with actual data in the construction view. In this case, always use the 'Output' function to execute the query.
Procedure
If the selection screen is too large, you need to reduce the number of your selections.
Make sure that the assigned InfoSet is correct. The name of the assigned InfoSet is stored in the menu option 'Extras -> Template Information'.
Output at least one field. Otherwise you will not be able to save or generate reports.
If you do not have this problem, execute the query using the 'Output' function.
Otherwise, there is an error in the InfoSet Query.
This doesnu2019t make sense as I have selected outputs, regenerated infoset etc, but unresolved.
If anyone has any insights into this error or has come across before, please let me know, any feedback much appreciated.
regardsHi Minttea,
Regarding the reported issue, when the customer-specific infotypes are transported into another environment and you want to evaluate the data o infotype table PA9nnn in reports based on logical database PNP,kindly run report RPUMS40CCI ( XPRA for generation of infotype include ) for your existing customer-defined your existing customer-defined infotypes.
ADDITIONAL INFORMATION:ADDITIONAL INFORMATION:
RPUMS40CCI - XPRA RPUMS40CCI - XPRA for generation of infotype include The repThe report RPU40CCI creates the infotype include %_HRnnnn (nnnn = infotinfotype number) and the additional data structure Pnnnn_AF (nnnn = infotype number) for the given infotype, provided that the corresponding parameter ("generate infotype include" or "generate additional data structure") are set on the selection screen. If the parameter "maintain only T77ID" is set, no infotype include or additional data structure is maintained, only those entered in table T77ID.
I hope this information helps!
Regards,
Jaime -
ECR/ECO Authorization on system statuses - Coding help requested
HI PLM Gurus,
Unfortunately ( or that ,,,Iam not aware of)There is no SAP standard Authorization object to control a user setting a particular system status in ECR/ECO. This means by SAP's standard functionality any user who is authorized with authorization objects ECM_REQ and ECM_ORD in their role and all activities allowed, can set any statuses in ECR /ECO.
But typical business requirment in any change management requires the control status wise and so do we have one.
We knew this can be achieved by a custom authorization object. We have created a manual object but need help with coding to get the current status of the object for matching the authorization (allowed) values .
Any help is appreciated.
Thanks,
SatyaThanks Pranav,
Just to clarify ,I knew about the exit and Iam using the same exit, I was trying to get help on the coding part . Identifying Exit is not a problem .( we have used this exit a number of times for different requirements in ECM, like checking the lab/office field for an object before setting a system status , defaulting a new version of document etc)
Update : Got a parameter ( a dynamic field value)which helped us code very easily
,,,,Can share with you .
For system level authorization checks ,one can use Digital signatures and this might be the reason for not having(SAP not providing) a standard authorization object for "system status check "in Standard SAP ECM Authorizations.
Thanks a bunch for the response.
Rgds,
Satya. -
My problem is this...
On our website, viewers have an option to view anonymously or
sign in for better functionality.
If they choose to sign in, I want them to be able to return
to the page they were just on.
Is there a simple way to do that in the PHP coding?Simple:
So you have your page that does something:
Inserts into database or just posts to a specific page and
point it to
"redirect.php"
Now you have a page called redirect.php
In there you add the code of the page it needs to go to.
<?php
header('Location: index.php');
?>
So if you came from index.php then your code in redirect.php
would read:
<?php
header('Location: index.php');
?>
Problem solved.
"Les_S" <[email protected]> wrote in message
news:ff2e4f$6fn$[email protected]..
> That didn't seem to work.
>
> Here is what I have working now....
>
>
> if (isset($_POST['username'])) {
> $loginUsername=$_POST['username'];
> $password=$_POST['password'];
> $MM_fldUserAuthorization = "";
> $MM_redirectLoginSuccess = "
http://www.mysite.com/success.php";
<---
> this
> line is what I would like to change.
> $MM_redirectLoginFailed = $_SERVER['HTTP_REFERER'];
<-- hopefully to
> something similar to this.
> $MM_redirecttoReferrer = false;
>
> Using the code method from your reply, the page did not
load at all.
>
> Any other ideas?
>
> Please help.
>
> -
Hi friends,
In MIGO, and Qty field ERFMG...i want to put a coding check that it should display a message as "Quantity should be minimum of 10% less and maximum of 20% high only",whenever the user tries to change the value of the field(existing value from the order #).
the field is cs_goitem-erfmg....
FYI.
I know the badi implementation and assinged it also.the coding part is not coming perfectly what i needed.
Pls do reply, if anyone have sample code or have solutions how to declare it.
thanks & regards
sankar.Hi Sankar,
Please post your coding and explain what "is not coming perfectly" and we might be able to help you.
Regards,
John. -
Coding help please - changing image using links
Hi there,
I wonder if anyone could help me? I'm designing a website at
the moment, but being a traditional print designer, I'm finding it
quite difficult to get use to the coding at first. What I have is a
page (which is shown in the link below with what i'm after) with
six links, some text and a default image which I want the user to
be able to click on the 'linked text' and change the main image so
if 1.jpg was the main image, when they click 'cover 2' they get
2.jpg and so on in the same frame that the main image is kept in.
I've tried some javascript code I found on another help site
but it just messes the frames up and only seems to work if the code
is as one rather than pasted in my pages code?
Please, please, please can someone help as it's driving me
mad and the boss is getting closer to the room :-)
Below is a screenshot of my page and written in red on it is
the various bits I need to work out with your help.
[IMG]http://i7.photobucket.com/albums/y254/080780/help.jpg[/IMG]
http://i7.photobucket.com/albums/y254/080780/help.jpgSelect a link, and apply a DW Image Swap behavior to swap the
main image to
the one desired. Do not use the automatic restore.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Gavin Wood" <[email protected]> wrote in
message
news:fhegg8$o4s$[email protected]..
> Hi there,
>
> I wonder if anyone could help me? I'm designing a
website at the moment,
> but
> being a traditional print designer, I'm finding it quite
difficult to get
> use
> to the coding at first. What I have is a page (which is
shown in the link
> below
> with what i'm after) with six links, some text and a
default image which I
> want
> the user to be able to click on the 'linked text' and
change the main
> image so
> if 1.jpg was the main image, when they click 'cover 2'
they get 2.jpg and
> so on
> in the same frame that the main image is kept in.
>
> I've tried some javascript code I found on another help
site but it just
> messes the frames up and only seems to work if the code
is as one rather
> than
> pasted in my pages code?
>
> Please, please, please can someone help as it's driving
me mad and the
> boss is
> getting closer to the room :-)
>
> Below is a screenshot of my page and written in red on
it is the various
> bits
> I need to work out with your help.
>
>
[IMG]http://i7.photobucket.com/albums/y254/080780/help.jpg[/IMG]
> http://i7.photobucket.com/albums/y254/080780/help.jpg
>
>
> -
Javascript Coding Help: Checkbox
I am not familiar with coding except to say that I know what the possibilities are. I work for a small business and I need help adding a javascript code to a writeable PDF form we are using in Adobe Acrobat Pro.
If a check box (Checkbox1) is clicked then I would like this text (PAID IN FULL) to appear in a text box named (Paid In Full1). If the check box is not clicked then the text box remains empty.
Can someone help write this code for me?
Thank you for your time and patience.You can use something like this as the text field custom calculation script, then:
event.value = this.getField("Checkbox1").value=="Off" ? "" : "PAID IN FULL"; -
HI Friends,
Im working on MB_MIGO_BADI object for MType: 261.Here, im facing a problem to call a info msg with coding effect.i.e, I've to give a conditional message says that if the user tries to change the quantity (changing the existing/available in the field text of MIGO), then it'll give a window pop-up message or info msg like "Quantity should not be changed". Pls reply ur post how to fix this.
The fields are
1) cs_goitem-bwart " MType
2) cs_goitem-erfmg "Quantity
Note: A) It'll be applied only for MType:261.
B) Pls advise, Here, shall I declare the export and import memory id concept?
FYI
******Below is the coding part declared inside the method function.
method IF_EX_MB_MIGO_BADI~LINE_MODIFY.
if cs_goitem-bwart eq '261'.
*cs_goitem-erfmg is not initial and
*call function 'CUSTOMIZED_MESSAGE'
*exporting
Message i006(zmsg).
endif.
endmethod.
Above, it helps only showing the info msg while entering the mtype: 261.But i need to display it only if the cursor comes into Qty (ERFMG) field. Pls advise me how to fix with ur coding example.
mail me:[email protected]Posted newly since one of the issue got solved.
thanks -
Socket private chat coding help!!!
any one get the private chat coding in TCP/IP(socket connection). I have coding the chat program that can public chat but the private chat get problem.
anyone get the private chat tutorial and comment.....pls help me....
hongTry searching around with Google. There are millions of chat programs all over the net with source.
-
Hi,
XSLT Code.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:ns0="http://peoplesoft.com/APC_WORKER2_CI" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<ns1:Z_HPA_357_PROVISION_USER_IMS.Response xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
<SUCCESS>
<xsl:value-of select="soap:Envelope/ soap:Body/ Create__CompIntfc__APC_WORKER2_CIResponse/ notification"/>
</SUCCESS>
----pseudo code starts-------------
if SUCCESS eq 1,
then move "Y" to SUCCESS.
elseif SUCCESS eq 0,
then move "N" to SUCCESS
----pseudo code ends-------------
</ns1:Z_HPA_357_PROVISION_USER_IMS.Response>
</xsl:template>
</xsl:stylesheet>
Could someone help to put the pseudo code in XSLT syntax.
Thanks,
-santosh
Edited by: santosh koraddi on Mar 24, 2011 1:23 AMBelow is the solution......
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:ns0="http://peoplesoft.com/APC_WORKER2_CI" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<ns1:Z_HPA_357_PROVISION_USER_IMS.Response xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
<SUCCESS>
<xsl:choose>
<xsl:when test = "soap:Envelope/ soap:Body/ Create__CompIntfc__APC_WORKER2_CIResponse/ notification = 1">
<SUCCESS>Y</SUCCESS>
</xsl:when>
<xsl:when test = "soap:Envelope/ soap:Body/ Create__CompIntfc__APC_WORKER2_CIResponse/ notification = 0">
<SUCCESS>N</SUCCESS>
</xsl:when>
</xsl:choose>
</SUCCESS>
</ns1:Z_HPA_357_PROVISION_USER_IMS.Response>
</xsl:template>
</xsl:stylesheet> -
Coding help...not wanting name input
Hi, ive been working on this ongoing program, adding little here and there. And i finally got it to stop working when stop is entered into the name selection. But while im in the second loop of "does not equal stop" it dispays the print System.out.print("Please enter the employees name"); but does not wait for me to enter the name and jumps to the next step. I have tried to make the second while loop variable "name" different then the first loop but that didnt work. If you can please help me that would be greatly appreciated.
import java.util.Scanner;
public class WeeklyPay
public static void main(String[] args)
Scanner input= new Scanner (System.in);
double rate;
double hours;
double weekly;
String name;
String stop;
String name2;
System.out.println("Hello!"); //Welcome Text
System.out.println("This program computes an employees weekly pay"); //Explains what its for
System.out.print("Please enter the employees name:"); //Asks for employees name
name = input.nextLine(); //Saves next input as name
if( ! (name.equalsIgnoreCase("stop")) )
System.out.print("Please enter the hourly rate of the employeee:"); //Asks for hourly rate
hours = input.nextDouble(); //Saves next input as hours
System.out.print("Please enter the number of hours the employee works a week:"); //Asks for number of hours worked in a week
rate = input.nextDouble(); //Saves number of hours a week
weekly = rate*hours; //Computes weekly pay
System.out.printf("The employee:%s\n", name); //Displays Employees name
System.out.printf("Weekly pay : $%6.2f%n", weekly); //Displays weekly pay
while( ! (name.equalsIgnoreCase("stop")) )
System.out.println("Please enter the employees name:"); //Asks for employees name
name2 = input.nextLine(); //Saves next input as name
System.out.print("Please enter the hourly rate of the employeee:"); //Asks for hourly rate
hours = input.nextDouble(); //Saves next input as hours
System.out.print("Please enter the number of hours the employee works a week:"); //Asks for number of hours worked in a week
rate = input.nextDouble(); //Saves number of hours a week
weekly = rate*hours; //Computes weekly pay
System.out.printf("The employee:%s\n", name2); //Displays Employees name
System.out.printf("Weekly pay : $%6.2f%n", weekly); //Displays weekly pay
System.out.println("Program has been terminated"); //Program will terminate
}test
import java.util.Scanner;
public class WeeklyPay
public static void main(String[] args)
Scanner input= new Scanner (System.in);
double rate;
double hours;
double weekly;
String name;
String stop;
String name2;
System.out.println("Hello!"); //Welcome Text
System.out.println("This program computes an employees weekly pay"); //Explains what its for
System.out.print("Please enter the employees name:"); //Asks for employees name
name = input.nextLine(); //Saves next input as name
if( ! (name.equalsIgnoreCase("stop")) )
System.out.print("Please enter the hourly rate of the employeee:"); //Asks for hourly rate
hours = input.nextDouble(); //Saves next input as hours
System.out.print("Please enter the number of hours the employee works a week:"); //Asks for number of hours worked in a week
rate = input.nextDouble(); //Saves number of hours a week
weekly = rate*hours; //Computes weekly pay
System.out.printf("The employee:%s\n", name); //Displays Employees name
System.out.printf("Weekly pay : $%6.2f%n", weekly); //Displays weekly pay
while( ! (name.equalsIgnoreCase("stop")) )
System.out.println("Please enter the employees name:"); //Asks for employees name
name2 = input.nextLine(); //Saves next input as name
System.out.print("Please enter the hourly rate of the employeee:"); //Asks for hourly rate
hours = input.nextDouble(); //Saves next input as hours
System.out.print("Please enter the number of hours the employee works a week:"); //Asks for number of hours worked in a week
rate = input.nextDouble(); //Saves number of hours a week
weekly = rate*hours; //Computes weekly pay
System.out.printf("The employee:%s\n", name2); //Displays Employees name
System.out.printf("Weekly pay : $%6.2f%n", weekly); //Displays weekly pay
System.out.println("Program has been terminated"); //Program will terminate
}Edited by: Broodwich on Oct 10, 2008 8:00 AM -
ABAP Coding Help for Subtotal type output - SAP Query
I've created a SAP Query to display a stock overview by storage type using the table LQUA.
The output that I get is:
Material
Description
Plant
WHN
SLOC
Storage Type
Batch
GR Date
Available stock
2057
STRAWBERRIES
BP01
100
0088
200
0001081766
17.06.2014
225
2057
STRAWBERRIES
BP01
100
0088
200
0001081766
17.06.2014
720
2061
VOSTIZZA CURRANTS
BP01
100
0088
200
0001081272
17.06.2014
1,000
2061
VOSTIZZA CURRANTS
BP01
100
0088
200
0001081272
17.06.2014
1,000
2061
VOSTIZZA CURRANTS
BP01
100
0088
200
0001081272
17.06.2014
1,000
2061
VOSTIZZA CURRANTS
BP01
100
0088
200
0001081272
17.06.2014
1,000
I can get a subtotal for each Material, batch and GR date combination by using the ALV grid functionality.
This method adds too much clutter to my query and can't be easily manipulated in Excel afterwards for what I want. I want to condense the results down and just keep a cumulated available stock, e.g:
Material
Description
Plant
WHN
SLOC
Storage Type
Batch
GR Date
Available stock
2057
STRAWBERRIES
BP01
100
0088
200
0001081766
17.06.2014
945
2061
VOSTIZZA CURRANTS
BP01
100
0088
200
0001081272
17.06.2014
4,000
How can this be done?Hi,
Please try to use STATISTICS in your SAP Query. you can sort and add your value based on condiiton then it will be show you collect value in SQ01.
Please see the below documents for STATISTICS
https://help.sap.com/saphelp_erp2004/helpdata/en/d2/cb4263455611d189710000e8322d00/content.htm
Regards,
Prasenjit Mishra -
Yes, another plea for help!! I am hoping somebody can review
the links below and reply to this post with the code that I need,
together with some guidance on where to place it in my site. I
don't have the time to trawl the web for clues, so if someone is
able to help, I will return the favour by bestowing on you a
lifetime of good karma !
This is the scroll bar I want (shortened to 100px high):
http://www.bvn.com.au/projects/ballarat_learning_exchange.html?OpenDocument&idx=Type&pcat= Public^Buildings&tpl=ext
This is the page I want to add it to:
http://www.atlantisdesign.com.au/projectsParliamentaryTri01.htmlHow about this?
http://www.projectseven.com/products/tools/vscroller/vs1.htm
Al Sparber - PVII
http://www.projectseven.com
Fully Automated Menu Systems | Galleries | Widgets
http://www.projectseven.com/go/Elevators
"Murray *ACE*" <[email protected]> wrote
in message
news:g1190t$547$[email protected]..
> It's always a bad idea for this and other reasons. I
wouldn't waste a
> second trying to implement cheesy stuff like this.
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
> ==================
>
>
> "Dooza" <[email protected]> wrote in message
> news:g116d2$25r$[email protected]..
>> (_seb_) wrote:
>>> sparky030405 wrote:
>>>> Yes, another plea for help!! I am hoping
somebody can review the links
>>>> below and reply to this post with the code
that I need, together with
>>>> some guidance on where to place it in my
site. I don't have the time to
>>>> trawl the web for clues, so if someone is
able to help, I will return
>>>> the favour by bestowing on you a lifetime of
good karma !
>>>> This is the scroll bar I want (shortened to
100px high):
>>>>
>>>>
http://www.bvn.com.au/projects/ballarat_learning_exchange.html?OpenDocument&idx=
>>>> Type&pcat=Public^Buildings&tpl=ext
>>>> This is the page I want to add it to:
>>>>
http://www.atlantisdesign.com.au/projectsParliamentaryTri01.html
>>>>
>>>>
>>>>
>>>
>>>
http://youngpup.net/projects/2027/
>>
>> Whilst thats a neat trick that I have never seen
before, if you turn off
>> Javascript then you can't access the rest of the
text.
>>
>> Steve
> -
Hello All,
I need help on getting the sql code.
Here is how the example data is laid out in my data table called example.
name age favorite colors
john doe 15 red:blue:green
Notice how the data is in column "favorite colors" they are set values selected from a multiple list.
I need the sql to get it to display like this.
name age favorite colors
john doe 15 red
john doe 15 blue
john doe 15 green
thanks>
Here is how the example data is laid out in my data table called example.
name age favorite colors
john doe 15 red:blue:green
Notice how the data is in column "favorite colors" they are set values selected from a multiple list.
I need the sql to get it to display like this.
name age favorite colors
john doe 15 red
john doe 15 blue
john doe 15 green
>
Storing data in a denormalized form like this usually leads to trouble. Rather than getting into complex programmatic solutions simply to retrieve data, why not use a properly normalized data model that eliminates the problem?
SQL> create sequence subject_seq;
Sequence created.
SQL> create sequence color_seq;
Sequence created.
SQL> create table subjects (
2 subject_id integer primary key
3 , subject_name varchar2(30) not null
4 , age number(3, 0) not null);
Table created.
SQL> create table colors (
2 color_id integer primary key
3 , color_name varchar2(20) not null,
4 constraint color_name_uk unique (color_name));
Table created.
SQL> create table favorite_colors (
2 subject_id integer not null references subjects
3 , color_id integer not null references colors,
4 constraint fav_color_pk primary key (
5 subject_id
6 , color_id))
7 organization index;
Table created.
SQL> create index fav_color_ix2 on favorite_colors (
2 color_id
3 , subject_id);
Index created.Deal with complexity—like processing multi-value select lists—in the bits of the application that lend themselves to it: PL/SQL processes; DB packages etc, using features like the aforementioned <tt>apex_util.string_to_table</tt>:
SQL> declare
2
3 l_sub_id subjects.subject_id%type;
4
5 procedure process_fav_colors (
6 p_subject_id in subjects.subject_id%type
7 , p_colors_str in varchar2)
8 is
9
10 l_fav_colors apex_application_global.vc_arr2;
11
12 begin
13
14 l_fav_colors := apex_util.string_to_table(p_colors_str);
15
16 delete favorite_colors
17 where subject_id = p_subject_id;
18
19 forall i in l_fav_colors.first()..l_fav_colors.last()
20 insert into favorite_colors
21 (subject_id, color_id)
22 select
23 p_subject_id
24 , col.color_id
25 from
26 colors col
27 where
28 col.color_name = l_fav_colors(i);
29
30 end process_fav_colors;
31
32 begin
33
34 insert into colors values (color_seq.nextval, 'red');
35 insert into colors values (color_seq.nextval, 'green');
36 insert into colors values (color_seq.nextval, 'blue');
37 insert into colors values (color_seq.nextval, 'rose');
38 insert into colors values (color_seq.nextval, 'black');
39 insert into colors values (color_seq.nextval, 'white');
40
41 insert into subjects
42 (subject_id, subject_name, age)
43 values
44 (subject_seq.nextval, 'john doe', 15)
45 returning
46 subject_id into l_sub_id;
47
48 process_fav_colors(l_sub_id, 'red:green:blue');
49
50 insert into subjects
51 (subject_id, subject_name, age)
52 values
53 (subject_seq.nextval, 'man ray', 86)
54 returning
55 subject_id into l_sub_id;
56
57 process_fav_colors(l_sub_id, 'black:white');
58
59 insert into subjects
60 (subject_id, subject_name, age)
61 values
62 (subject_seq.nextval, 'pablo picasso', 91)
63 returning
64 subject_id into l_sub_id;
65
66 process_fav_colors(l_sub_id, 'blue:rose');
67
68 end;
69 /
PL/SQL procedure successfully completed.Then getting the data in the required form is trivial:
SQL> select
2 sub.subject_name
3 , sub.age
4 , col.color_name
5 from
6 subjects sub
7 , favorite_colors fc
8 , colors col
9 where
10 sub.subject_id = fc.subject_id
11 and fc.color_id = col.color_id
12 order by
13 sub.subject_name
14 , col.color_name;
SUBJECT_NAME AGE COLOR_NAME
john doe 15 blue
john doe 15 green
john doe 15 red
man ray 86 black
man ray 86 white
pablo picasso 91 blue
pablo picasso 91 roseAnd what if there's a requirement to query and analyze the data? Answer questions like: Who likes blue? Or How many subjects have more than 2 favorite colors?
SQL> select
2 sub.subject_name
3 from
4 subjects sub
5 , favorite_colors fc
6 , colors col
7 where
8 sub.subject_id = fc.subject_id
9 and fc.color_id = col.color_id
10 and col.color_name = 'blue';
SUBJECT_NAME
john doe
pablo picasso
SQL> select
2 count(*)
3 from
4 (select
5 count(*)
6 from
7 subjects sub
8 , favorite_colors fc
9 , colors col
10 where
11 sub.subject_id = fc.subject_id
12 and fc.color_id = col.color_id
13 group by
14 sub.subject_id
15 , sub.subject_name
16 having
17 count(*) > 2);
COUNT(*)
1This is impossible to do simply and efficiently with the original model.
Maybe you are looking for
-
when i want to create a face time it tells me to vertify my email address. When i go to do this i have to type in my apple ID and password on the Apple website, however when ever i do this i get a message saying Invalid account for this Email Address
-
Install OS X 10.6 Snow Leopard on MacBook Pro problems
Hi all, About early November, I upgraded my MacBook Pro (Mid 2009) but failed to restart it. The spin sign stayed there for a very long time and nothing happened more. So I decided to reinstall the OS X 10.6 with a CD ordered from Apple wit
-
How can i get the list of volumes(Drives )
I want to get the list of all Volumes(Drives) ,exist in the system Kindly some one help me
-
How do i revert to cs6 none of my plugins work in photoshop cc
don't show up when i reinstall them either windows 7 home premium
-
Importing a 2010 process image into LR5
I've just exported as catalog 2 images from an older catalog ( process version 2010 into LR5. there was no way to automatically convert them to 2012 process. I had to turn on the calibration panel in Develop mode and then set it to 2012 and then copy