to remove the numbers after the decimal point and round
Hi allselect (sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) <> upper('Top')) then
(((((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)*94)/2000) )
when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
( ((nvl(H.CLASS_V_CEMENT,0)*94)/2000) )
when F.ITEM_UOM = 'Pound' then
CEIL( ROUND((((((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100)))/2000
end)*(j.opn_value/2)) SUM_MAT_ACT_TON ,--------transport
sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) <> upper('Top')) then
((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
nvl(H.CLASS_V_CEMENT,0)
when F.ITEM_UOM = 'Pound' then
ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
end) SUM_sload , ----sload
sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) <> upper('Top')) then
((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
-- when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
-- nvl(H.CLASS_V_CEMENT,0)
when F.ITEM_UOM = 'Pound' and F.BLEND <> 'PH'then
ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
end) BLENDING
,e.opn_job_desc
FROM xxnp_opn_joblog_001 E,
XXNP_OPN_JOBLOG_EST_002 F,
XXNP_OPN_JOBLOG_STAGE_002 G,
XXNP_OPN_JOBLOG_SLURRY_003 H,
XXNP_OPN_JOBLOG_RES_005 J,
MTL_SYSTEM_ITEMS_B P
WHERE E.OPN_JOB_DESC = 'K/D/SP158/SA399/1338/D/0510/1' AND
E.MANUAL='N'
and J.opn_resource_desc='4X4 PICK-UP OR LIGHT VEHICLES'
AND E.OPN_JOBLOG_001_ID = J.OPN_JOBLOG_001_ID
and F.INVENTORY_ITEM_ID=P.INVENTORY_ITEM_ID
AND p.ORGANIZATION_ID='103'
AND E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID
AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
GROUP BY E.OPN_JOB_DESC,j.opn_value
o/p i am getting
SUM_MAT_ACT_TON SUM_SLOAD BLENDING OPN_JOB_DESC
11587.7954154787 1957.62401925833 1454.62401925833 K/D/SP158/SA399/1338/D/0510/1
well can anyone guide me on obtaining the following output (to remove decimal places and round )
SUM_MAT_ACT_TON SUM_SLOAD BLENDING OPN_JOB_DESC
11588 1958 1455 K/D/SP158/SA399/1338/D/0510/1
thanking in advanceEdited by: makdutakdu may 25, 2010 12:48
select round( (sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) upper('Top')) then
(((((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)*94)/2000) )
when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
( ((nvl(H.CLASS_V_CEMENT,0)*94)/2000) )
when F.ITEM_UOM = 'Pound' then
CEIL( ROUND((((((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100)))/2000
end)*(j.opn_value/2))) SUM_MAT_ACT_TON ,--------transport
round(sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) upper('Top')) then
((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
nvl(H.CLASS_V_CEMENT,0)
when F.ITEM_UOM = 'Pound' then
ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
end)) SUM_sload , ----sload
round(sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) upper('Top')) then
((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
-- when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
-- nvl(H.CLASS_V_CEMENT,0)
when F.ITEM_UOM = 'Pound' and F.BLEND 'PH'then
ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
end)) BLENDING,
e.opn_job_desc
FROM xxnp_opn_joblog_001 E,
XXNP_OPN_JOBLOG_EST_002 F,
XXNP_OPN_JOBLOG_STAGE_002 G,
XXNP_OPN_JOBLOG_SLURRY_003 H,
XXNP_OPN_JOBLOG_RES_005 J,
MTL_SYSTEM_ITEMS_B P
WHERE E.OPN_JOB_DESC = E.OPN_JOB_DESC AND
E.MANUAL='N'
and J.opn_resource_desc='4X4 PICK-UP OR LIGHT VEHICLES'
AND E.OPN_JOBLOG_001_ID = J.OPN_JOBLOG_001_ID
and F.INVENTORY_ITEM_ID=P.INVENTORY_ITEM_ID
AND p.ORGANIZATION_ID='103'
AND E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID
AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
GROUP BY E.OPN_JOB_DESC,j.opn_value
Tags: Database
Similar Questions
-
Hi all
I want a query to remove the decimal point in a number.
That is to say) 3.21 = 321
.21 = 21
1 = 1
76.667 = 76667
In all this I just want to remove the comma preceding.
Please help me to write the query
Thank you
JOTO_NUMBER (Replace(3.21,'.'))
Kind regards
Florian... -
May not know how to fix the bug of the decimal point in this calculator code
Hi guys, I am new in flash and is currently learning how to build a simple calculator with multiplier (more, less, multiple, divide, change of sign and decimal point), but I'm stuck on the decimal point and change the sign.
var multiplier_old:Number = 10; var multiplier_new:Number = 1; // .: Sets the multipliers so that new input numbers become decimals of a lower unit column action_point.addEventListener(MouseEvent.MOUSE_DOWN, function():void { multiplier_old = 1; multiplier_new = 0.1; point = true; }); // Takes intput from the input_ buttons and adds it to the input after applying the multipliers. // If `point` is true then the multiplier_new is divided by 10, also as described. function inputNumber(n:Number):void { input = input * multiplier_old + n * multiplier_new; if (point) { multiplier_new *= 0.1; trace(multiplier_new); } output_txt.text = input.toString(); }
Decimal point
The problem is that when I entered 2.7 in the calculator, it displays the values in output_txt correctly. But then when I entered 2.78, it will display 2.780000000000000000000000002. This will happen also to other numbers if the entry is too large.
What I want is just 2.78. How can I change the encodings make 2.780000000000000000000000002 2.78?
Sign of change
Any tips on how to start on this one?
Thanks for your time,
Kamel
You must use rounded in order to keep the numbers down to limited decimal values. To display specific decimal values using the String class toFixed() method when you write the text in the TextField.
To change the sign, multiply by-1.
-
How do the box values ring to have figures after the decimal point
How do the box values ring to have figures after the decimal point
Thanks in advance
Control properties editor:
Change the representation in the floating point data Type tab type, DBL will do.
Then go to the Page of display Format and increment 'Numbers' to something greater than 1
That toggles the column of values on the tab change the items to % .6f, or 6 digits of precision. Uncheck sequential following, values and you're there.
If you think that's too restrictive, go back the display Format, then select if rating and you can type anything (but, the editor has a hissing fit, so you must load chains and property [] with a property node values programmatically)
I've been struggling to get OR improve this editor of properties of the years!
-
How to eliminate zeros after the decimal point
Hello
I have the columns in the table of Planner has BEGIN_DAY BEGIN_MONTH BEGIN_YEAR and the values are coming as 12.00, 11.00, 2009.00.
In the database there are no zeros after the decimal point, but when the tables are imported into OBIEE see zeros in columns above. Is it possible to remove the zeros after the decimal place to the RPD.
Rgds,
AmitSet the data type in the physical layer int.
-
Entry number of HTML does not accept the figures after the decimal point
I use html5 number entry type. But do not accept the figures after the decimal point. Any suggestion welcome. Thank you
The below HTML syntax works with the last update BB10.
-
Using the effect of text "cursor", I am able to view replace "30 ° C" "35.5 ° C". My question is: is it possible a 0 is displayed after the decimal point when the value is rounded? (I get: 20-20, 1;) "I need 20, 0-20, 1). I use this code:
Temp = effect ("Slider Control") ("Slider");
sliderValue = Math.round(temp*10)/10;
[sliderValue + ' ° C ' "']
Here is the solution:
numDecimals = 1;
Temp = effect ("Slider Control") ("Slider");
sliderValue = (Math.round(temp*10)/10).toFixed(numDecimals);
sliderValue + "° C";
-
Two problems of report generation Excel on the decimal point
Hello good people, I have a problem when you try to generate an Excel report, please see the image below:
Note that excel removes the decimal separator in the case of the number is > 1 (so that 1 000 becomes 1000) and if the number is<1, excel="" interprets="" it="" as="" a="" text="" string="" (excel="" say="" something="" like="" "the="" number="" in="" this="" cell="" is="" formated="" as="" text,="" or="" is="" preceded="" by="" an="" apostrophe").="" how="" to="" get="" rid="" of="" these="" problems?="" i="" would="" like="" an="" integer="" to="" appear="" as="" the="" same="" integer="" in="" excel,="" and="" any="" number="" less="" than="" one="" to="" be="" interpreted="" as="" a="">1,>
Thank you very much in advance!
If I disable the comma localized for this VI, do you think I'll be able to use it as a Subvi without changing the decimal separator of the VI calling parameters?
My Excel also prefers with a floating point numbers, but I do not understand why numbers lower than that will not be treated as numbers right away?
Hello OscarJ,
Unfortunately the position of the decimal point is global, so call VI is affected, too.
But there are other possible solutions: you can convert your double array in an array of strings. Conversion functions 'number in string' to disable the explicitly localized comma:
Now, you can add text to your report.
Your excel seems to interpret "," so that thousands separator and '.' as the decimal separator, so the incorrect number conversion. It seems a little odd since you say he prefers ',' as the decimal separator... There may be something to do with the office report generation tool.
-
0 and the decimal point in Oracle SQL
Hello
IM using Oracle Sql developer 'Oracle Database 11g Enterprise Edition Release 11.1.0.6.0' (I'm fairly new), im having trouble inserting '0 before 1' in the table, as well as with the decimal point
I created a table with the following:
CREATE TABLE employee
(Employe_id number (4,0) NOT NULL primary key,)
L_Name varchar2 (15).
What varchar2 (10),
Number of Pay_Rate (5);
Then tried to insert this: insert into employee
values ('003', 'Clarke', 'Michael', '13 h 00');
which has been a success, but when I used the query select it to display the table, the result was not the same
result:
Employee_id L_Name what Pay_Rate
1 13 Michael Clarke
How can I ensure that the result looks like this (001 and 13 h 00):
Employee_id L_Name what Pay_Rate
001 Micheal Clarke 13.00
Edited by: 936867 may 25, 2012 20:15
Edited by: 936867 may 25, 2012 20:18936867 wrote:
Sorry, I wanted to ask "what needs to be changed in the create table statement, so when I introduced through the 'Insert into' data is presented as above after the select query. I want the data to show as entered when I look at the table, I know that can use the select query to display data in the desired format.Then do not define the columns as a NUMBER, but as strings of VARCHAR2,
but realize that you can't do arithmetic on strings.NUMBERS have no beginning or ending zeros but bites can contain what you want.
-
How to remove the decimal value (. 00) of the slider control
Please ask me how to remove the decimal value (. 00) of the slider control and Add (if possible) % in after effects cs6.
I guess you mean to animate text with a slider.
Add a slider (options for expressions) to your text layer and then add this expression in your Source text:
x = Math.Floor (effect ("Slider Control") ("Slider"));
x+" %"
That's all
-
How to convert the string to a full decimal point and left shift
Hey guys I tried to convert gps string to an integer, like this
A string that is 2467.8976 and I need to convert it to a similar integer as point of this 2467.8979 so that I can shift the decimal point to the left (24.678979) which i coudnt do it with the chain. It's just been my 2 weeks with the labview so be gentle. Thank you
Hi Awais07,
Once you have created an indicator that signals the output of parsing the string, right-click on this indicator > display... Format > increase the value of the digit 9
Kind regards
Lennard.C
-
On a computer running Windows XP Professional SP3, I redirected the "\Windows\Installer" system folder, with a junction to a record point in a tree of directories to a different drive. The operation was conducted and verified using "junction v1.06 - creator of junction point analysis viewer and Windows' published in 2010 by Mark Russinovich. I moved all the files and subdirectories contained in the original "\Windows\Installer' in the target directory (the these files had been previously copied to a temporary directory and after the move, I checked that they were visible in the folder '\Windows\Installer' open the symbolic link with the Explorer).
Then I launched a system patch, and I discovered that the installation of the update of the software deleted program point junction that I created, deleted all the cache contained in the directory with the name of substitute target different files and recreated the "\Windows\Installer" folder in the original disc.
I tested this behaviour a couple of times, installing various software and updates, so I assume that it does not depend on the software that is installed but the installation program itself, which cannot handle a point of junction of the folder "install".
No warning is given before deleting the junction point and all of its contents. With a similar procedure, I made two points of junction for '\Windows\Downloaded facilities' and '\Windows\Microsoft.NET' and they have exploited properly.
Out of understanding points do not work on startup, so it is impossible to redirect for example. :- \Windows
- \Windows\System32
- \Windows\Config
"\Windows\Installer" isn't one of those cases, and it is not used at startup.
Is it possible to use a junction point to redirect the \Windows\Installer on another disk/partition folder, or Setup will always delete all the files that have been targeted in the naming of replacement?
Hello
Your question would be better suited for the TechNet forums.
I suggest you to ask your question to the TechNet forum for better support.
http://social.technet.Microsoft.com/forums/en-us/itproxpsp/threads
-
When you use Excel or my Peachtree Accounting program, entered digital as "$152(32 in the accounting package or the same number with a square symbol as the decimal point in Excel.)". No idea what I should check first?
Thank you for visiting the website of Microsoft Windows Vista Community. The question you have posted is related to Office Excel and would be better suited to the office community. Please visit the link below to find a community that will support what ask you
http://www.Microsoft.com/Office/Community/en-us/default.mspx?d=1
Mike - Engineer Support Microsoft Answers
Visit our Microsoft answers feedback Forum and let us know what you think. -
Redesign existing external hard disks and still 6 Lightroom able to find existing photos.
I currently store my pictures on and an external hard drive. Lightroom 6 was not able to find the picture momentarily files. I inserted an external Flash DRIVE after removing the hard drive and the computer renamed the stick with the same drive letter that has been designated by Lightroom to store my photos. I could go into my Windows 10 and reset the player to the letter that Lightroom has given at the beginning of the external hard drive. However, I know this can happen again, if I connect any stick USD or another device, while the external hard drive is not connected to my laptop. I found the information that I can do the new designation of the final drive by choosing a letter it is 1/2 way or higher in the alphabet. I would like to turn an external hard drive on a strong letter, warns we hope this previous problem. My question is, if I already have a lot of pictures on this external hardrive with the designation of the current drive, how it becomes a higher letter and have 6 Lightroom recognizes files, now under the new designation of drive letter without having to go to each photo individually and manually force Lightroom 6 find each photo. It would take more time than I'd like to lose. Is there a way to get just 6 Lightroom to recognize the new disk designation has changed and is able to find all of the existing files?
I have read the ADOBE LightRoom 6 manual and seem not to be able to find anything on how to do it.
Any help would be welcome.
Thank you!
So in Windows, you can select a drive like q letter (or any other letter you want only towards the end of the alphabet)
Then in Lightroom, you can reconnect to the photos on q: the following instructions (see specifically 4 Figure and related text)
-
Place the decimal point in a number
We use the Oracle 10 g on Linux:
I have an obligation to show the decimal point a number based on certain opinions. By example, if I give myself the number = 12345 and decimal_place = 2, then the output should be 123.45. To meet this requirement, I wrote the code which works great but very slow because it is running in insert statement for each row.
code
outputdefine value=45896; define dec=1; select substr(&value,1,length(&value)-&dec) || '.' || substr(&value,length(&value)-&dec+1) x from dual
I can it adjust more?4589.6
select to_char(&valu / power(10,&deci ),'FM999999D'||rpad('0',&deci,'0'),'nls_numeric_characters = ''. '' ') from dual;
Yet a funny when your deci number a value such as zero
Maybe you are looking for
-
Displays swap when using double view on Satellite P100-437
Hello I use display drivers downloaded from the Toshiba site for a P100-437, geforce nvidia go 7900 gs (v. 94.37)My setup is such that I have a LCD monitor plugged into the back of my laptop that I use as my main screen and screen of my laptop is use
-
Hello How can I ask how many inputs and outputs are available on a given devicevia the API C of nor-Daq? I have to hardcode the specs of IO to a given device ID? Thank you Nirvtek
-
HP SoftPaq manager cannot find: HP ProtectTools Security Manager 7.00.
HP SoftPaq manager cannot find: HP ProtectTools Security Manager 7.00. Nor can I. Any suggestions? HP8760w I just can't understand why HP hide this update. It blocks other updates of the installation. Any suggestions are welcome. "Cannot install thi
-
When I went to "reactivate" the computer and the monitor; a message from the monitor No Signal appears even you the computer is on. I have to restart to get into the computer. I went the fix it Center and it's even a little weird.
-
What's compatible with FIOS router BEFW11S4?
My daughter has a Verizon FIOS as his ISP. The BEFW11S4 can be used in such an environment? Are there special settings I should change when it is used in this environment?