One query two different Group By
In My parameter two option one and two.
if i select one, need to come this group by:-
GROUP BY
Name1,
Name2,
Country,
MCC || '/' | MNC
One Output:
Name1 - Name2 - Country - PNR
if i select two, need to come this group by
GROUP BY
Name1,
Country,
MCC || '/' | MNC
two output :
Name1 - Country - PNR
I have only one sql query But i have two different group by
Please advise me, m not using subreport option.
whether any formulas or any other options for group by.
Try inserting the groups statically that are common for both the parameaters like this
GROUP BY
Name1,
Country,
MCC || '/' | MNC
and now create a formula like this
whilereadingrecords;
if =1 then
{Name2 field}
else
Now insert one more group using this formula and move the group to second level by using group options.
Hope this helps!
Raghavendra
Similar Messages
-
Why does my iTunes show apps in two different groups?
When I open my iTunes 10 and look at the Apps tab, it shows my iPhone and iPad apps distributed amongst two different groups: iPhone, iPod Touch and iPad Apps and iPhone and iPod Touch apps. I don't really understand this as I don't have a iPad. An I only loaded a few apps to my iPod Touch years ago. Seems to me that the Listing should be showing apps sorted by the "Authorized Devices" to which they have been installed.
Another complication is that I have two Apple Store accounts...my US account from when I bought my first iPod Touch while living in the US and then a Thai account since I am living in Thailand and it makes payment easier. Isn't there a way to see the apps loaded into my Library sorted by Apple Store account??
Apple software is becoming more and more like the Microsoft products we all love to hate. Sadly, ease of use for the user is out the door. It's why I continue to use iTunes 10 and OS 10.6.8...stable and I know what I get and don't get already :-?
Thanks for the feedback.You got it right. Thank you.
-
How can I put a contact in two different groups?
How can I put a contact in two different groups. I downloaded Glite and have developed many groups, but I have some contacts that I would like to include in two different groups. Any solutions?
If I want to copy a contactl to another address-book I simly hold down the ctrl-key when I drag and drop
-
I have one iCloud account. I set up two separate calendars on iCloud to share with two separate groups. But when I click on the second calendar and try to enter data, it defaults to the first/other calendar (wrong group to share with). How do I fix this?
Was this ever resolved?
Recently I set up a share for one calendar with another Apple user, through my iCloud. Now I find that the shared calendar, which has maybe 50 entries a week because it is for keeping track of community center activities and printing out PDFs, appears in my personal Calendar --- unless I turnoff the sharing.
Is this generally true? I cannot find any clarity on this on Apple Support.
If so, I plan to stop the assistance to the other Apple user. I will stop sharing the community center calendar that I set up on my computer and ask her to set up such a calendar on her own computer anew. The sharing of Calendars does not work well. It seems the shared calendar takes over as the only calendar one can see on one's own computer, replacing other calendars set up without sharing. I can only "see" the other calendars by turning off the sharing on the shared calendar. This is inconvenient. Basically shared Calendars take over! -
One computer, two different ipods, one shared library?
Is there a way to setup two different ipods on one computer. I currently have my ipod library setup on an external drive. I setup a separate user profile for my husband. I pointed the library to my external drive, but no music files show up on his account. I also tried setting up home sharing....don't see library files under home sharing.....help please!
*How to use multiple iPods with one computer*
The Apple support document How to use multiple iPods with one computer suggests a number of ways. I use method two (Sync with selected playlists) with a slight twist. Rather than regular playlists I set the grouping field to indicate which users should receive which tracks and create smart playlists based on the content of this field.
e.g.
"Alice's Tracks" is "Grouping contains Alice" + "Kind contains audio"
"Bob's Videos" is "Grouping contains Bob" + "Kind does not contain audio"
Tracks that both Alice & Bob want on their iPods have the grouping set to "Alice/Bob"
etc.
I currently manage our family's five iPods using this system, each getting a different selection to suit their tastes and the capacity of their iPod. An advantage of using the grouping field is that it is stored in file tags (for non-wav audio files anyway) so that it is relatively easy to recreate the playlists should the iTunes library get trashed. Also useful if you move files about manually as playlist membership is preserved when you delete & re-import the tracks.
tt2 -
One query taking different time to execute on different environments
I am working on Oracle 10g. We have setup of two different environments - Development and Alpha.
I have written a query which gets some records from a table. This table contains around 1,000,000 records on both the environments.
This query takes 5 seconds to execute on Development environment to get 200 records but the same query takes around 50 seconds to execute on Alpha environment and to retrieve same number of records.
Data and indexes on the table is same on both environments. There are no joins in the query.
Please let me know what are the all possible reasons for this?
Edited by: 956610 on Sep 3, 2012 2:37 AMBelow is the trace on the two environments ---
-----------------------Development ------------------------------
CPU used by this session 1741
CPU used when call started 1741
Cached Commit SCN referenced 15634
DB time 1752
Effective IO time 7236
Number of read IOs issued 173
SQL*Net roundtrips to/from client 14
buffer is not pinned count 90474
buffer is pinned count 264554
bytes received via SQL*Net from client 4507
bytes sent via SQL*Net to client 28859
calls to get snapshot scn: kcmgss 6
calls to kcmgcs 13
cell physical IO interconnect bytes 165330944
cleanout - number of ktugct calls 5273
cleanouts only - consistent read gets 5273
commit txn count during cleanout 5273
consistent gets 202533
consistent gets - examination 101456
consistent gets direct 19686
consistent gets from cache 182847
consistent gets from cache (fastpath) 81013
enqueue releases 3
enqueue requests 3
execute count 6
file io wait time 1582
immediate (CR) block cleanout applications 5273
index fetch by key 36608
index scans kdiixs1 36582
no buffer to keep pinned count 8
no work - consistent read gets 95791
non-idle wait count 42
non-idle wait time 2
opened cursors cumulative 6
parse count (hard) 1
parse count (total) 6
parse time cpu 1
parse time elapsed 2
physical read IO requests 181
physical read bytes 163299328
physical read total IO requests 181
physical read total bytes 163299328
physical read total multi block requests 162
physical reads 19934
physical reads direct 19934
physical reads direct temporary tablespace 248
physical write IO requests 8
physical write bytes 2031616
physical write total IO requests 8
physical write total bytes 2031616
physical write total multi block requests 8
physical writes 248
physical writes direct 248
physical writes direct temporary tablespace 248
physical writes non checkpoint 248
recursive calls 31
recursive cpu usage 1
rows fetched via callback 23018
session cursor cache hits 4
session logical reads 202533
session uga memory max 65488
sorts (memory) 3
sorts (rows) 19516
sql area evicted 2
table fetch by rowid 140921
table scan blocks gotten 19686
table scan rows gotten 2012896
table scans (direct read) 2
table scans (long tables) 2
user I/O wait time 2
user calls 16
workarea executions - onepass 4
workarea executions - optimal 7
workarea memory allocated 17
------------------------------------------------------ For Alpha ------------------------------------------------------------------
CCursor + sql area evicted 1
CPU used by this session 5763
CPU used when call started 5775
Cached Commit SCN referenced 9264
Commit SCN cached 1
DB time 6999
Effective IO time 4262103
Number of read IOs issued 2155
OS All other sleep time 10397
OS Chars read and written 340383180
OS Involuntary context switches 18766
OS Other system trap CPU time 27
OS Output blocks 12445
OS Process stack size 24576
OS System call CPU time 223
OS System calls 20542
OS User level CPU time 5526
OS User lock wait sleep time 86045
OS Voluntary context switches 15739
OS Wait-cpu (latency) time 273
SQL*Net roundtrips to/from client 14
buffer is not pinned count 2111
buffer is pinned count 334
bytes received via SQL*Net from client 4486
bytes sent via SQL*Net to client 28989
calls to get snapshot scn: kcmgss 510
calls to kcmgas 4
calls to kcmgcs 119
cell physical IO interconnect bytes 340041728
cleanout - number of ktugct calls 1
cleanouts only - consistent read gets 1
cluster key scan block gets 179
cluster key scans 168
commit txn count during cleanout 1
consistent gets 41298
consistent gets - examination 722
consistent gets direct 30509
consistent gets from cache 10789
consistent gets from cache (fastpath) 9038
cursor authentications 2
db block gets 7
db block gets from cache 7
dirty buffers inspected 1
enqueue releases 58
enqueue requests 58
execute count 510
file io wait time 6841235
free buffer inspected 8772
free buffer requested 8499
hot buffers moved to head of LRU 27
immediate (CR) block cleanout applications 1
index fast full scans (full) 1
index fetch by key 196
index scans kdiixs1 331
no work - consistent read gets 40450
non-idle wait count 1524
non-idle wait time 1208
opened cursors cumulative 511
parse count (hard) 39
parse count (total) 44
parse time cpu 78
parse time elapsed 343
physical read IO requests 3293
physical read bytes 329277440
physical read total IO requests 3293
physical read total bytes 329277440
physical read total multi block requests 1951
physical reads 40195
physical reads cache 8498
physical reads cache prefetch 7467
physical reads direct 31697
physical reads direct temporary tablespace 1188
physical write IO requests 126
physical write bytes 10764288
physical write total IO requests 126
physical write total bytes 10764288
physical writes 1314
physical writes direct 1314
physical writes direct temporary tablespace 1314
physical writes non checkpoint 1314
prefetched blocks aged out before use 183
recursive calls 1329
recursive cpu usage 76
rows fetched via callback 7
session cursor cache count 8
session cursor cache hits 491
session logical reads 41305
session pga memory max 851968
session uga memory -660696
session uga memory max 3315160
shared hash latch upgrades - no wait 14
sorts (disk) 1
sorts (memory) 177
sorts (rows) 21371
sql area evicted 10
table fetch by rowid 613
table scan blocks gotten 30859
table scan rows gotten 3738599
table scans (direct read) 4
table scans (long tables) 8
table scans (short tables) 3
user I/O wait time 1208
user calls 16
workarea executions - onepass 7
workarea executions - optimal 113
workarea memory allocated -617 -
One app, two different Apple Dev accounts ... Will it work?
Building a standalone/single-issue viewer app for a client. We've asked to be invited to join their Apple Dev team, but the client proposes this workflow instead:
Scenario 1
• We use OUR iOS Provisioning Portal/Apple Dev account to generate all the certificates, provisioning profiles and the app ID needed to bake out the app.
• We deliver the final binary (.zip file) to the client.
• Client uses ITS iTunes Connect/Apple Dev account to deliver the binary to Apple, so that the client will be the publisher of record in iTunes.
WOULD THIS EVEN WORK? Can you really create an app using one Apple Dev account, then publish/manage it w/ iTunes Connect using another Apple Dev account?
We've also heard this scenario:
Scenario 2
• Using our Apple Dev account, we generate: Development Certificate (.p12) and Development Provisioning Profile
• Using, their Apple Dev account, the client generates: Distribution Certificate (.p12) and Distribution Provisioning Profile
THEN …
1.) … WHO generates the App ID, considering that our dev and their dist provisioning profiles need to be tethered to the same App ID?
2.) If it's the client, how do we tether OUR dev provisioning profile to THEIR App ID?
Big thanks in advance.My only experience with publishing is to create both the dev and distribution apps, so I haven't tested that workflow yet. But I've heard of publishers who need to do what you're proposing. As I understand it, you would basically create the required cert files from two different Apple accounts. With your Apple account, you would create a dummy App ID (such as com.publisher.publication.test), and create the dev .p12 cert, the dev mobileprovision file, and the dev push cert. Your client would create the real App ID (such as com.publisher.publication) along with the distribution .p12 cert, dist mobileprovision, and dist push cert. Once you get these certs, you use Viewer Builder to create the app using the cert files from the combined Apple accounts. You would publish and test the development ipa file. If it all works properly, your client would sign in to Viewer Builder, download the distribution .zip file and submit it to Apple.
As I said, I haven't tested this workflow yet, but we're currently setting up a similar split environment. -
One Interface - Two different maps - How to define which mapping to execute
Hi all,
I have created a SalesOrderCreate soap interface to BAPI_SALESORDER_CREATE to create SalesOrders on ECC600 from a legacy application. Now I have another legacy app that needs to create SalesOrders, but with some different mapping rules, using the same bapi.
The first think I thought was to create another soap interface. But the principle of Enterprise Services is to use only one interface for each service (so, I was supposed to use the same soap interface). Then I have one soap interface and two different message mappings to the same BAPI.
The question is how can I define that when the message comes from legacy "A" the mapping "A" would be executed, and when the message comes from legacy "B", the mapping "B" would be executed.
Thanks!
robertiHi,
>>>> But the principle of Enterprise Services is to use only one interface for each service (so, I was supposed to use the same soap interface).
the concept of Enterprise Services is as you say
but in your case it means that you need to use the same mapping... <-- as it's a part of your WS!
you need to use the same soap interface without any changed inside it
(in your case inside your mappings)
if you want to reuse your first interface you can do this:
- create another soap interface from second legacy to first soap interface
(there you can use another mapping)
this way you will reuse your previous work
this is Enterprise Services concept and not changing
web service logic (in this case mapping) for every new system
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Oracle Reports : one query - two reports?
Help, please, Oracle Reports 10g.
I have a query, need to make two reports in one. They are similar, just couple parameters are different, say, entreprise type and region;
How do I display these two reports in one? I tried to make parameters as placeholders, package variables, put an trigger on outer frames for reports. parameters do change their values but just the same report displays twice. where is the trick?
Thank youThe way I have done this in the past was to create 2 master frames, 1 for each report and then put conditions on each frame as to when it is to appear. Hope this helps..
-
We had 4 lines and shared 6Gb/1Gb promotional of data. Bill was appoximately $290 after receiving an employee discount through my employer of
22% on the plan (does not apply to the individual lines).
To make a long story short my wife called early in September about adding our oldest daughter back to our plan. She spoke with a representative by the name of Devin who told her that our bill would NOT go up but instead would go down automatically once we moved to a plan with 10Gb and that the bill would be approximately $225-235 per month for the 5 lines.
September 15th before adding my daughter we called again to verify the charges and finding out what we had to do to add her back. This representative also told me the bill would be $235 per month but couldn't explain why - she did see that it was in the notes. I was also was told that it was best to add her the night after her employer plan stopped covering her phone.
September 18th before adding her we called to find out what we had to do to add her back. This rep repeated what the others had said about the upcoming monthly charges.
The following Monday or Tuesday I called and talked with yet another representative trying to discover what was the reason for the bill dropping so significantly. The lady I spoke with indicated that we were to get a $22 (NOT $25) discount per line. I know its an odd figure thats why I remember it.
Sep 26th - called and spoke with representative who told me that we woud NOT be getting any discounts. I then spoke with a supervisor (Derrick) who explained that we should have already been getting $25 off for two of the lines and gave us credit for 1 month charges but nothing else. I asked him to pull the recordings - he said give him a week to investigate and make it right.
Oct 3rd - a week later - Derrick missed the callback.
Oct 4th - called and was advised that they had no way to get in touch with Derrick other than sending a message (I have to admit the gentleman was extremely pleasant - one of the better reps I've encountered) - said as much to his supervisor.
Oct 11th - talked with Priscilla and then her supervisor who said that one of the reps was her employee - would talk with her/pull the recording and call me back in an hour. She never called back.
We never asked for any discount - it was a Verizon employee that told my wife that the bill would go down to $230. Not once but 4 different times. Two supervisors promised they would pull the recordings and call us back but never did.
I'm not stupid - If the recordings proved that we made this up or that Verizon had NOT told us that the bill would go down to $230 then they
would have called back and rubbed it in my face. By them not calling back I know that they have discovered that we have stated the facts as
accurately as we can remember and have not made this up.
Is there anyone at Verizon that can resolve this situation to our satisfaction? There's a lot of difference between the promised $110 discount and the $50 indicated by Derrick.Don't worry you will not hear back if it's anything like my last few interaction with this company good luck. Oh you may have one of these online CSR tell you they are here to help but that just a smoke screen.
-
Double sided printing, adding blank page after two different groups
Post Author: adepper
CA Forum: General
I have created a report that is structured as such:
Group 1 - Based on formula, groups by type
Group 2 - Based on formula, groups by use
Group 3 - use (pulled directly from Database)
Group 4 - ID
I have the report printing an extra page after group 3. I used this formula in the Section Expert - New Page After
remainder(pagenumber,2)=0
I also use that formula to reset the page number
What I would like to do is print a second blank page if group 2 does not start on the top of the page, meaning I do not want either group 3 or group 2 to start on the back of a page, so that this report can be placed in a binder, with dividers.
I have group 3 giving me a blank page with no issues, it is just group 2.
Any help and/or suggestions would be appreciated. If I did not give enough details, I am sorry.
Thanks!Post Author: adepper
CA Forum: General
After a lot of blood, sweat and tears, not to mention a lot of curse words directed at the computer, I was able to get this to work. Now I just have to do it for three groupings instead of two (deliver the impossible to your bosses, and they turn around and move the brass ring right out of reach again!)
In case anyone is interested in how I was able to manage this (I found many sites where people asked this question, but not one complete answer), this is what I did:
In the footer section:
Group 4 - ID (database field)
Group 3 - PrimeUse (database field)
3a - Contains data
3b - Contains data
3c - New Page After, Keep Together, and Reset Page Number After are all checked. In the condition for Reset Page Number After I also have this formula:
remainder(pagenumber,2)=0
3d - New Page After, Keep Together, and Reset Page Number After are all checked. In the condition for New Page After I have this formula:
remainder(pagenumber,2)=0
Group 2 - Suppressed
Group 1 - Grouped by Store Type -
1a - Suppressed, New Page After and Keep Together are all checked.
1b - New Page After and Keep Together are checked. In the condition for New Page After I have to following formula:
remainder(totalpagecount,2)=1
If anyone sees any errors, or if you think you can get it so that I get another page blank, after Group 1, if the Group starts on an even numbered page, I would appreciate the help.
Thanks! -
Hi,
We have 2 Excise Groups for One Plant (Becaz they have two Excise Regn) .If the user forgor to Change proper excise group at the time of GR (MIGO)
Then How to correct it he has to cancel the Migo and then hehas to post again with reqd excise group na?
Am I correct?
Please correct me.
Thanks
PrasadHi,
you can control with authorisation.
by this activity your registers will get spoiled. becuse by reversal it doesnot take out the enteries from registers.
Regards
Rajesh -
One Query, Two Datasources
Is there a way to run a query on two separate datasources? I
would like to compare the data in two separate MS Access databases.
Thanks.You won't be able to combine two datasources in one cfquery,
so one way might be for you to query each datasource, then compare
the two results using a Q-of-Q.
Phil -
One article two different price?
Hi Experts
Can we mention two prices for One Article for same Sales organization ,distribution channel , site division ?
(e.g. in store there is two article one article they want to sale at one price say $ 1 and another article they want to sale at $1.5 )
Is it possible ?
thanks in AdvanceHi,
usually all conditions get saved in the A-Table specified by your key. E.G. Application, Condition, Sales Org, DC, Site, Article will be stored in A071.
If you actually do not want to change anything - I am sorry - no, not possible.
Now... if you are flexible enough, try to setup a promotion (VKA0). Your POS outbound will then send both prices to the POS, the VKA0 and the VKP0.
Using the promotion planning workbench, you might be able to find some fields and populate the data to the Interface to get the 1 for 1 CUR and the other 1 for 1,50 CUR. But even here, this would more likely be some sort of abuse of a BBY rather than standard functionallity in SAP.
Last but not least..... the POS can determine the price by themselves without getting the prices from SAP...
Feel free to be creative
Christian -
You can't assign the name to two different groups
In workgroup manager i a get this message. The name you have chosen conflicts with a name assigned to another group.
The group name doesn't exist.It might help if you told us the group name you're trying to create.
Just like usernames, there are a number of system groups that are hidden by default in Workgroup Manager. It may be your name is conflicting with one of those.
You can check View -> Show System Records in Workgroup Manager to show these groups. That might clarify your issue.
Maybe you are looking for
-
Can't open files in elements 12
why isn't my files opening in elements 12 for editing?
-
I use XML which has HTML text embedded in it. When i m displaying this text in Flash it gets displayed with spaces I m using AS 3.0,I have also used <Xml_Variable>.ignorewhitespaces= true but still not working
-
Free space in temport tablespaces
Hi. In my database i have TEMP tablespace with extent management LOCAL. In DBA studio it shows total space 8000M and free space 7996 when i query v$sort_segment select substr(TABLESPACE_NAME,1,10) ts_name,EXTENT_SIZE,CURRENT_USERS, TOTAL_EXTENTS,TOTA
-
How to *Update T710S* table from Program or any FM or BAPI or Any BDC
Hi, I want to update T710S table, Is there any FM or BAPI or Is it possible through BDC, If any body did that, Please Reply me ASAP. Regards Jan
-
I need to update my 1st gen iPad. Help! Ps I am pc stupid
.