Just learned something new today - can include a column complete zero in a UNION statement
I just thought it was pretty cool.
SELECT null, job_id, NULL as manager_id, AVG (salary) as AVGSAL
Employees
GROUP BY department_id, job_id
UNION ALL
SELECT NULL, null, null, avg (salary) as AVGSAL
OF hr.employees
GROUP BY job_id, manager_id;
I watched this and me "... sounds weird, how are the corresponding data types up."
then I tried to run some scripts of myself and it works great. I guess that since the "datatype" NULL is not who collide with other data types, it makes sense.
Huh? Why wouldn't you be able to include a null full column in a set of query results?
Why do you think that it does not work?
SELECT null, job_id, NULL as manager_id, AVG (salary) as AVGSAL
Employees
GROUP BY department_id, job_id
UNION ALL
SELECT NULL, null, null, avg (salary) as AVGSAL
OF hr.employees
GROUP BY job_id, manager_id;
I watched this and me "... sounds weird, how are the corresponding data types up."
then I tried to run some scripts of myself and it works great. I guess that since the "datatype" NULL is not who collide with other data types, it makes sense.
No - there is NO SUCH THING as a NULL data type. A null is NOT a type of data: it represents an UNKNOWN value and does NOT have a data type.
Because NULL is not a dataype is NOT in conflict with ANY data type of a column to a different query.
See the sections of Oracle doc on NULL values
http://docs.Oracle.com/CD/B28359_01/server.111/b28286/sql_elements005.htm
You can convert a NULL value to a data type specific well and then because you have a conflict of data type, you will get an exception:
SELECT cast (null as varchar2 (10)), job_id, cast (NULL as number (10)) as manager_id,.
AVG (salary) as AVGSAL FROM employees
GROUP BY department_id, job_id
UNION ALL
SELECT cast (NULL as number (10)), null, cast (null as varchar2 (10)).
AVG (salary) as hr.employees AVGSAL
GROUP BY job_id, manager_id;
ORA-01790: expression must have same type of data, matching expression
This exception is due to the incompatibility of data type of explicit CASTs.
See the CAST operator in the Oracle documentation
http://docs.Oracle.com/CD/B28359_01/server.111/b28286/functions016.htm
CAST
Converts a type of built-in data or value typed collection to another type of built-in data or value-typed collection.
Tags: Database
Similar Questions
-
I agree with creative cloud & I just bought a new laptop can install my CC on the new laptop under the same registration/subscription?
Hi John,.
no luck with above. Disabled on my old computer, but getting only free trial option when I connect to my account on the new computer?
-
Help - displacementmapfilter (learn something new)
I'm tring to improve my skills as2 with some animations. I found this and interested in learning more. I went on the web and found a simple tutorail
http://www.emanueleferonato.com/2007/12/03/understanding-Flash-displacement-map-filter/
It features her in a way, I can understand and experiment with, however the example I'm use/re-use to draw does not work as expected. I was hoping that someone familuar with this filter could see what Im doing wrong.
Problem: when the displacementmapfilter is executed, it leaves a white border on the right edge to egde and down (as if the card is not the right size)
I can't see why your mismatched upward. I hope that someone can show me my mistake. I hope then to experiment with the filter somemore
If anyone has websites that have tutorials for this filter Please add them to the post.
Here is my code if you need it. It should be the same as the tutorail
attachMovie("bg","bg",1);
attachMovie("ball","displace",2);
place objects on stage
channel 1 = 1;
Assign the value 1 (red) to the variable that represents the X component
canal2 = 2;
Assign the value 2 (green) to the variable that represents the component Y
x_mult = 40;
Definition of the variable representing the scale X 40
y_mult = 40;
Definition of the variable representing the scale Y to 40
mode = "clamp."
Definition of the variable representing the mode filter to "fix".
offset = new flash.geom.Point (0, 0);
set a new mark for the displacement map offset
BMP = new flash.display.BitmapData (bg._width, bg._height);
creating a new item of the same size BitmapData of the film.
displacement_map = new flash.filters.DisplacementMapFilter (bmp, offset, channel 1, canal2, x_mult, y_mult, mode);
Create the displacement map itself
BMP. Draw (Displace);
Draw the travel plan in the bitmap data
BG.filters = [displacement_map];
Apply the displacement filter to the grid object
move ._visible = false;
Affecting the invisible displacement map.
Oh, the filter of your move is bg size and moves its background pixels in bitmap of destination
transparent and set transparent bg of the bmp:
BMP = new flash.display.BitmapData (bg._width, bg._height, true, 0xff000000);
-
Something new today. I have seen on the taskbar tabs (each of them can present a few tabs) that appear on the task bar, but the open habit. In order to get something to open I have to set on the Firefox icon on the desktop. Then this session opens with several windows and tabs... but the other tabs remain unopennable. When you move them on the taskbar, they show the empty boxes, while others look ok.
-
I just learned of outlook express spell corrector English glitch.
Can you recommend a spell checking program which includes the grammar?
I'm distraught beyon. Thanks much worm... It took entirely too long to get to this point.
Thank you again... Sophie - KKJ
Hi desertcanndie,
Follow the steps in the article.
Spelling checker does not work on the message in Outlook Express 5
-
I just bought a new Mac and migrated my CS6 on. Now, when I open it, I said that I am under a trial of the cloud. Why can I not use my CS6 version that I bought? I don't want to pay for something I already bought.
Here's how to convert the Permanent Trail:
By receiving the expired Trial/test screen
Make sure you are online
Click on software under license
The perpetual owners: connect with the adobe ID and enter the serial number of the product
Product must be certified with success
-
I just downloaded the new DC Acrobat, and I'm having a lot of problems with it. It's very, very slow. He has opening, saving, closing, do anything. Is there something that can be done to help him run a little more, well, normally?
I fixed it! I used the string analyze function waiting in the Task Manager while opening a PDF file and have to wait 12 seconds... and it showed that the wait chain has been blocked by the Speech SDK. So I went to my Plugins of PDF from Adobe folder, which in my case is C:\Program Files (x 86) \Adobe\Acrobat DC\Acrobat\plug_ins and delete the plugin ReadOutLoud.api. (I had to close all instances of Acrobat DC first, and I had to also click the UAC Popup Windows application approval raised to remove the plugin) Now... instant Adobe Acrobat DC charge!
-
Favorite new feature or something new learned to EE11SF
Since I won't be in EE11SF this year (sigh), I thought that the best thing would be to ask everyone what their favorite new feature or something new learned was to EE11SF. If you could be my eyes and ears and tell me what I missed, I'd be grateful. I'm looking for something like the following:
- Favorite new feature announced (in general)
- New favorite thing you learned specific on details
- Favorite existing feature you learned new details on
- The new directions it looks like the company/product is
- Of new learning opportunities
Since I can't be there, can you help me get an idea of what was new and cool (or even just improved)?
Thank you very much
Kurt Stoll
It was my first EE if everything was amazing, but my larger dishes thought takeaway - "people do not want to be sold, they want to buy" and as a geek marketing and phone numbers, I need to use the numbers to get to the history, but history is always present not figures to affect change.
More great product takeways - I want it to be December! New social features coming to Eloqua in December & Eloqua will the cloud & going mobile - new features designed specifically for both
- Favorite new feature announced (in general)
-
How can I download videos from my camera Sony HDV for later editing and the creation of a DVD? I just installed Adobe software today and can't find anything about it.
I am very familiar with Pinnacle, but I've been disillusioned about their support.
Ian
First you connect your device to your computer using your Firewire port, then press F1 and search for capture
http://helpx.Adobe.com/Premiere-Pro/KB/cant-capture-DV-HDV-video.html
- and more info on Windows http://forums.adobe.com/message/4708997
-Legacy driver http://www.studio1productions.com/Articles/Firewire-1.htm
-All versions of Windows from 7 to 10 need legacy driver!
This is old, but still a good place to start - CS5-thru-CC body/Encore tutorial list http://forums.adobe.com/thread/1448923 has many links to help learn... including how to still get to create a DVD
-
My MacBook Pro was built in mid-2009, a 2.6 GHz, 13-inch, I just put a new hard drive 700 GB and I added a new battery to include a new CD/DVD drive. I spent more than 400 million dollars.
I understand that I won't be able to get the next Sierra of OS. I need to by a new Mac?
Talk to the people the more I would get if I turn in I'd get is about are about $ 100 million. Please tell me it isn't so.
If you want Siera you will need a new Mac, but you can continue to use the old one as long as you want.
-
My computer says ' plugged not supported "I just got a new battery... How can I fix?
Hello
You should really be asking in the forums for your version of Windows. Click on the
Appropriate forum in the Menu bar under the Logo of answers on the upper left on
This or any page.Answers - Windows Forums
http://answers.Microsoft.com/en-us/Windows---------------------------------------------------------------------------------------------------------------------
Are you sure that the battery is compatible with your system?
References to Vista also apply to Windows 7.
Check with support from the manufacturer of their books online and the drivers and their forums system
(as applicable) for known issues. Some manufacturer issued BIOS and other updates to help the battery
problems.=================================================================
Follow these steps to remove corruption and missing/damaged file system repair or replacement.
Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup
Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN
sfc/scannow
How to fix the system files of Windows 7 with the System File Checker
http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.htmlThen run checkdisk (chkdsk).
How to run check disk in Windows 7
http://www.SevenForums.com/tutorials/433-disk-check.html=================================================================
Other information that might help:
Control Panel control - plan change Options - power plans - power - advanced settings
Parameters for the drainage and the use of parameters (this is how much to use and not how much or how)
long to load).In fact, what causes a lot of wear on a battery empties it too low on several occasions. With today
systems overload are not a problem.Here are some tips to help and troubleshoot battery issues.
Old battery? Unplug the power to the computer - remove the battery and clean the contacts with a pencil
eraser (do not use this, if your battery is fine slots - just clean up the edges of the knife which fit in)
them and be careful). Batteries are old, or it could be a problem with the computer.
Check with the support of the machine system, and many of them have on line forums.New Lithium-Ion type battery usually last longer if you do not unload their less than 30%
However on a laptop that not extend their life a lot. Best is to use the a/c adapter
When this is possible.I use the free version of BatteryBar to monitor my battery. Click on the green button on the
Yellow box on the right side of the page to download the latest stable version.BatteryBar - free version available
http://osirisdevelopment.com/BatteryBar/index.htmlAnother good program
Vista battery saver - free
http://www.codeplex.com/vistabatteryProblems with the lives of its use and the battery of power - Mr Fixit
http://support.Microsoft.com/GP/windows_battery_power_settingsYou can also check with the manufacturer of system and forums that many use their own
proprietary software to monitor the battery and they could be known problems with your battery.============================================================
Battery meter: frequently asked questions
http://Windows.Microsoft.com/en-us/Windows7/battery-meter-frequently-asked-questionsBattery saver
http://Windows.Microsoft.com/en-us/Windows7/conserving-battery-powerSolutions to common battery problems
http://Windows.Microsoft.com/en-us/Windows7/solutions-to-common-battery-problemsWhat is the precise the battery meter?
http://Windows.Microsoft.com/en-us/Windows7/how-accurate-is-the-battery-meter============================================================
Try this - to make a Restore Point
How to create a System Restore Point in Windows 7
http://www.SevenForums.com/tutorials/697-system-restore-point-create.htmlHow to do a system restore in Windows 7
http://www.SevenForums.com/tutorials/700-system-restore.htmlThen Control Panel - Manager of devices - Batteries - Double click on each item - drivers - tab
Update the drivers (which can do nothing) - then do a right click and UNINSTALL each - RESTART
who will update the driver stacks.Problems with the lives of its use and the battery of power - Mr Fixit
http://support.Microsoft.com/GP/windows_battery_power_settingsI hope this helps.
-
I just bought a new computer and I was wondering that if I were to do something like unistall Creative Cloud/PS and LR to my old model to the new model I'd appreciate any help (real) Thanx Jimi
Cloud license allows 2 activations http://www.adobe.com/legal/licenses-terms.html
-Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0
-Windows or Mac has no importance... 2 on the same operating system or 1 on each
-Two activations may NOT be used at the same time (noted in the link above of the license)
IF you won't use the old computer...
Remove the license on a computer http://forums.adobe.com/thread/1442423?tstart=0 can help
-read http://helpx.adobe.com/x-productkb/policy-pricing/error-maxium-acitvation-exceeded.html
-or https://helpx.adobe.com/x-productkb/policy-pricing/activate-deactivate-products.html
-
I just bought a new computer, and I just discovered that I can't spend my version of 12 items from my old PC to my new PC because it came with a license for one computer only. I bought 14 items today at the store. How can I move all of my photos of 12 items on my old PC (which are all nicely filed), for my new PC in 14 elements? I would appreciate any help with my question. Thank you.
Hello
You must make a backup of your catalog with items 12 and then restore using 14 items. A guide for the backup and restore are help from Elements Organizer | Back up or restore the catalogs.
-Pierre D
-
I just bought a new Magic Mouse 2 but it can't scroll.
I just bought a new Magic Mouse 2 but it can't scroll. But if I change this mouse with microsoft mice, that the mouse can work well. However, I take the 2 magic mouse the apple store where is can match the other apple computer. Can you give me some suggestions?
You must meet these requirements: Mac computer compatible Bluetooth with v10.11 OS X or later.
-
If I have a small Firefox page I can not open a NEW page. He let me just open a new tab on the reduced page. I used to be able to open a new page in browser icon on my desktop, but for these last days, it won't let me. It is a desktop computer, running Windows 7. Everything is up-to-date.
Hi Deb, it's hard for me to test it personally because I've pinned the shortcut of Firefox to the taskbar, which changes its behavior, and when I remove it, I don't fit my desktop icon. (?!)
Anyway, as a temporary workaround solution while we sort out this point, you can use the 'Skip' list: right click on the Firefox icon in the task bar and choose 'Open a new fenΩtre' that should certainly generate a separate window and not only a new tab in the existing window. Normally works?
Firefox has a hidden setting that you might try to change to see if it makes a difference. Normally, when you open a link in another program, it opens in a new tab in the last window of Firefox, that you used. Your what's doing? I propose changing the setting so that the link must open in a new window to see if it has an impact on this problem.
(1) in a new tab, type or paste Subject: config and press ENTER. Click on the button promising to be careful.
(2) in the filter box, type or paste link.o and make a pause so that the list is filtered.
(3) double-click the preference browser.link.open_newwindow.override.external and set its value to 2 and click OK.
The possible values for this preference are as follows:
-1 = follow your settings in the Options for new tabs vs new windows (default)
3 = open external links in a new tab in the last active window
2 = open external links in a new window
1 = open external links in the last active tab replaces the current pageThere are a few other similar named preferences, so be sure to change one that has 'external' in the name.
Any difference?
Maybe you are looking for
-
No apple replace broken chargr cable purchased in apple store
Hi apple bought lightning charger apple store about 1 year ago and now does not work, apple will replace this
-
window does not update when I add a tab or switch to another tab
When I add a new tab, the new tab appears, but the screen does not change. The content on all of the tabs is the same.If I type in a url, my current page updates and when I choose another tab, the screen does not change. All tabs have the same conten
-
M900z Windows 7 64 bit does not install
I am trying to install Win 7 64 bit from a USB Pendrive and it always comes up with the error of the missing driver. I tried to use all the USB ports. Start with legacy disable startup secure, all that I can find in the forums. Please help me!
-
Portege R700-173: Win7 on SSD - how to get a windows installation disk?
Hello. I want to install the new 128 GB SSD in my Portege R700-173. I want first to recovery media. But I do not understand what will contain this DVD. It will be Windows7 install disc? (I'll be able to install new windows on my new SSD?) with the pi
-
Why my HP Photosmart C309A miss pages feeding into the scanner?
Almost every time I spend several pages (for example 16 pages) in the ADF scanning or copying, the pages are missed. HP Photosmart C309A Lion OS