restructuring of the data matrix
Hello
I have given in the format below. The 3 values next to the year of service are the weeks of severance for each category.
years of service, grade_20, grade_21, grade_23
1, 3, 3, 3
4, 5, 6, 6
10, 10,11,12
with the data as)
Select 1 yos, 3 3 3 double g23 g21, g20
Union
Select the 4 years of service, 5 g20, g21 6 6 double g23
Union
Select the 10 years of service, 11 g21, 10 g20 and g23 double 12
)
I need to get that data in the format below. For each grade, there will be 10 lines. I hope that its clear. Help, please.
Class, year by year, to, weeks of Sev
-------------------------------------------------------
grade_20, 1, 2, 3
grade_20, 2, 3, 3
grade_20, 3, 4, 3
grade_20, 4, 5, 5
grade_20, 5, 6, 5
grade_20, 7, 8, 5
grade_20, 8, 9, 5
grade_20, 9, 10, 5
grade_20, 10, 11, 10
grade_21, 1, 2, 3
...
grade21, 10, 11, 11
...
grade23, 10, 11, 12
Hello
It is a solution with a recursive subquery. 10 is not a number of hard-coding, but the largest number in the column of yos.
WITH
data in the FORM of
(SELECT 1 yos, 3 g20, g21 3 3 g23 IN UNION double
SELECT the 4 years of service, 5 g20, g21 6 6 g23 IN UNION double
SELECT the 10 years of service, 11 g21, 10 g20 and g23 double 12
)
a, as
(
Select
grade
yos year_from
yos + 1 year_to
lead(yos,1) over (partition by order of rank by yos) next_yos
sev_weeks
Of
data unpivot d (grade sev_weeks (G20 as "grade_20", g21 as 'grade_21', g23 as 'grade_23'))
)
(grade b
year_from
year_to
next_yos
sev_weeks
) as
(select
grade
year_from
year_to
next_yos
sev_weeks
Of
one
Union of all the
Select
grade
year_from + 1
year_to + 1
next_yos
sev_weeks
Of
b
where
year_from< next_yos="">
)
Select
grade
year_from
year_to
sev_weeks
Of
b
order by
grade
year_from
;
GRADE YEAR_FROM YEAR_TO SEV_WEEKS
-------- --------- ------- ---------
1 2 3 grade_20
2 3 3 grade_20
3 4 3 grade_20
4 5 5 grade_20
5 6 5 grade_20
6-7-5 grade_20
7 8 5 grade_20
8-9-5 grade_20
9 10 5 grade_20
10-11-10 grade_20
1 2 3 grade_21
2 3 3 grade_21
3 4 3 grade_21
4 5 6 grade_21
5 6 6 grade_21
6 7 6 grade_21
7 8 6 grade_21
8 9 6 grade_21
9-10-6 grade_21
10-11-11 grade_21
1 2 3 grade_23
2 3 3 grade_23
3 4 3 grade_23
4 5 6 grade_23
5 6 6 grade_23
6 7 6 grade_23
7 8 6 grade_23
8 9 6 grade_23
9-10-6 grade_23
10-11-12 grade_2330 selected lines
Kind regards
Peter
Tags: Database
Similar Questions
-
Display of information from the data CAN at a gauge table
Hello
I'm new to Labview and just know the basics. I use a sample code to send and receive messages CAN. I need to view the data of received messages (only the first two bytes) on two gauges, i.e. the first two values of the data matrix. Is it possible to do? Also, it would be useful if I could control the value of the first byte of data using a button or dial. Any help would be appreciated.
Thank you
Brian
Hello Brian,.
You can use the "Subset of the table" function in your range of tables in your diagram and choose zero index and size two (2 items out of the table) in order to extract the first two values.
Here is a link to the help of the service document:
http://zone.NI.com/reference/en-XX/help/371361E-01/Glang/array_subset/
You can have all of your comments as a control and set the default values for the items you want to change. You can access this property by setting the value on the control, and then right-click on it to go to the "information Operations" then 'Create this value default value'. Then, you can right click the control you want to change and replace with a dial. Make sure you only select properly its representation. For example, a byte you would probably select U8.
Attached is an example, please take a look and let me know if it helps.
Kind regards
Michael S.
Technical sales engineer
NEITHER UK & Ireland -
OK, Im having a bit of trouble getting the data to display in labview. I like to read from a string of succession of data which is delimeted with «,» It works fine and I can get out to the token stringn. After 7 "blocks" of data, it will start to repeat themselves. How can I get that it displays each of these 7 chuncks of data, then on the next loop them refersh.
That's all I have for now
If I understand the problem, you have a string that has a number of embedded commas, and you want an array of strings corresponding to the 'things' between each comma. Your reference to 7 'chunks' might suggest that each VISA read will return a string of the form x 1, x 2, x 3, x 4, x 5, x 6, x 7 (7 points, commas 6), but this solution does not how 'chunks', just that they are separated by commas.
It uses regular expression matching function, with the comma as the regular Expression. This VI basically splits the string into two parts, everything before the comma (the upper exit, highlighted as an element of array) and everything (number less than forecasts, put on a shift made through new register). Each time through the while loop pull on another element, by adding to the matrix. When nothing is left, the loop stops.
Examine the three odd cases - string with no comma (get a table of 1 item with the full, correct string), string starting with a comma (get an array whose first element is an empty string, correct), string 1 element, ending (or not) with a comma (get a table to correct 1 item).
Enjoy.
BS
-
How to make the data previously generated reuse vi?
Attached VI is just a simple example for my problem. I want to generate some data (or read it thanks to a shared variable, etc, etc) and create statistics on these data. In this example, a histogram and value medium.
Now, if I stop the VI & restart again, the first time that I generate a new data point, all old data is deleted the chart and indicators. I want to change my program, so he'll see actually yet all the data I have accumulated before the table.
I know how to do for example in matlab:
output = myfunction (output)
so when I call this function, the first 'myfunction()' time it will generate the output array I can then move again on the next call so that the previously generated data will be used.
So, how do I do that in Labview?
Make a search for globals functional, which is based on the use of a shift register uninitialized for a while loop. You basically already have this if you simply delete the matrix constant which initializes the shift register holding the data table. It is a technique that was used before that global variables have been introduced. It's an old technique, but it is very effective and the basis for the Action engines. Jim Kring suggested a version no.-loop for LabVIEW 8.5.
Note: You perform a comparison on floating-point values. As noted several times on this forum, it is doomed to failure because of how floating point numbers are stored in computers (this has nothing to do with LabVIEW).
-
Hello
I have a question about the restructuring.
Normally, if I add the Member in the (Dense) general plan, it takes 5 hrs. If I add the formula and a member in the dimension member dense existing properties
It's 5 o'clock againto restructure?
Thank you
first result if you google "essbase restructuring":
Essbase starts an implicit database files restructuring after a preview is changed using the contour or Dimension Build Editor. The kind of restructuring that is performed depends on the type of changes made to the sketch:
- The dense restructuring: If a member of a dense dimension is moved, deleted, or added, Essbase restructures the blocks in the data files and creates new data files. When Essbase restructures data blocks, it automatically regenerates the index so that the index entries to point to the new data blocks. Empty blocks are not deleted. Essbase brand all the blocks that have been restructured as dirty, so after a dense restructuring, you must recalculate the database. Dense, the longest of restructuring, restructuring can take a lot of time for large databases.
- Sparse restructuring: If a member of a sparse dimension is moved, deleted, or added, Essbase restructures the index and creates new files to index. Restructuring of the index is relatively fast; the time needed depends on the size of the index.
- Restructuring of contour only: If a change affects only the outline of the database, Essbase does not restructure the data or index files. Change your member name, aliasing, and dynamic formula changes are examples of changes that affect only the outline of the database.
-
create some form data matrix bar codes
I use Adobe Acrobat Pro DC and I created a bar code data matrix to help create form tools.
How can I create a a barcode data matrix having a certain form and size of a PDF file?
Hi bogdanb55773770,
Right click on the bar code & select Properties, you get the dialog box to adjust the position. KB doc. using Acrobat help. PDF barcode form fields
Kind regards
Nicos -
Restructuring of the database ignores the setting of Configuration NUMBLOCKSTOEXTEND
The default value for NUMBLOCKSTOEXTEND is 2048. I have it set to 1 in order to test how the cube will respond to different operations.
I loaded the data to a block in my cube and the PAGE file size is just a little larger than the size of the 1 block. However, when I restructure the database, the size of the PAGE file grows up to 2048 blocks. So it seems that the NUMBLOCKSTOEXTEND is ignored by the dense restructuring explicit.
Can anyone confirm that this is expected behavior and whether or not he planned to be?
I use version 11.1.2.2
I think the idea is in the Tech reference there is a note at the bottom that says:
"
After NUMBLOCKSTOEXTEND to a value greater than the default value, there is an increase in the amount of pré-alloués for page files disk space. »
The key phrase is 'Set NUMBLOCKSTOEXTEND to a value greater than the default value'
I'm guessing that 2048 is both the sefault AND minimum size
-
Documaker: How to set the field of the 2D matrix
Hello
I created a matrix 2D field, but is not a 2D matrix...
You may notice that it is false?
Policy ID: Data Matrix for Documaker (dm___.ttf)
Type: Bar Code
Length: 32
Format: Data matrix
Symbol size: 18 * 18
Scale: 1
Rule: XDD
Source name: xxxxxxx
Example of XML is as follows.
< code >
< xxxxxx > 12345678901234567890123456789012 < / xxxxxxx >
< / bar code >
In the test, this field is output as follows...
AIHPBMGKHJENFPFKDK
AHFMCKOBPOEONLALIK
ALJLFFJMANLMMJAEBK
AGFCPMJOBELOEIKFCK
DDLDDDDDLLLLDLDDDL
I can output the barcode with the "1:1:2:2 Code 39".
Please help me.
Thank youIf you are talking about the screen, you also have to install TTF fonts to let Windows know to to use. The location in the fonts directory, would only affect that print them in PDF format when you download fonts.
Find the. TTF file on disk, right-click on it and choose Install. If you do not see the offer to install in your version of Windows, you may need to go to the control panel and choose fonts. Check the list to see if Data Matrix for Documaker has been installed. If you don't see it in the list, then check the offerred help by Windows, how to install a font on your system.
-
I want popup in the Data Form (Hyperion Planning) so all chainges
Hi all
is possible to set a popup in data form.if know tell me.
EX:
If the data changes in months now I want data popup are changed...
Thanking you.
Mohan.j
Published by: failure to restructure Essbase by adding the attribute on 5 April 2012 02:55
Published by: I want popup in the form of data, if necessary chainges on April 15, 2012 23:48Essbase transformed into shared Service security mode?
See you soon
John
http://johngoodwin.blogspot.com/ -
Disk space required for the restructuring of the DB
Hi all
Running Essbase 11.1.2.1
Sought a definitive answer to this and can't seem to find one, hoping that someone here can provide some clarification.
For the sake of arguments, if I wanted to make a '' RESTRUCTURING '' through the Regional service for a 50 GB database, how much free space will have to complete successfully?
A. probably simplified view (assuming the data must land on ora-ess01, have a few "Fireworks" and then go back to the DB), I imagine that something around 150% the size of the file would be sufficient, so about 75 GB free.
We are being advised by our consultants to have 250%, which would mean 125 GB... im assuming they are correct, because they know much more than we mere mortals (me), but if someone could shed some light on this it would be appreciated.
Thank you
JBYou don't mention if it's ASO or OSB. I'll assume BSO. That, to at least the size of your .pag, .ind, .otl, .esm combined files as it makes copies of all these. a little more would be food. Of course that would be the minimum and if a single database gets restructured and allow growth of DB.
With ASO, you need more space because it creates a copy in the temp directory for as well as the .dat file and so I heard the recommendation of 2 times your dat file, but I think you could get away with less.
I don't know what other factors are your consultant is taken into account I don't know your environment.
I should mention that it's for a simple restructuring, if restructuring is done by exporting the data, delete the DB and reloading, then much more disk is necessary because data would not be compressed on the disk in the export.
Published by: GlennS_3 on January 23, 2012 07:45
-
What version of Acrobat (reader) have introduced barcodes, Data Matrix?
Send the acrobat files which have bar codes data matrix on them to many people with different versions of acrobat. He had to give them a minimum requirement.
Thank you
OK, the first version of Acrobat that allowed you to create 2D barcode fields in Acrobat (as opposed to the Designer) is Acrobat 8, Reader 8 is the first version that would be able to use them.
-
How to create registration form data Matrix
Hi all
I want to create a form in the style of the matrix. Example: < strong > emp < facilities > table I would like to display / enter the No. Dept < strong > vertically < facilities > and < strong > locations horizontally < facilities >.
Example is shown below:
< strong > < em > DEPT < /em > 10 20 30 40
< em > Loc < /em > < / strong >
NY < strong > < facilities > XX YY ZZ OO
< Strong > CA < facilities > AA BB CC DD
< Strong > < facilities > CC AA PP OO
Can the ease with which I I create? Is there a property to set the data as an array, so that I can create the data block so easily? Also all data must be updated in the table.
Create a datablock on a "query from clause' as
( SELECT 1 LOCATION_ID, 1 DEPT1, 1 DEPT2, 1 DEPT3, 1 DEPT4, 1 DEPT5 FROM DUAL )
Use as many dummy columns as you plan enter as a "horizontal" group, I guess just 5 to keep things simple.
In the PRE-QUERY-trigger of the block of rewrite the query 'from clause' as
DECLARE CURSOR crDept IS SELECT DEPARTMENT_ID FROM DEPARTMENTS ORDER BY DEPARTMENT_ID; vcQuery VARCHAR2(32000):='(SELECT LOCATION_ID,'; i PLS_INTEGER:=0; BEGIN FOR rec IN crDept LOOP i:=i+1; vcQuery:=vcQuery || ' SUM(CASE WHEN d.DEPARTMENT_ID=' || TO_CHAR(rec.DEPARTMENT_ID || ' THEN 1 ELSE 0 END) AS DEPT' || TO_CHAR(i) || ','; END LOOP; -- cut last comma vcQuery:=SUBSTR(vcQuery, 1, LENGTH(vcQuery)-1); vcQuery:=vcQuery || ' FROM departments d, employees e where d.department_id=e.department_id GROUP BY LOCATION_ID)'; SET_BLOCK_PROPERTY('MYBLOCK', QUERY_DATASOURCE_NAME, vcQuery); END;
Now, if you run a query on your block, the query will be rewritten to get the sum of each Department until column, each row contains the amounts for a place.
To run, you would have to deal with some additional tasks such as hiding / display of unused columns in the layout...
I hope this helps.
-
See the time with the date in the cell?
How do you not see time with the date in a cell? I tried all the settings I can find but without success.
Using the numbers from version 3.6.2 (2577) - OS: El Cap 10.11.6
I don't want to see that 12:00:00 AM
Hi Russ,
Inspector to format > cell, the parameters as shown below:
Kind regards
Barry
-
Purchase of iCloud - affect the data plan I'm on?
I was wondering if anyone knew if I upgraded my iCloud storage plan, it would not affect the data plan, I'm on with my carrier? It would affect monthly bills or is it separate? And also, is it possible to pay with a credit from iTunes?
Use of Wi - Fi instead of your data plan to reduce your costs.
For iCloud extra storage, you can pay with an iTunes gift card.
-
Universal Clipboard is encrypted and how the data is stored in iCloud
Hello
You need a deep understanding of the works of the new, universal Clipboard feature safety? The feature is nice, but do you copy your password by company store system administrator password... This password is moving all over the world and also through Apple servers... Don't make me happy.
Who can guarantee that the communication is encrypted and the data stored in iCloud are not used for other purpose?
Thanks and greetings
Security and privacy - Apple Support Overview iCloud
Although not listed here, all data transmitted to the Apple servers is encrypted in transit and on the server.
I can't offer any advice on the question of whether your transmissions could be intercepted and decoded.
They say they also unequivocally that they never provide encryption keys to any third party. Which has been further strengthened with their recent dealings with the FBI.
You'll have to decide for yourself if you agree with what Apple says.
Maybe you are looking for
-
Picture Windows->; iPad transfer
I've been editing images I shot on a DSLR camera and transferred to my Windows laptop. They are now published and available as a jpg file and I want to show them to people. How to copy the photos on my iPad 9.7 Pro? On Android, I connect the Tablet,
-
Hello IAM using HP Omni 105 PC & My Model No.: 105 ix 5520. After formatting my computer, I installed Windows-7 64-bit. but my Wireless key board does not work... so that any driver software to update... will be very useful. Thanks for the help & gui
-
Library of photos on a NAS file server?
Hi guys,. We are about to move to OS 10.11 and therefore immune from iPhoto in Photos. A NAS file server currently holds all of our image files; on our different Macs iPhoto libraries have albums and lists that refer to these images, but the original
-
Hello. I downloaded the instrument drivers, but when starting from the block diagram, I'm going to find the instrument Drivers and then I double click on lcwave (so I guess that the drivers are installed correctly), it shows me a few examples of VI..
-
How to make the password in the tab control?
Hello My version of Labview is 8.6. I use a "tab control" create a GUI of two tabs. I'm trying to protect one of the tab for only authorized operators. So, what is the best way to do it? I don't actually have a different GUI password, but just a simp