Procedure ..Please have a look and give ur suggestion
Hi all,
Please have a below procedure.
Suggest me if I do anything to make it more efficient?
Because I'm very very new to pl/sql .
I have to send this to code review.Before just to make sure everything is good and all logic and everything.
Thanks in advance.
PROCEDURE proc1 (
in_report_parameter_id IN NUMBER,
in_date_format_mask IN VARCHAR2,
in_start_date_time IN TIMESTAMP,
in_end_date_time IN TIMESTAMP
AS
my_current_date_time TIMESTAMP;
BEGIN
my_current_date_time := TRUNC(in_start_date_time);
DELETE FROM table1;
LOOP
EXIT WHEN my_current_date_time >= in_end_date_time;
INSERT INTO table1 (
date_time )
VALUES (my_current_date_time);
my_current_date_time := my_current_date_time + numtodsinterval(1, 'DAY');
END LOOP;
DELETE FROM table1
WHERE TRUNC (date_time) IN
SELECT TO_TIMESTAMP(report_parameter_value, in_date_format_mask)
FROM report_parameters
WHERE report_parameters.report_parameter_id = in_report_parameter_id
AND report_parameters.report_parameter_group = edr_rpt_constants_pkg.date_format_mask_group
AND report_parameters.report_parameter_name = edr_rpt_constants_pkg.excluded_date_name
END proc1;
Hi,
I meant something like this:
INSERT INTO table1 (date_time)
WITH all_dates AS
SELECT in_start_date_time
+ LEVEL - 1 AS dt
FROM dual
CONNECT BY LEVEL <= 1 + in_end_date_time
- in_start_date_time
SELECT dt
FROM all_dates
WHERE dt NOT IN (
SELECT TO_TIMESTAMP (report_parameter_value, in_date_format_mask)
FROM report_parameters
WHERE report_parameters.report_parameter_id = in_report_parameter_id
AND report_parameters.report_parameter_group = edr_rpt_constants_pkg.date_format_mask_group
AND report_parameters.report_parameter_name = edr_rpt_constants_pkg.excluded_date_name
;If you post CREATE TABLE and INSERT (or CREATE TABLE AS) statements, then I' can test it.
As Tim said, TRUNCATE TABLE is not a PL/SQL command, so to use it in PL/SQL you have to use EXECUTE IMMEDIATE, like this:
EXECUTE IMMEDIATE 'TRUNCATE TABLE table1';The word TABLE before the table name is required.
Similar Messages
-
Not great images with new 6D. Please take a look and give me your thoughts
I'm going on a 2 week trip to Japan in 3 days so I'm hoping to figure this out before I leave.
I got my new 6d with 24-105 L lens kit, and also the 70-300mm f/4-5.6 IS USM. It doesn't seem like any of the photos are that sharp without a very high contrast shot in full sunlight. Indoor shots or those with lower contrast (tree bark, leaves, something in the shade, etc.) seem pretty unsharp to me. I'm not sure if the AF just can't get a precise focus, or if the sensor just can't get good detail unless those conditions are met.
This is my first DSLR, although I've had film SLRs for 30+ years before that, and digital point and shoots for the last decade or so. I'm not sure if my expectations were too high or if there's something wrong with the camera, lenses, AF, or IS systems, or if I'm doing something wrong.
Some photos are below. I shot them all above the 1/focal length rule and some 2x or 3x or more above that, so in theory that would eliminate the camera shake issue, and also in theory the IS system should give you 2-3 stops so it doesn't seem to me that camera shake should be the issue. (I've also taken tripod shots and had the same issue so I don't think it's camera shake.)
All are large fine jpegs (20mb) straight from the camera, blown up to 100%.
santa1 Indoors daylight, no interior lights on, 24mm focal length, 1/30, ISO 1000
santa2 Indoors daylight, with interior lights on, 105mm focal length, 1/125, ISO 6400
santa3 Indoors daylight, with interior lights on, 300mm focal length, 1/320, ISO 10000
santa4 Indoors daylight, with interior lights on, 300mm focal length, 1/640, ISO 20000
wall1 outdoors, 105mm focal length, 1/500, ISO 100
wall2 outdoors, 270mm focal length, 1/500, ISO 100
treebark1 outdoors, 70mm focal length, 1/125, ISO 25600
treebark2 outdoors, 300mm focal length, 1/320, ISO 25600
license1 outdoors, 300mm focal length, 1/320, ISO 25600
leaves1 outdoors, 70mm focal length, 1/320, ISO 25600
leaves2 outdoors, 300mm focal length, 1/320, ISO 500
truck, 105mm focal length, 1/250, ISO 100
Other than the truck badge and maybe the wall photos (high contrast, full sunlight), most of them don't seem that sharp to me. What do you guys think? Most people are raving about how good the low light performance is on the 6d but I'm just not seeing it, not even in moderate light.
Here's a link to where someone compares a few different cameras one of them being the 6d. My images are not as sharp as them as far as I can tell.
http://www.etherpilot.com/photo/test/misc/6d_5d3_d600_colfix.jpg
Any thoughts or suggestions you can give are greatly appreciated! Thanks!Google videos are your friend. Google Videos is/are better than youtube because they include all of youtube plus everything else.
You would be amazed how many user-created demos/tutorials/tips videos are out there. Even more amazing is how specific these videos are. Specific to your model number of camera, of flash, of lens. Specific to your particular tiny issue about Lightroom or Photoshop or whatever.
As for good learning/informational DSLR websites, here is a list of my personal favorites:
http://www.cambridgeincolour.com/
http://www.the-digital-picture.com/Reviews/
http://www.canonrumors.com/
http://www.lensrentals.com/rent/canon/lenses/telephoto/sigma-50-500mm-f4.5-6.3-hsm-os-for-canon
The Digital Picture has great reviews, plus a unique lens comparison tool (ACTUAL IMAGES!) in their "TOOLS" tab.
Lens Rentals contains Roger C's very well-informed, well-respected, and VERY witty commentary on lenses.
Cambrige in Colour gives a nice, refreshing and very civilized British sensibility to things, and is welcoming to beginners, and has good short writings on basic digital photography concepts.
Canon Rumors tells you (sometimes) when new equipment is coming out, and has a lively forum that is less flame-y than Nikon Rumors.
Scott
Canon 6D, Canon T3i, EF 70-200mm L f/2.8 IS mk2; EF 24-105 f/4 L; EF-S 17-55mm f/2.8 IS; EF 85mm f/1.8; Sigma 35mm f/1.4 "Art"; EF 1.4x extender mk. 3; 3x Phottix Mitros+ speedlites
Why do so many people say "fer-tographer"? Do they take "fertographs"? -
Its working just fine but does it look good? Take a look and give me your advice!
I got to say that this is my first finnished labview program, and it's working fine, almost no problems. But i'm not that shure about
this huge while loop with all its instructions. Normaly a while loop takes 1 ms to iterate once, but this loop takes more than one ms,
I'm using another subVI to catch data up to 5 ms. / sample as output from measurement device to the while loop in this Sub vi, and then from this sub VI i'm initializing the data value read from the Measurement device, to a global variable that i read in this huge while loop. I belive that the subVI while loop iterates several times before the huge loop iterates once. Meaby thats why my graphs for the data are plotting more than one data at a time.
Take a look and give your advice, it seems that all the measurements are well. And I don't really got problems with the program when running, exept from small delays when I switch the sample rates.
Regards
Zamzam
HFZ
Attachments:
WhileLoop.JPG 354 KBI agree with Titou.
Wow! That's an eye-full.
There are some functions like setting audio On / Off that may not need to be in there. Or do they? You'd have to describe what the loop is supposed to do. Same comment for the indicator display settings on property nodes. Do you intend to turn them on/off a number of times during an iteration of the loop?
You should "divide & conquer". By that I mean, use sub-vi's that are function specific. As mentionned by Titou, you should have a look at the development guidelines. Basically, now that you have a working loop, you can improve it by creating some sub-vi's, revisit some items that may not need to be in the loop. As a matter of fact, you could create some control & indicators and maybe transform the loop into a sub-vi as well.
There are many Case Statements that you could convert to sub-vi's and that way, you could eliminate the global variables by using indicators and wiring directly to them.
However, I would have to say that the value for "Write Flow Data" might become unpredictable due to race conditions. Revisit how the value(s) are set for that one.
But it does look like you had some fun doing this one. Which is the most important thing. To have fun implementing solutions with LV.
Happy wiring!
JLV -
Waveform peak detection ...Please have a look
Hi folks,
I am trying to acquire 2 signals and then detect the peaks of each of them and divide the peaks and display it in a waveform chart.But my Peak detection doesnt work at all...I tried plugging in values from 3 to 10000 but it just doesnt work...Please have a look at my VI and feel free to point out any errors in my VI..
Thanks
Attachments:
slope 2 channels3.vi 51 KBHi,
Had a look at ur VI
tell me, do u need a single peak for every iteration or a series of peaks above a certain threshold?
If it is a single peak for each acquired waveform , then extract y array from the waveform cluster( you have already done it in ur VI) and connect it to 'find array min max' function found in array functions palette and u get the single peak for each waveform.
If it is a series of peaks u are interested in, then compare all these values inside a for loop.
Index each element inside a 'for' loop, check it for threshold using a conditional case structure and put it inside a shift register.
regards
Dev -
Dear Sir,
my mobile was stolen 2days before. please find my iphone and give the location.
my mobile IMEI Number is - > 012854005421769
this is my mobile user name - > VINOTH P
country - > india
state - > tamil nadu
City - > chennai
Mobile Phone Bill Details :
Apple Iphn 8gb #GS Airtel BLK
166104 U4
CSH N N Purchasing Date ( 01-01-2012 )
Please i am very critical situation now, My Business is very down. please help me sir.You aren't talking to Apple here. This is a user to user technical help forum.
Apple will not find your phone. -
Java is designed to have a look and feel equivalent to????
Java is a programming language designed to have a look and feel equivalent to:
a. VB
b. C++
c. Cobol
d. NotesScript
Cheers!If you mean look and feel from a language perspective, Java was heavily influenced by C++.
Since this is a multiple choice question quoted verbatim from either a textbook or your homework, I assume that you aren't really interested in any more information than that. -
if i bring mac in for service and the service is expred what do they charge me to look and give me an estimate
There is no charge for diagnosis.
-
Hi i've just uploaded a site i'm working on. See it
here and the css file
here.
It displays ok in Firefox but in IE 6 it looks awful. Have a
look and you'l see what i mean. Can anyone explain to me why this
is happening?
Also before i added the "contentfooter" div the site was
centred in the browser (well in FF at least) but now it's aligned
to the left.
Another thing i would like is to be able to set the height of
contentleft, contentcenter and contentright to vertically
auto-stretch if possible.
Any help would be greatly appreciated.
*EDIT, i played about with it and fixed the issues with IE.
I'm still trying to iron out a few problems though. Now the top
shadow doesn't look right in IE but it's nearly there. I created a
"bluetext" style for some of the text but it's not showing up. I'm
still interested in auto-sizing the site vertically.
thanks guysThere was a great explanation from Murray on 10th September.
Find this
thread and see if it sorts you out. If not, post back.
"Horizontal alignment of text boxes with css"
Jo
"ali_chisholm" <[email protected]> wrote in
message
news:ee4j9d$mll$[email protected]..
> Hi i've just uploaded a site i'm working on. See it
>
http://www.mensanafitness.co.uk
and the css file
>
http://www.mensanafitness.co.uk/mensana.css.
>
> It displays ok in Firefox but in IE 6 it looks awful.
Have a look and
> you'l
> see what i mean. Can anyone explain to me why this is
happening?
>
> Also before i added the "contentfooter" div the site was
centred in the
> browser (well in FF at least) but now it's aligned to
the left.
>
> Any help would be greatly appreciated. I need to get
this sorted asap.
> -
Material staging in WM - Jurgen please have a look at this
Dear Jurgen,
I'd kindly like to ask you to please have a look at this issue.
Re: Requesting urgent reply
Thanks in advance,
Csaba
(sorry for sending message this way...)I answered in the other thread.
-
I have made a blog about Web templates...please have a look
Hello Everyone,
In my quest to make web templates I could not find a whole lot of relevant info. I feel like I am flying blind. I had asked, in a previous thread, for anybody with knowledge on making templates to share this info. Well, we did not get a whole lot.
So, I have decided to make a public spectacle of my adventure in creating them. Please visit the blog, and please chime in if you have relevant info, or questions (please note though, any questions may not be answered right away. At least not by me-'cause as of right now I have no answers LOL). The more people that participate the faster we will all learn how to do this.
http://lrwebtemplates.blogspot.com/
My goal is to create a pdf of this knowledge once we have ironed out out all the bugs. Thanks for looking. And thanks in advance for any help/participation in the effort.Thanks for doing this, Paul. Hopefully you'll get some useful stuff to add to it soon. A n additional item is the entry on Goerge Jardine's Lightroom Journal from Andrew Rahn. Nothing new there for us who have worked on trying to figure thsi stuff out and hardly the direction I had hoped things would go, but maybe it will lead to more in the future.
-
Can a moderator please have a look into my connect...
Hi Mods,
Over a few weeks now my connection has seem to of deteriorated quite badly now to a point everything runs terrible. I have tried to do a pin reset on my HH5, no joy also I have reset my Openreach box no joy there, I have also connected straight to my HH5 without the Openreach box connected and nothing changes, I keep the openreach box connected because the HH5 seems to reboot and this makes my connection worse but it reset about a few days ago with the Openreach box connected and now it is really bad also no difference also connected straight to the HH5. My Download has plumeted from a steady 24.2MB down to now 18.8MB and my Upload has gone from 1.91MB down, now to an awful 0.67MB, surely something is really wrong with the connection and needs looking into also my Pings are just awful as well, its hitting 66ms from a steady 15ms and no Jitter, my estimates back when I first had Infinity installed where 19.1/2.90MB so its below my contract anyway, the strange part about it if I connect direct to my HH5 and look at the stats in the Helpdesk section it reads max attainable rate 24558/2208 but my actual speeds are no where near that. I will post an img below taken via ethernet cable today, could someone please seriously have a look at it for me. I don't want to take this as I am just complaining cause it is not good at all it seriously needs looking into for me please, thankyou:-
Please click on pink star to the left and say thanks if I have helped you at all!. Thank you. Home Hub Page- http://bthomehub.home/
BT Speed test- http://www.speedtest.btwholesale.com/
Speedtest:-http://diagnostics.bt.com/login/?workflow=Speed
Net Connect test- http://netalyzr.icsi.berkeley.edu/index.htmlCan a mod please please help me out or someone from BT I have ran another test now and its going down further this time now and all the time something is wrong. I've asked my parents and they have said they don't want an engineer coming out at all they have made this very clear to me and bothering them again they say, my backs against the wall with this issue, I have explained to them an engineer needs to come out to fix the problem but my dad seems to think they can fix it without an engineer coming out to the house cause one did before a while back without coming out so hes remembering that and trust me hes a rite stubbon git when it comes to this sort of thing the internet is really unusable at this moment, its just awful and I don't know what to do for the best???!.:-
I have filled in the contact form if it helps me but hopefully they will read this thread and understand my difficult position so they know where I am with the problem.
Please click on pink star to the left and say thanks if I have helped you at all!. Thank you. Home Hub Page- http://bthomehub.home/
BT Speed test- http://www.speedtest.btwholesale.com/
Speedtest:-http://diagnostics.bt.com/login/?workflow=Speed
Net Connect test- http://netalyzr.icsi.berkeley.edu/index.html -
Make one bitmap have same "look and feel" as another
Hello community.
First time I am coming across this problem for a client.
He wants an old photograph (b/w, scanned) to be the "blueprint" for another one, which he just made with his digicam. The latter is of course quite different in lighting etc., but that's not what I am really worried about as I have the raw file so I can play around.
But is there a reasonably quick way to have that new digicam image have the same "look and feel" of that old, scanned image? I cannot post the image I am talking about (copyright issue), but if I had to make a new digicam image have the same "look and feel" of, say, such a picutre - what would I have to do?
Hints to simple techniques will do, because the pay for this job is close to lousy... :-(
Thanks all.
- creedless -
equipped with a MacBook Pro and Photoshop CS4 ExtendedDownload a "grunge" or "old photo" pic from stock xchange and put it on top of the photo in overlay or soft light mode. You can adjust the grunge layer with levels to make it a more neutral layer for blending. Use the dodge and burn tools to draw smudges on the photo, particularly lightening or darkening the edges of the photo. You can also use the blur brush to soften the image, except for around the face.
See tutorials:
http://www.adobe.com/designcenter/photoshop/articles/phs8kbfilmgrain.html
http://photoshoptutorials.ws/photoshop-tutorials/photo-effects/natural-film-grain.html
http://www.photoshoptalent.com/photoshop-tutorials/old-looking-photos.php
http://www.photoshopessentials.com/photo-effects/old-photo/ -
Please have a look at this, problem loading images from jar.
I made a post at the wrong place..
Pleae have a look at it:
http://forum.java.sun.com/thread.jsp?forum=422&thread=434524&tstart=0&trange=15Answer (hopefully not totally useless) posted over there.
-
Repair help. I have warranty, do I still need to pay? Please have a look !
Why do I need to pay when I'm under warranty.
Detailed Quote
There is a non-return penalty of £ 109.79 for this part
Yes, I agree to pay £ 109.79 if Apple does not receive my defective product within ten (10) business days of shipping the replacement product to me.
FOLLOWED BY///
Payment Information
Item
Charge
Total:
£ 109.79
Name (as it appears on your card): ***
Card: ****
Expiration date: ***
I currently have warranty until FEB 1ST 2010. My ipod is stuck on the apple logo, and yes before you ask I have been into diagnostic mode here and then for the past month, resetting, checking every single page on it to no avail.
And before you ask, I have been into disk mode, reset, left it, sync and still stuck on that apple logo.
My computer only recognizes the ipod in disk mode and there when it finishes, I have to select and menu it and then it goes back to the apple logo. Nothing will work.
I'm only a poor student, will they still charge me for my ipod nano 4th generation even though I still have warranty. It's not fair, I don't have the time to be taken off 109 quid!Judging by what you've posted here I think what Apple are saying is that if you don't return the defective iPod within 10 days of them sending out a replacement to you, you will be charged that amount.
A few years ago now Apple introduced this policy to prevent unscrupulous people trying to claim a second iPod under warranty when there was nothing wrong with the first. -
Please! take a quick look and give me your opinion
I want to read signals from two tasks in order to make it possible to calibrate all sensors (tasks) indiviually. My program will always read to sensors in different combinations.
This is my way to read 2 tasks "simultaneously"...
Do you think it is a good idea or ... just bad..
It does work, I think...
Message Edited by Johan.svensson on 09-13-2006 06:15 AM
Attachments:
Input_double_daqmx.jpg 91 KBTanks,
Very helpful example.
However...
When I started to build my program I used the "multiple channels" DAQmx read block, And configured a voltage task that I used for all my sensors. To scale the measured signal into correct value (in for example Newton to show on the screen) a number of calculations were applied, depending on selected sensor.
This means that I have to do the calibration of the sensors outside of Labview. Until I found the possibility to calibrate each task (individually) in MAX... This is much easier because I don't have to bother about all the calibration values and compensations that I used before. This is the reason why I want to give each sensor its own task. And when each sensor is given its own task, and I always need to measure two sensors (two channels), this problem arise.
I can se 2 possible solutions... maybe.
1. Create a scale in MAX for each sensor instead, then I should be able to use the example in the link above -- think this would work, but I need to find the slope and offset value on my own as before.
2. If there is a way to read from global viritual channels instead of tasks, and if it is possible to connect 2 viritual channels independent to he task during operation -- Probably not.
Maybe a little confuising explanation...
Maybe you are looking for
-
Mac Mini won't boot loud fan.
I left my office only to return to find that my Mac mini had turned off. I tried to turn it on, the light comes on, and the fan comes on (very loud). But that is it. I have had it less than a year with no trouble. Anyway I have tried resetting the PR
-
HI, I am new to macs and aperture and usually use photoshop. Can anyone tell me how to rotate a picture by anything other than 90 degrees? I'm probably just not looking in the right place, in ps it was under image-rotate-custom. Also I cant find this
-
I don't find an option in RH X5 to run a report listing glossary terms and which topics contain glossary hotspots link to each term. Does anyone know how to obtain such information? Thanks for any help. Diane
-
Problemas compatibilidad PC y MAC
hola, tengo un problema muy raro entre la compatibilida de archivos de PC y MAC tengo un archivo que genere en MAc en Illustrator CS5, con la particularidad que utliza textos asiticos con fuentes asiaticas. Ese archivo lo guarde en un USB en version
-
Change Decimal point to comma: N.NNN,NN
Hello, I want to display a curr value in this format N.NNN,NN no matter what the user setting is.. It shud always print like this. I have checked this frm USR01-DCPFM, but not able to do it correctly. IF USR01-DCPFM eq 'X'. REPLACE ',' WITH '.' INTO