How to make this request?
Hi all
I am using oracle 11g,
Here is my requirement.
Name of the table - emp_test with two columns
emp_id emp_text
1A - 000045 level of protection of personal information
B-09087 of level 2 of the privacy
3 level of confidentiality A 098765
4b level of confidentiality-00876
Expected result
emp_id emp_text emp_text1
1 null of A-000045 level of intimacy
2 null B-09087 level of privacy
3 level of confidentiality A 098765 null
4 null B level of confidentiality-00876
Concerning
Dale
Hi, Dale,
So, sometimes, the column emp_text in the output is identical to the emp_text column in the table and emp_text1 is null, and sometimes it's the other way around; is this fair?
How do you decide when the emp_text of output is identical to the original emp_test, and when it is NULL?
Depending on your needs, your data and your version of Oracle, here's one way:
SELECT emp_id
CASE
WHEN emp_text AS "Prvacy % level".
THEN emp_text
END AS emp_text
CASE
WHEN emp_text NOT AS "Prvacy % level".
THEN emp_text
END AS emp_text1
Of emp_test
;
If you would care to post CREATE TABLE and INSERT statements for your sample data, then I could test it.
Tags: Database
Similar Questions
-
How to make a request on a URL using webworks development environment?
Hey geeks,
How to make a request on a URL using webworks development environment?
Thanks in advance...!
"A request for a url" you try to perform an ajax call and it does not work? Any field/origin you're wanting access must be white listed in a
element in the config.xml file. Details of this are in the WebWorks development guide -
When I go to get the modules (7.0.1), there is no evidence, except the info bubble "which are the modules. How to make this work? The rest of the functions in this section seems to work. And I can get MY addons, but not the available modules.
On the left side, click Extensions.
-
whenever I click on something on that I get pop up as I'm right click how to make this stop?
whenever I click on something on that I get pop up as I'm right click how to make this stop?
Cindy,
What should I have selected in system preferences... > mouse > Point & Click > secondary click?
-
"$US" automatically... How to make this stop?
Hello
I have "joint currency" spreasheet
But the numbers seem to AUTOMATICALLY add a 'US' before ' $'.
How to make this STOP?
Thank you very much
Troy
Hi Troy,
This is probably connected with the region setting in system preferences > language and text. Several countries use the sign $ as their monetary symbol.
Browse from the context menu in the preferences to see which is the "naked" in your area and who to choose as your marker for amounts in US dollars.
The symbol has no effect on the number of underlyings.
Kind regards
Barry
-
I signed up for Apple music and since then I can't synchronize playlists from my computer to my phone because it says I have iTunes game turned on, but I do not subscribe to iTunes recently Match (ish). How to make this stop?
Hello
You cannot synchronize in usb or wifi if you subscribe to the Apple's music. The basic principle of the AM is that your iTunes library is scanned to determine what can be matched or must be downloaded. Once completed, all the music you will be available to listen to or download on your iOS device.
Jim
-
screen scrolls top down on its own how to make this stop
my screen jumps up and down how to make this stop?
Hi ssuueet,
- Have you tried the steps suggested?
- Have you managed to solve the problem?
If this isn't the case, reply to the thread, then we can look for other options.
Thank you!
-
in the folder windows images, photo icons are the same and are not actually see a little image of the image. How to make this happen
Hi tonutot,
1 when was the last time it was working fine?
2. did you of recent changes on the computer?
3. only happens in the pictures folder?
Check and make sure that the bottom of settings is set correctly on the computer.
(a) in the currently open folder, click organize on the toolbar, and then click folder and Search Options.
(b) click on the view tab, and then deselect the always show icons, never thumbnails check box.
(c) click on apply and OK
Behavior and change folder views
http://Windows.Microsoft.com/en-us/Windows-Vista/change-folder-views-and-behavior
I hope this helps!
Halima S - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
My tx10 automatically rotates pictures 90 degrees after that I'll take them. How to make this stop?
The camera automatically rotates the image according to its orientation. Unfortunately, this feature cannot be disabled.
You can correct orientation by setting the [rotation] option in the menu viewing.
If my post answered your question, please mark it as "accept as a Solution.
-
Do I need to eliminate one of the creative clouds? How to make this work-2 accounts on one computer?
Hi Kim,
Two creative cloud subscriptions registered under 2 different unusable i.d. together on a single computer.
Must disconnect and connect each time as the creative cloud desktop application, in order to be able to use another subscription.
-
Hi, I was wondering if someone could point me in the right direction how to make this intro in After Effects. What is a table multi or something else?
CCI of driving a vision for the future of WA - YouTube
Some other effects used in which seem to be:
Plexus: http://aescripts.com/plexus/
Race 3D: http://www.redgiant.com/products/trapcode-3d-stroke/compatibility/
Individual: http://www.redgiant.com/products/trapcode-particular/
The photo explosion could be made with the individual or the shape (the author can have the Trapcode Suite)
-
When I export my file to generate a .pdf file, the text box is literally a box around it! How to make this line disappear?
Looks like you have a line on it. Select the image and the race set to None.
-
Facebook like button does not work, I used the widget of muse and created the facebook code. Anyone know how to make this work?
Hi connally25,
Here is a link to a video tutorial on how to add a Facebook button, please check if you have followed the same steps to add the video.
http://TV.Adobe.com/watch/learn-Adobe-Muse-CC/adding-a-Facebook-like-button/
If you followed the steps correctly and the button still does not; Here is a link to a forum thread which may help to solve the problem:
Facebook follow Widget does not
Concerning
Sonam
-
Some Basic steps how to grant this request
Hi all
It's my cursor from query to extract the eligible orders its takes too long to execute, it is my request
Oeol.header_id, oeol.attribute1, oeoh.order_number, COUNT (1) SELECT consignment_count
Of oe_order_lines_all oeol, oe_order_headers_all oeoh, oe_transaction_types_all oett
WHERE oeol.header_id = oeoh.header_id
AND oeol.flow_status_code IN (DECODE (oett.name, xxhdnl_om_common_util_pkg.g_push_line_type,
DECODE (oeol.shipment_priority_code, 'EXPRESS', DECODE (oeol.flow_status_code, 'AWAITING_STOCK'
'AWAITING_STOCK', 'STOCK_RECEIVED', 'STOCK_RECEIVED'), 'STOCK_RECEIVED')
DECODE (XXHDNL_OM_QUI_BAT_PLAN_EXT_PKG.check_push_or_pull (oeol.line_id), 'PUSH', 'BOOKED')))
AND (oeol.shipment_priority_code = p_shipment_priority OR p_shipment_priority IS NULL)
AND oeol.line_type_id = oett.transaction_type_id AND oett.name IN
(xxhdnl_om_common_util_pkg.g_return_line_type
xxhdnl_om_common_util_pkg.g_push_line_type)
AND oeoh.attribute3 IS NULL
GROUP BY
oeol.header_id
oeol.attribute1
oeoh.order_number;
Thanks for giving some basic steps for the update about some performance.
Thanks and greetings
Srikkanth.MThe code seems not very readable. Poor guy if you have to maintain that.
I like this part:.. oeol.flow_status_code IN (DECODE (oett.name, xxhdnl_om_common_util_pkg.g_push_line_type,
DECODE (oeol.shipment_priority_code, 'EXPRESS', DECODE (oeol.flow_status_code, 'AWAITING_STOCK'
'AWAITING_STOCK', 'STOCK_RECEIVED', 'STOCK_RECEIVED'), 'STOCK_RECEIVED')
DECODE (XXHDNL_OM_QUI_BAT_PLAN_EXT_PKG.check_push_or_pull (oeol.line_id), 'PUSH', 'BOOKED')))you combine global variables of PL/SQL with a 3 decodes nested, I'd go for CASE and some formatting.
But what makes this so slow query, it's, I guess:
XXHDNL_OM_QUI_BAT_PLAN_EXT_PKG.check_push_or_pull (oeol.line_id)
for each row returned by (part of) query. What does this package? Run additional queries with oeol.line_id as a parameter?
According to the way that ORACLE creates the execution plan, this package can run before or after the other filters have been applied. This result in how Subselects in the worst case?
Very risky. Try to make this logic in the query itself, the CASE statement is very powerful.-andy
-
hit a wrong button and everything is bigger - how to make this new kid?
I was cleaning my keyboard and typing something that makes everything bigger - how to get back to normal size?
Hello
Right click on desktop - customize - display settings - Set resolution.
Right click on desktop - customize - top left adjust font size (DPI)
CTRL + mouse wheel works ZOOM
CTRL + and CTRL - work ZOOM in and out
Your mouse/touchpad probably incorporates a ZOOM to it.
Your system also has a magnifier built in which could be a problem - it can also often be programmed to work
on mouse/keyboards.How to turn on the Magnifier On or Off in Vista
http://www.Vistax64.com/tutorials/125037-Magnifier-turn-off.htmlTo see if your mouse/touchpad is set to ZOOM or enlarge use Control Panel - mouse.
The TouchPad also has Hotkey controls to verify with the help of machine to online system
documentation and their forums, where appropriate.==========================================
Use restoring the system to a point before you did.
Start - Control Panel - restore and backup center - upper left repair Windows
How to make a Vista system restore
http://www.Vistax64.com/tutorials/76905-System-Restore-how.htmlI hope this helps.
Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.
Maybe you are looking for
-
Cannot remove mailbox get message there is no [Gmail] / Bin
I used to be able to delete the mails using the button Delete, but as soon as today (30/09/15) I get the following message The current option on your 'Inbox' has no success. The e-mail server for the account [email protected] replied: [TRYCR
-
Satellite L555 - 11K - guard crashing after a few minutes
My laptop crashes, sometimes after 20 minutes, sometimes after only a few seconds. The network is working properly and temperature says 50% although the mouse mat and a part of the keyboard becomes very unpleasantly hot. As far as I can tell, I have
-
Question about upgrading RAM on Satellite U400-138
Hello My laptop model is Satellite U400-138, part number: PSU44E-00500JG3 Technology:type: technology Intel Centrino 2 processor on processor Intel Core 2 Duo P8400, Intel GM45 Express chipset and Intel WiFi Link 5100Clock speed: 2.26 GHzFront Side B
-
What is the Code for error AHT 4HDD/11 / 40000004:SATA (0,0)
What is the Code for error AHT 4HDD/11 / 40000004:SATA (0,0)
-
HP Pavilion m8120n Media Center - adding memory Question
I try to add memory to my m8120n. My information systems: Memory has 3.00 GB installed Authorized maximum memory is 8 GB (4 x 2 GB) (64-bit operating system) 32-bit operating system Core 2 Quad Q6600 2.4 GHz (K) Speed supported PC2-5300 MB/sType 240