rotate the table
Hello!
We have a 1Darray with values and we want to rotate/shift values (3 positions). But she moves whenever we want to read the table.
For example: we have [1 2 3 4 5 6 7 8 9 10] and we want for the quarter 3 positions as [10 9 8 1 2 3 4 5 6 7] we want to send this table, read it and then turn and read every time until we get the first table.
Should we use loops or we can put directly?
All responses are welcome!
Thank you!
Why did - it always people who insist on the things a way more complicated than it should be...
Tags: NI Software
Similar Questions
-
How to rotate the table?
Hi, I have a query that produces the following result:
A B C D
----------------- ------------------ ------------------ ------------------
BEGINNING 2013-01-31 28-02-2013 2013-03-31
VALUE1 552488.86520999996 553429.08377000003 548169.86664999998VALUE2 26883.37285 24362.411590000003 24697.108139999997
I want to make a 'simple' conversion and get the result like this:
DATE VALUE1 VALUE2
----------------- ------------------ ------------------
2013-01-31 552488.86520999996 26883.37285
2013-02-28 553429.08377000003 24362.411590000003
2013-03-31 548169.86664999998 24697.108139999997
Now, if I use the PIVOT clause, I get everything in one line only with different column names. If I use UNPIVOT I get only two columns with mixed values and dates. It is quite useless for me...
So, how do you achieve this? I have a fairly simple solution, because real dataset is much, much bigger and I would like to avoid the dynamics, Monster requests: P
DB version: 11.2.0.3.0
For 11g using unpivot/pivot
https://forums.Oracle.com/thread/2584868
with t
as
(
Select 'DATE', ' 2013-01-31' b, ' 2013-02-28' c, ''d 2013-03-31
of the double
Union of all the
Select 'Value1', ' 552488.86520999996' b, ' 553429.08377000003' c, '548169.86664999998'd»»'
of the double
Union of all the
Select 'Value2', ' 26883.37285' b, ' 24362.411590000003' c, '24697.108139999997'd»»'
of the double
)
Select d, v1, v2
BeO
Select * from t unpivot (val for q (b, c, d))
)
Pivot (Max (Val) for a in ('DATE'd, 'Value1' v1, v2 'Value2'))
D V1 V2 2013 03-31 548169.86664999998 24697.108139999997 2013 01-31 552488.86520999996 26883.37285 2013-02-28 553429.08377000003 24362.411590000003
----
Ramin Hashimzade
-
Rotate the Plot chart legend of XY
Is it possible to rotate the legend of the plot for the plot names letters run from the bottom to the top rather than in the whole of the operator interface?
The names of my plots are bigger and I need to show at least four plots at the same time. Put the scales to the right/left/above or below without rotating can cause a short XY Chart!
Any ideas for me?
Concerning
Waris K
Hello
I don't know if there is a native way to do it, but you can 'cheat' to do this:
You can move the table where the captions are, or even make the table turn into lines instead of the column.
Is the idea ok for you?
-
Hi, guys.
Does anyone know is it possible to rotate the fonts?
Police class has a method derived from
public Font derive(int style, int height, int units, int antialiasMode, int effects, int[] transform)
I suspect that the transform parameter should be responsible for turning.
But in the javadoc is no information with regard to transformation of the values in table to rotate the font.
Where can I find this information?
Thank you.
This is a very serious example of how to rotate the text.
class StringSpinner extends MainScreen { Font myFont; int xOffset; int yOffset; int theta; public StringSpinner() { xOffset = Display.getWidth() / 2; yOffset = Display.getHeight() / 2; new Thread() { public void run() { while(true) { theta += 5; theta %= 360; invalidate(); try { Thread.sleep(25); } catch (InterruptedException ignore) { } } } }.start(); } public void paint(Graphics graphics) { int thetaFixed = Fixed32.toFP(theta); int cell_11 = Fixed32.cosd(thetaFixed); int cell_12 = -Fixed32.sind(thetaFixed); int cell_21 = Fixed32.sind(thetaFixed); int cell_22 = Fixed32.cosd(thetaFixed); int[] transform = new int[] { cell_11, cell_12, cell_21, cell_22, 0, 0 }; myFont = Font.getDefault().derive(Font.PLAIN, 14, Ui.UNITS_px, Font.ANTIALIAS_STANDARD, 0, transform); graphics.setFont(myFont); graphics.drawText("Weeee!!!", xOffset, yOffset); } }
-
How to join two tables if you transpose the rows, columns and rows in one of the table
Hi guys,.
can someone help me please in the write request
I have two tables
Agents and Agent phones but in the agent phones table for the id of an agent it displays 4 rows because one of the column there types of different phones (office, mobile, home, fax)
So instead of display 4 rows, I used max(case...) to convert rows to columns
now how to reach it with another table
Requirement:
Database: 11.2.0.2.0
create the table AGENT_PHONE
(
agent_id NUMBER (20) not null,
agent_type_code VARCHAR2 (10) not null,
agent_type_prefix VARCHAR2 (10) not null,
Phone_Number VARCHAR2 (16) not null,
phone_type_code VARCHAR2 (10) not null
)
CREATE TABLEAGENTS
(
agent_id NUMBER (20) not null,
agent_type_code VARCHAR2 (10) not null,
agent_type_prefix VARCHAR2 (10) not null,
NAME VARCHAR2 (40) NOT NULL
)
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '4805551436', 'CELL');
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '1111111111', 'PHONE');
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '2223334444',' OFF');
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '5556667788', 'FAX');
INSERT INTO VALUES AGENTS
(29709, ARE ', 'OFFICE', 'FLY');
INSERT INTO VALUES AGENTS
(1234, ARE ', 'OFFICE', 'MIKE');
SELECT * FROM AGENT_PHONES
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX PHONE_NUMBER PHONE_TYPE_CODE ---------------------------------------------------------------------------------------------
29709 RE OFFICE 4805551436 CELL 29709 RE OFFICE 1111111111 PHONE 29709 RE OFFICE 2223334444 OFF 29709 RE OFFICE 5556667788 FAX
SELECT * AGENTS
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME
29709 RE OFFICE ROB 1234 RE OFFICE MIKE
This is so the data we have in both table
Now, I transposed rows to columns in the table of agent phones so I used the following query
SELECT AP. AGENT_ID,. AGENT_TYPE_CODE,. AGENT_TYPE_PREFIX.
MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'CELL' THEN AP. PHONE_NUMBER END) AS CELL.
MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'OFF' THEN AP PHONE_NUMBER END) AS TURNED OFF.
MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'FAX' THEN AP. PHONE_NUMBER END) LIKE FAX,.
MAX (CASE WHEN PHONE_TYPE_CODE = 'PHONE'. THEN AP PHONE_NUMBER END) AS PHONE
AGENT_PHONE AP
WHERE AP. AGENT_ID = 29709
GROUP OF AP. AGENT_ID, AP. AGENT_TYPE_CODE, AP. AGENT_TYPE_PREFIX.
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL OFF FAX PHONE 1 29709 RE OFFICE 4805551436 2223334444 5556667788 1111111111 My question is how this to join the agents table so that my output should be like this...
I want to display all the results in the table of the Agent, even if they are not in the table of agent phones. As you can see there are other agent id 1234 is also populated
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788 1234 RE OFFICE MIKE Currently, I run this query and I get the output as below
SELECT *.
AGENTS HAS
LEFT OUTER JOIN AGENT_PHONE AP
ON A.AGENT_ID = AP. AGENT_ID
AND A.AGENT_TYPE_CODE = AGENT_TYPE_CODE.
AND A.AGENT_TYPE_PREFIX = AGENT_TYPE_PREFIX.
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX PHONE_NUMBER PHONE_TYPE_CODE 1 29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 CELL 2 29709 RE OFFICE ROB 29709 RE OFFICE 1111111111 PHONE 3 29709 RE OFFICE ROB 29709 RE OFFICE 2223334444 OFF 4 29709 RE OFFICE ROB 29709 RE OFFICE 5556667788 FAX 5 1234 RE OFFICE MIKE I want id 29709 agent in a line with 1234 agent also id to display
You can rotate your phone number of agent in columns
Select *.
of AGENT_PHONE
pivot)
min (PHONE_NUMBER)
for PHONE_TYPE_CODE in ('CELL' as a 'CELL', 'PHONE' like 'PHONE', 'OFF' in the 'OFF', 'FAX' as 'FAX')
)
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788 Then you can join to view inline or CTE
with AGENT_PHONE_PIVOT like)
Select *.
of AGENT_PHONE
pivot)
min (PHONE_NUMBER)
for PHONE_TYPE_CODE in ('CELL' as a 'CELL', 'PHONE' like 'PHONE', 'OFF' in the 'OFF', 'FAX' as 'FAX')
)
)
SELECT *.
AGENTS HAS
LEFT OUTER JOIN AGENT_PHONE_PIVOT AP
ON A.AGENT_ID = AP. AGENT_ID
AND A.AGENT_TYPE_CODE = AGENT_TYPE_CODE.
AND A.AGENT_TYPE_PREFIX = AGENT_TYPE_PREFIX.
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX 29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788 1234 RE OFFICE MIKE - - - - - - - Is that what you're looking for?
-
When I do a privot table.i to use the finishing table to draw a gauge.but there is no options to choose in the table rotates results? How to get there.
Thank youAfter building pivot table, you select graphic option when you get the screen on the top you will find option pivot chart and select the chart you want to display so it comes exactly w.r.t. to the pivot table view.
UPDATE POST
Use the class view and this view of pivot... Place both in the view selector and rename the pivot and assess accordingly and this is what you want.
UPDATE POST 2
I mean I want to use the privot data draw a gauge? How to do?
The data that comes with columns that you built in the PivotTable, the same would come when you use the same gauge view columns discover it by building it and then you will learn about its operation. Give it a go.
See you soon,.
KKPublished by: Kranthi.K on April 15, 2011 06:39
Published by: Kranthi.K on April 15, 2011 07:06
-
Need to rotate the sub query using 11 g
Hello
Please find the below query
SELECT AGING_BUCKET_ID, DAYS_START, DAYS_TO, AR_AGING_BUCKET_LINES TYPE
WHERE AGING_BUCKET_ID = 3
It displays the data as below
AGING_BUCKET_ID DAYS_START DAYS_TO TYPE
3-9999 0 CURRENT
3 1 30 LAST
3 31 60 LAST
3 61 90 LAST
3 91 9999999 PAST
I tried to rotate the data, tried to make use of the PIVOT of the 11 g used the following query function
WITH AGBUCK AS
(
SELECT AGING_BUCKET_ID, DAYS_START, DAYS_TO, AR_AGING_BUCKET_LINES TYPE
WHERE AGING_BUCKET_ID = 3
) SELECT * FROM AGBUCK
PIVOT)
DAYS_START s1, s2 DAYS_TO, type
FOR AGING_BUCKET_ID
(3)
);
finished in the msg below:-ora-56902: wait for the aggregate within the operation of pivot function
can you please help me to fix it.
Concerning
YramHi, Yram,
Whenever you have a problem, after a few sample data and outcomes from these data.
Sorry, I can't make a good guess at what you want, and I'm not an Oracle 11 database now to test. I think you want something like this:WITH AGBUCK AS ( SELECT AGING_BUCKET_ID , DAYS_START , DAYS_TO || TYPE AS label FROM AR_AGING_BUCKET_LINES WHERE AGING_BUCKET_ID = 3 ) SELECT * FROM agbuck PIVOT ( MIN (days_start) FOR label IN ( '0 CURRENT' AS current_0 , '30 PAST' AS past_30 , '60 PAST' AS past_60 , '90 PAST' AS past_90 , '9999999 PAST' AS past_9999999 ) ) ;
The first thing inside the parentheses after the PIVOT keyword must be an aggregate function. If there is a one-to-one correspondence between the lines in the "input" table and cells in the output, so no matter if you use the MIN or MAX (or, in the case of numbers, AVG or SUM).
-
Picture randomly for the background of the Table
Hello
I am currently creating an html version of my Flash site. On the new homepage, I want a table in the middle to have a ranom in the background image, but to have a text on top. So every time a viewer visits my site, the context is different, but the master copy is the same. See http://www.studiobaum.com/html%20site/random.html for the page so far.
I'm sure that it is not too complicated, but it is reputed to be too much for me at the mo. Can you help me?
Thank you
S
sempriny wrote:
> Hello
>
> I'm currently trying to create an html version of my Flash site. On the new
> home page I want a table in the middle to have a ranom in the background image
> but to have a text on top. So each time a viewer visit my site, the
> background is different but the master copy is the same. See
> http://www.studiobaum.com/html%20site/random.html to the page so far.
>
> I'm sure it's not too complicated, but it is reputed to be too much for me to
> MB. Can you help me?You can do it easily if you use a server as language
like php, ASP, ColdFusion. You just need to find a suitable script.
This one is for php.http://automaticlabs.com/products/Rotator/
If you choose to use php download script and place the file in the
same folder as the images you want to rotate.I guess this is the table that you want the image to take in?
CellPadding = "0" cellspacing = "0" >If so give an 'id' as table below called "rotation".
CellPadding = "0" cellspacing = "0" >Then copy and patse below in your style sheet linked css. The
URL of the background image assumes that your image rotation are in a folder named
images, as well as the script php, named random.php in the present
for example, even if you can name it what you want.{#rotate}
background-image: url(images/random.php);
background-repeat: no-repeat;
} -
stop the email addresses in the table in the spreadsheet to launch mail
I am compiling of data in a worksheet Numbers and many cells in the table into them from the e-mail addresses.
Whenever I tap on the cell that contains an e-mail address, he jumps to my Mail application and launches a new mail with the email address. It's so irritating cos I have to type on any address in the table and I DON'T WANT my Mail App to launch. How can I stop this madness? Help, please!
Hi helix.
Drag the column wide (or Panel Format > table > column)
Click on the white space to the right of the link to select this cell without activating the link
Now, edit
Tested on a MacBook Pro with numbers under Mac OS X El Capitan 10.11.5 3.6.2
Kind regards
Ian.
-
How can I display the table of contents for the iPod Touch to 6
When I opened first of all iPod Touch Users' Guide, I used the table of contents (TOC) to locate and access sections in the manual. But, after looking through the manual for awhile, I tried to return to the table of contents, but it wasn't there! I have tried various things to see if the table of contents are being hidden, or if in some way, it has been deleted. Anyone can shed light on this mysterious event?
What is the version of iBooks that you speak? There is an online version here: https://help.apple.com/ipod-touch/9/ Aha, I see the table of contents on the left disappears if you zoom before or make the narrow window and reappears if zoom you out or make it larger.
TT2
-
How can I create a custom button to format the table borders?
I often paste to Excel in a message e and would like a button or a context menu for the PROPERTIES of TABLE FORMAT it takes 2-3 clicks each time to access. Is there such a thing? I searched the Add-ons nothing helps. There may be a change in config I can do which would have the table to stick with borders already in place (I have to change the thickness of the border on '1' each and every time that she missed to '0' - maybe there is a place to have it by default on '1'?)
I have attached a picture of the menu on that I wonder.
I don't know of a setting for this...
It would be easier to click on, but based on underscores bit indicating the keys Accelerator, the keyboard sequence would be:
- ALT + o b o
- ALT o b o
-
How to rotate the IPAD during installation (down key does not)
Hi, I have an old 1st generation IPAD where the bottom 10% of the screen no longer works. I tried to reset the IPAD, but now I'm stuck on the screen "to accept the license. Is there a way to get around this? Can I rotate the screen at this time?
Thank you
Hi Icetbr,
What a great iPad model you have there! If you already tried to change the orientation of the screen during the initial installation without success, then you will not be able to turn right there. But no worries. You may be able to activate the Zoom feature during the installation process that will allow you to access the agreement to license button. Also, given that you have problems with the display, you should consider having repaired to your Apple local store or service center. The steps and the links below will help you activate the Zoom feature as well as to get some great info to get your iPad repaired if you choose to.
When you turn on your iPhone, iPad or iPod touch for the first time, you can quickly activate VoiceOver or Zoom for you help to set up your device. Here's how:
Zoom
To activate the Zoom, use three fingers and double-tap the screen.
To increase the Zoom level, use three fingers to double - tap and hold, and then move your fingers upward or downward on the screen to increase or decrease the magnification.Use the accessibility features in iOS
Thank you for using communities of Apple Support. Have a great day.
-
The tables of my site are off right in Firefox only.
I recently downloaded a new site. The table in the Center is off the right on all pages.
Any input would be helpful. Thank you!
Good fishing Jefferson!
Add this semicolon missing in the Syle editor immediately fixes this issue.
#nav { background: url(full-header.gif); height: 38px; width: 850px; margin: 0 auto; }
Note that the Web Console (Firefox/tools > Web Developer) can be used to find such errors.
Expected color but found 'height'. Error in parsing value for 'background'. Declaration dropped. nav.css:10 Expected ':' but found '850px'. Declaration dropped. nav.css:11 Error in parsing value for 'background-position'. Declaration dropped. nav.css:65 Expected ':' but found '850px'. Declaration dropped.
There is also a colon missing with 850px width; rule 360dental.css
#nav { height: 37px; width: 850px; margin: 0 auto; background-image: url(/Images/page_images/nav.png); }
-
I need to create a table of contents in iPages but I want only one word for the title, not the line of holes. Or, how can I change the contents of the table? Thank you!
Yes, you can have a one word title, by assigning a paragraph style title to this one word. No, you cannot change the text in a Table of contents, but you can change paragraph style font attributes (line) and add for example, a head of points between the types of OCD paragraph and page numbers. No part of the table of contents will not provide hyperlinks in exported PDF documents.
When you look up in the menu bar, you can see the word iPages, or simply Pages. There is no product of iPages.
-
Changing the font styles in the table of contents usingpages 5.6.2
Hello
I am writing a scientific assignment and I have some titles that contain italic characters such as: Importance of Bacillus cereus
When I create a table of contents, these italics seem to disappear and I can't do these italics without making the entire table italic material - that is not what I want.
I also have the same problem with the degrees symbol which is great script in my titles, but appears as '0' in the table of contents.
Can anyone help please?
Thank you!
When you build a Table of contents, Pages v5.6.2 uses a brush regular Helvetica on all text in the generated TOC. He made his farewell to all the attributes of fonts can set up for your titles and headings. We can not selectively reapply text attributes to a part of a table of contents entry.
If I use the degree symbol in the title or the title paragraph style, she survives as baseline Exhibitor in the generated table of contents. My degree symbol is entered as shift + option + 8 (on a U.S. keyboard).
Maybe you are looking for
-
Hello friends. I'm at the stage of Firefox OS boot. I need to download the source code of Firefox OS but I couldn't download.Ubuntu have no internet on my computer. I download Windows, then I transfer it to Ubuntu.How can I download Firefox OS source
-
HP Pavilion 500-056: what cd/dvd fits my model
I think that my CD/DVD drive has gone wrong. How do I know what to replace it with. I tried to find a list of the parts for my model with no luck. HP Pavilion Desktop PC 500-056Product number: H5P75AAR #ABA
-
How can I find a program that was on my computer before and now its nott?
I looked for the program in the start menu and windows Explorer. only place I found it was in the region of uninstaller in the control panel. In my view, what could of happened is it could have been deleted and sent to the trash to recycle but it has
-
upgrade to new version->; mixed mode
We intend to move to 8.0.1. our environment must be 24 x 7, so all of our servers are load balanced and redundant. Is it possible to work with different versions of vWorkspace in 1 environment? Let's say I have 2 brokers a 7.6 and the other 8.0.1? or
-
Optiarc dvd rw ad - 7173a scsi driver for windows 7
Hello.I just installed windows 7 and can not install or detect my dvd - rom.My computer is a gateway GT5628.I tried to update the drivers manually, but it did not work either.How can I solve this problem?