Any other way of writing the same query?
Hi all,
I need to give raise an alert message that employee is not hired for next week and I have written the below query....
select 'EMPLOYEE NOT HIRED FOR NEXT WEEK' from dual where not exists(select hiredate form employee where hiredate = sysdate+7);
is there a more efficient way of doing the same?
Thanks in advance....
user141 wrote:
Hi all,
I need to give raise an alert message that employee is not hired for next week and I have written the below query....
select 'EMPLOYEE NOT HIRED FOR NEXT WEEK' from dual where not exists(select hiredate form employee where hiredate = sysdate+7);
is there a more efficient way of doing the same?
Thanks in advance....I'd worry more about accuracy before you get to efficiency :)
HireDate = SYSDATE + 7 will retain the hour/minute/second precision from SYSDATE, i don't think you're going to know that information. You would want to remove it by using
TRUNC(SYSDATE, 'DD')And possibly
TRUNC(HireDate 'DD')If you are storing time information in that column.
Similar Messages
-
Is there any other way to limit the data a user can see
We are using Discoverer 10.2.xxx
We are running it against an Oracle applications database but we do not have Discoverer integrated with the apps. I have created database users for discoverer and granted access to the data at the db level.
We have about 40 salesreps and we only want each rep to see their own data. We have a high turn over with the reps
For now, I have created the row level security in that folder in my eul. If the username = XXXX then Salesrep = XXXXX
OR
If username = YYYY then DSM = YYYY
etc.. This goes on for about 40 users We have 3 levels of "users" - Salesrep, DSM or RSM (District or Region sales manager)
These users are setup in my apps and I can write a database procedure to select their salesrep name based on their username.
Is there any other way to limit the data that the salesreps can see ?
Possibly with a stored procedure some way?
Thanks
AngieAt a previous client's, I had created a system not too unlike what you're describing.
Basically, I created an Oracle table that stored information concerning the salesperson as in Oracle Apps the data was not reliable for what they were doing (ie: with adding Apps modules, sometimes salesperson data was there, but with say, CRM, it was in another place, etc.).
So, since this table was going to be used for driving everything about a salesperson (commissions, who they report to, when they started, territory, when / if they moved territories and/or manager, etc, etc.) I put lots of good stuff in it that would make life easier for them.
The end user in charge of all this had was given a Form to add, edit, delete all this good stuff and they were happy.
When it came time for security, it worked like a charm in that I used the concept of the BIS views where a user has an apps id associated to them and all data was filtered by that id. All I really had to do was to create this view that simply filtered data to that user's id. Then whenever I had a Discoverer report for salespeople, managers, etc. I just made sure the folder used had a join to this filtering view and I chose an item from the filtering view and all worked fine. All Discoverer reports only returned row level information for the salesperson who ran it.
Likewise, the same Oracle table was queried by another security view that only brought back the same IDs for the salespeople associated to each manager. When this simple view was joined to any sales Discoverer folder (and used in Disco), it limited all data to the salespeople the manager was responsible for.
Obviously this is just an overview and would take pages to explain, but essentially, if you can associate some kind of unique ID to each salesperson (I used the one returned in BIS views when someone logs into Apps, but you could just assign a different in your case), then you can create a view that filters to that id. Then when that view is brought into the EUL and joined to any other folder in the sales area (and you choose a column from the security view), you'll have what you're referring to - row level security for all salespeople and managers.
When it works - it sure does look impressive.
Russ -
I have bought a WD My Book World Edition to use for back-up of my iMac, but when I try and log onto the drive with Apple time Machine (back-up software) or connect in any other way I get the message 'There was a problem connecting to the server "MybookWorld.local" The version of the server you are trying to connect to is not supported. Please contact your system administrator to resolve the problem'
It is a brand new iMac and running Lion OSX
Any ideas on how to solve would be gratefully received?Followed the directions on this page and it worked!
http://forums.macrumors.com/showthread.php?t=1102423
Part One - Turn on SSH (in the admin panel)
[1] Go to to http://mybookworld.local
[2] login: username will be admin, password will be whatever you have setup. If you can't remember it should be in your Mac OS X keychain (Utilities > Keychain Access, search for "mybookworld"). If you have not changed if from the default the password will be admin as well.
[3] Switch to advanced mode.
[4] From the System tab, pick Advanced.
[5] Enable SSH Access, and click submit.
[6] Click on the network tab and then the LAN button
[7] Make a note of the IP address
Small, maybe obvious, but nevertheless important point: For the install to work, your NAS needs to be connected to a router with internet access.
Part Two - Install netatalk2.2
[8] Open Terminal.app (Utilities > Terminal)
[9] Enter the following command (substitute in 127.0.0.1 for the actual IP address you noted down in step 7), then hit return:
Code:
ssh [email protected]
[10] When prompted, enter the ssh password (will be welc0me).
[11] You are now going to download the installer. Enter the following command, then hit return:
Code:
wget http://mybookworld.wikidot.com/local--files/netatalk2-2-on-whitelight/install_netatalk.sh -O install_netatalk.sh
[12] Once completed, you will need to run the installer. Type:
Code:
sh install_netatalk.sh
[13] You will be asked a number of question during install, answer yes to all. When asked about the "DHX2 login process", I opted to install the modified version, so I can confirm it works.
[14] Once the box has restarted, you should be able to connect to your afp shares and continue to use Time Machine. -
Is there any other way to play the shuffle in a car if it doesn't have an aux facility??
Is there any other way to play the shuffle in a car if it doesn't have an aux facility??? Or I wondered if you could play it through a smart tv...or do you need an apple tv box???
Is there any other way to play the shuffle in a car if it doesn't have an aux facility???
There is not.
Or I wondered if you could play it through a smart tv...or do you need an apple tv box???
Not with the Apple TV, but if the Smart TV has an AUX port, you can connect it that way.
B-rock -
Stolen my daughter iPod touch, never sync in a computer, no original package... Any other way to get the serial number ?
Help please... Thanks !!!No, I'm looking for the receipt... But in the middle time I'm trying to get it to be able to make the report to the police... Wondering if there's a way to see the devices under the Apple ID?
-
Adobe's website broken - Any other ways to get the serial number?
Hello.
I bought the student's version of Adobe's Creative Suit.
Now I need to get the serial number from a link which doesn't exist. It says that it is broken.
Is there any other Way to get the Serial Number because without it I can not activate the product.
Can somebody help me please?
Greetings.Hi Dendylein2,
One tip to get you up and running quickly: You can use Creative Suite before getting your serial number, by selecting the installation option that allows you to install the product as a trial. You can then use the serial number to convert it to the non-trial version later.
Did you purchase your Creative Suite in North America or elsewhere (the correct solution can vary, depending on where you purchased the Creative Suite from).
If you purchased in North America, have a look at the options in the table and choose the link that matches your situation:
I have a Student and Teacher edition product
If you purchased outside of North America, and from a reseller, the website is down and I apologize for that. This is known and Adobe is working on a fix.
Thank you for posting. -
Any other way to display the images in jsp
Dear All,
I had a program in get the image in database and display the image in jsp file.
Generally we are using
setContenttype(image) and write the binary values in jsp file,
is there any other way to store the jpeg file in speciefied folder and view the jsp fileIs there any other way to play the shuffle in a car if it doesn't have an aux facility???
There is not.
Or I wondered if you could play it through a smart tv...or do you need an apple tv box???
Not with the Apple TV, but if the Smart TV has an AUX port, you can connect it that way.
B-rock -
my new iphone was stolen today. I'm trying to track it via icloud but it shows the average ratio that the phone is disconnected. Are there any other way to track the phone. Thanks for your help.
If the phone is turned off, doesn't have an internet connection, or has been restored preventing "Find my iPhone" from being able to work, there is no other way to track it.
-
i lost my iphone 5 and i don't have i tunes.can i use my phone number or any other way to get the serial number?
No.
Serial number is available If you have:
1. The iPhone box when you bought it, if you still have it.
2. The receipt, where you bought the iPhone
3. Computer iTunes, if you have synced or backuped the iPhone.
4. https://supportprofile.apple.com if you have iPhone registered -
When I get songs and put them on my itunes accout on my computer I used to be able to rename them right clicking, going to "get info" and then renaming everything I wanted like song name, album and artwork. I also use to be able to click on the song then click and hold on it and be able to rename it. But all the songs I have gotten after the last update have not been able to be renamed in any of the old ways I use to be able to. Is there any other way to rename songs because I know I can't undo updates and that seems to be whats causing it.
Thankyou for your timeYou are describing an iTunes problem, not an iPod touch problem. Try posing in the iTunes forum.
-
i want to reset my iphone to came back to it's factory setting, but it needs restriction passcode and i can not remember it, i can not even restore my iphone to get rid of this problem, is there any other way to turn off restriction passcode?
The only way to get rid of the restrictions passcode is to restore the device. Why can you not restore the device. The restrictions passcode will not prevent you from restoring, only the regular 4-digit passcode to enter the phone can do that. If that is your problem, then see this support document for instructions. http://support.apple.com/kb/ht1212
-
I plan to upgrde my itouch's software, some says i would see software update at the settings,general but i saw nothing. Is there any other way to upgrade my itouch to ios 5?
To update
The Settings>General>Software Update comes with iOS 5 and later.
Connect the iPod to your computer and update via iTunes as far as your iPod model allows
iOS: How to update your iPhone, iPad, or iPod touch
A 1G iPod can go to iOS 2.2 via iTunes and iOS 3.1.3 via
Purchasing iOS 3.1 Software Update for iPod touch (1st generation)
https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/touchLegacyLandingPage
A 2G to 4.2.1. Requires iTunes version 10.X. If a Mac it requires OSX 10.5.8 or later. With OSX 10.4.11 you can only go to iTunes 9.X which gets you as high as iOS 4.1
A 3G to 5.1.1 Requires iTunes version 10.5 or later
A 4G to 6 Requires iTunes version 10.7 or later. For a Mac, that requires a Mac with OSX 10.6.8 or later
Identifying iPod models
If you iPod has cameras it is a 4G then:
iOS 4: Updating your device to iOS 5 or later
You need iTunes 10.7 or later onthe computer -
Is there any other ways to get the Windows support software?
Hi guys, I encountered some problems while downloading windows support software using boot camp assistant. This keeps showing up:
I have tried over 10 times, even with VPN connected. But it failed every time at this point, very frustrating. Is there any other way to get windows support software? Maybe a third party website to download?You can try downloading Windows support software from this page > http://www.cafe-encounter.net/p682/download-bootcamp-drivers
I tested the links and they work. However, this must be the last thing you should try as packages may be modified (now not, because they are from Apple servers) -
Hi I have an iPhone 4 & need to software update but don't have access to a computer & my phone dosent have it own system up date is there any other way of updating it
The first time to iOS 5 must be done with iTunes on computer.
-
HT201441 I CANT CONTACT THE PREVIOUS OWNER IS THERE ANY OTHER WAY TO WIPE THE ICLOUD OFF?
I just bought an i phone 5 second hand its been wiped but when you try to set up asks for icloud username and password does any one know how i can by pass or get rid of this i cant contact the previous owner
No, unfortunately there is no other way.
Maybe you are looking for
-
Yesterday We went to At and T store and they told me to download from old phone to new phone and I am really upset and I got Icloud and prove but part of still in 4S and has not go in 5S and that is biggest problem and no commuication that woman stay
-
Crashes while importing TIFFs. Also, how to import directly into an album?
Just got Aperture last night in the mail. Upgraded to 1.1.1. I have about 250 CDs with TIFF images that I've created over the years. The TIFF files were created by a Nikon film scanner. Some of those images were later re-touched and re-saved using Ph
-
Linksys E4200v1 is a little unstable when using torrent.
So, i have a little annoying problem with my E4200. V1 with the latest 04 fw. It seems, that after many hours of downloading at full speed (only one torrent at a time) the speed goes down, and up again, and becoming unstable. My max download speed is
-
HI, We want to have WiFi router set up at home ,so it can be used on the Windows 8 laptop and Windows Lumia smartphone! Do we need a selected router that would work with these device? If so, what are the specifications? Solved! Go to Solution.
-
Grey dotted circle on phone in itunes
i why are the songs like that i just restored through icloud on my iphone 5 and they are like that? how do i get rid of it