Need help with this problem please
Hi allI have 2 tables and I am runnig the following query against it:
select t1.ID_NBR, t1.START_DATE,t1.END_DATE,t1.SAMPLE_ID,t2.END_INTV_TIME,t2.CIN_DATA_ID
from sample t1,weekend t2
where t1.SAMPLE_ID=t2.SAMPLE_ID_1
and t1.WEEKEND_FLAG='Y'
and t1.SITE_ID_NBR='000097117011'
and get the following dataset:ID_NBR START_DATE END_DATE SAMPLE_ID END_INTV_TIME CIN_DATA_ID
97117011 91908 92108 143493 100 131834
97117011 91908 92108 143493 200 131835
97117011 91908 92108 143493 300 131836
97117011 91908 92108 143493 400 131837
97117011 91908 92108 143493 500 131838
97117011 91908 92108 143493 600 131839
97117011 91908 92108 143493 700 131840
97117011 91908 92108 143493 800 131841
97117011 91908 92108 143493 900 131842
97117011 91908 92108 143493 1000 131843
97117011 91908 92108 143493 1100 131844
97117011 91908 92108 143493 1200 131845
97117011 91908 92108 143493 1300 131846
97117011 91908 92108 143493 1400 131847
97117011 91908 92108 143493 1500 131848
97117011 91908 92108 143493 1600 131849
97117011 91908 92108 143493 1700 131850
97117011 91908 92108 143493 1800 131851
97117011 91908 92108 143493 1900 131852
97117011 91908 92108 143493 2000 131853
97117011 91908 92108 143493 2100 131854
97117011 91908 92108 143493 2200 131855
97117011 91908 92108 143493 2300 131856
97117011 91908 92108 143493 2400 131857
97117011 91908 92108 143493 100 131858
97117011 91908 92108 143493 200 131859
97117011 91908 92108 143493 300 131860
97117011 91908 92108 143493 400 131861
97117011 91908 92108 143493 500 131862
97117011 91908 92108 143493 600 131863
97117011 91908 92108 143493 700 131864
97117011 91908 92108 143493 800 131865
97117011 91908 92108 143493 900 131866
97117011 91908 92108 143493 1000 131867
97117011 91908 92108 143493 1100 131868
97117011 91908 92108 143493 1200 131869
97117011 91908 92108 143493 1300 131870
97117011 91908 92108 143493 1400 131871
97117011 91908 92108 143493 1500 131872
97117011 91908 92108 143493 1600 131873
97117011 91908 92108 143493 1700 131874
97117011 91908 92108 143493 1800 131875
97117011 91908 92108 143493 1900 131876
97117011 91908 92108 143493 2000 131877
97117011 91908 92108 143493 2100 131878
97117011 91908 92108 143493 2200 131879
97117011 91908 92108 143493 2300 131880
97117011 91908 92108 143493 2400 131881
97117011 91908 92108 143493 100 131882
97117011 91908 92108 143493 200 131883
97117011 91908 92108 143493 300 131884
97117011 91908 92108 143493 400 131885
97117011 91908 92108 143493 500 131886
97117011 91908 92108 143493 600 131887
97117011 91908 92108 143493 700 131888
97117011 91908 92108 143493 800 131889
97117011 91908 92108 143493 900 131890
97117011 91908 92108 143493 1000 131891
97117011 91908 92108 143493 1100 131892
97117011 91908 92108 143493 1200 131893
97117011 91908 92108 143493 1300 131894
97117011 91908 92108 143493 1400 131895
97117011 91908 92108 143493 1500 131896
97117011 91908 92108 143493 1600 131897
97117011 91908 92108 143493 1700 131898
97117011 91908 92108 143493 1800 131899
97117011 91908 92108 143493 1900 131900
97117011 91908 92108 143493 2000 131901
97117011 91908 92108 143493 2100 131902
97117011 91908 92108 143493 2200 131903
97117011 91908 92108 143493 2300 131904
97117011 91908 92108 143493 2400 131905
What I wanted was to add 2 columns to all data above, the reason is the dataset above has 72 files, one file per hour for 3 days from Friday 01:00 and ending the Sunday i 2400, but all have in all of the above data is just the date of beginning and end, so I created the following query to add the columns :SELECT *
FROM (SELECT t.*,
TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24),
'Day'
) AS weekday,
TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24),
'mmddyy'
) AS next_date
FROM (SELECT t1.id_nbr,
t1.start_date,
TO_CHAR (TO_DATE (t1.start_date, 'mm/dd/yy'),
'fmDay'
) AS start_day,
t1.end_date,
TO_CHAR (TO_DATE (t1.end_date, 'mm/dd/yy'),
'fmDay'
) AS end_day,
t2.sample_id_1, t2.cin_data_id,
t2.end_intv_time, ROW_NUMBER () OVER (PARTITION BY t2.sample_id_1 ORDER BY t2.cin_data_id)
AS rn,
COUNT (t2.cin_data_id) OVER (PARTITION BY t2.sample_id_1)
AS cnt,
t1.weekend_flag
FROM sample t1,
weekend t2
WHERE t1.sample_id = t2.sample_id_1
AND t1.weekend_flag = 'Y') t)
WHERE TRIM (weekday) IN ('Friday', 'Saturday', 'Sunday')
AND nbr = '000097117011'
And the problem I have now is instead of 72 for 3 days I get only 71 and time 2400 is paased on the next day, I tried to use CEIL instead and ended up getting 48 reocrds instead, the following dataset is when I used the above queryID_NBR START_DATE START_DAY NEXT_DATE WEEKDAY END_DATE END_DAY SAMPLE_ID CIN_DATA_ID END_INTV_TIME
97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131848 1500
97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131849 1600
97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131850 1700
97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131851 1800
97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131852 1900
97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131853 2000
97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131854 2100
97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131855 2200
97117011 91908 Friday 91908 Friday 92108 Sunday 143493 131856 2300
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131857 2400
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131858 100
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131859 200
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131860 300
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131861 400
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131862 500
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131863 600
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131864 700
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131865 800
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131866 900
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131867 1000
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131868 1100
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131869 1200
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131870 1300
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131871 1400
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131872 1500
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131873 1600
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131874 1700
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131875 1800
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131876 1900
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131877 2000
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131878 2100
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131879 2200
97117011 91908 Friday 92008 Saturday 92108 Sunday 143493 131880 2300
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131881 2400
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131882 100
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131883 200
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131884 300
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131885 400
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131886 500
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131887 600
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131888 700
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131889 800
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131890 900
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131891 1000
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131892 1100
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131893 1200
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131894 1300
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131895 1400
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131896 1500
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131897 1600
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131898 1700
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131899 1800
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131900 1900
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131901 2000
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131902 2100
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131903 2200
97117011 91908 Friday 92108 Sunday 92108 Sunday 143493 131904 2300
Need help please.Thank you
Hello
Hours in a range of 0 to 23 hours day after midnight. You count from 1, not 0, so the 24th hour (from Friday) is actually from 00:00 on Saturday, and the 72nd hour is 00:00 Monday, that you are not counting in the WHERE clause.
Maybe when you calculate tn, you might simply subtract 1:
SELECT *
FROM (SELECT t.*,
TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24),
'Day'
) AS weekday,
TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24),
'mmddyy'
) AS next_date
FROM (SELECT t1.id_nbr,
t1.start_date,
TO_CHAR (TO_DATE (t1.start_date, 'mm/dd/yy'),
'fmDay'
) AS start_day,
t1.end_date,
TO_CHAR (TO_DATE (t1.end_date, 'mm/dd/yy'),
'fmDay'
) AS end_day,
t2.sample_id_1, t2.cin_data_id,
t2.end_intv_time, ROW_NUMBER () OVER (PARTITION BY t2.sample_id_1 ORDER BY t2.cin_data_id)
- 1 -- Added
AS rn,
COUNT (t2.cin_data_id) OVER (PARTITION BY t2.sample_id_1)
AS cnt,
t1.weekend_flag
FROM sample t1,
weekend t2
WHERE t1.sample_id = t2.sample_id_1
AND t1.weekend_flag = 'Y') t)
WHERE TRIM (weekday) IN ('Friday', 'Saturday', 'Sunday')
AND nbr = '000097117011'
To view the actual end time, add one hour before posting.
What happens if you are missing a row for some reason any? Just using ROW_NUMBER won't take the missing line into account. It would be preferable to derive the time of the end_intc_timecolumn. Of course, it would be even better to store the date and time ending in a DATE column all the way.
I hope that answers your question.
If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
Explain, using specific examples, how you get these results from these data.
You must not post a lot of data: 6 hours, ending at midnight Monday, should be enough to show the problem and its solution.
Always tell what version of Oracle you are using.
Tags: Database
Similar Questions
-
Need help with this problem without downgrading from Vista to XP pro.
OK so I have a problem, but it is in a common category, it is a rare problem as given that everywhere I look I can't seem to find someone who has the same problem.
Question #1: Heres Alright so my question downgrade from vista 64 bit of the month last to XP pro SP2... Well, I'm going through the process of installation very well, wipe the hard drive, make new partion (or how ever spell you it) etc. It starts the formatting, and it installs everything seems to be fine. Now when it comes to the reboot screen it counts down it restarts correctly now, this is where the problem occurs. During the restart of the process rather than continue through the installation process which should be, where it says "Press any key to boot from the CD" soon after that instead of going into the installation process it says "disc read error" or something of the sort just underneath. Help, please!
Question #2 also now that I re installed vista I did all good also, erased the hard disk (even I tried to install XP on) just to make sure they had no data on this. Well now, during startup it asks if I want "a previous version of windows" or "Windows XP" as if I double started somehow. Vista loads still very well when I choose it however. If I managed to do an install own success of XP it should fix right?
Thanks again.
Hi Kevin112,
Thanks for posting. Follow these steps on your XP disk.
1. place your Windows XP installation CD and start to her...
2. Press any button to start the Windows installation (don't worry... we do not actually use the installer at this point)
3. wait a few moments for the installation program starts, when you see repair an installation of Windows XP using the Recovery Console, and then press the R key
4. wait until you see this screen, enter the number of your master installation. (Typically 1 to C:\Windows)
5. press ENTER.
6. If you are prompted to do so, enter your administrator password. If you don't have one, leave the field blank and press to enter.
7. from the command prompt, type: chkdsk/r (note the space between chkdsk and / r)
Allow it to complete undisturbed.
8. remove the disc, then restart.After completing this, then format it and try to reinstall XP again. As for your other question if completely format you your drive using XP you should not see the previous version of XP. The only reason you would see that it's the Vista BCD is located on a second hard drive in your computer. If this is the case and you want to do an install own format two readers please.
I hope this helps! Shawn - Support Engineer - MCP, MCDST
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
Get error 207 trying to download creative Cloud and someone please help with this problem, thanks in advance please.
Please refer to
-
I need help with a problem of file softdub.dll any answers or how to replace it?
I need help with a problem of file softdub.dll all the answers, or how to replace it? Yes, it's a problem of Vista vs itunes and apparently I lost? This file somehow. I have no idea how blessed remedy. I tried all the normal fixes / easy I know, but I am a novice at best. so please, be gentle and try to guide me through a response. Please, I beg you!
Hello
Did you download and save iTunes on the desktop > then right-click > select run as administrator to install?
If you don't have anything done, see if this information helps you.
"Not to install iTunes or QuickTime for Windows"
http://support.Apple.com/kb/HT1926
«Remove and reinstall iTunes, QuickTime, and other software components for Windows Vista or Windows 7»
http://support.Apple.com/kb/HT1923
If the advice already given does not, please contact Apple for assistance.
"iTunes support-how to use iTunes.
http://www.Apple.com/support/iTunes/
"Contact iTunes Support.
http://www.Apple.com/support/iTunes/contact/
Or ask in the community Apple iTunes:
https://discussions.Apple.com/community/iTunes
See you soon.
-
[Error number: 0x8024400A] Need help with this error... I reinstalled XP SP1 and I can't get an automatic update that's simple to install, just get this error at each time HHHHEEEELLLPPPPP! Thank you
I had the same problem. But finally found a solution. If your listing is similar to mine, then keep. XP Media Center Edition 2005 (sp2). AMD Athlon 64 x 2 Dual-Core, HP a1630n desktop computer.
Go to the HP website, search for sp37394-XP sp3 Upgrade utility Microsoft for systems equipped with AMD processors.
I had the same 0 x 80240036, 0x8024400a error, but realize my problem was really get manually downloaded sp3 and installed without continue loop crashing and not error messages.
-
Is there a default value for the color management in PSE10? Beautiful photos from iPhoto, but blur with elements. I need help with this before as I consider that the upgrade to PSE13 and beyond.
Printing which forms an angle seems ok, but one that is horizontally seems faded, incomplete.
I was wondering if I saved a layer somewhere and set it as a default value.
If you group the layers, you will be left with a single layer, thus spreading your concern.
Suggest that you do the following:
- Make sure you have the latest drivers for your printers
- Reset the default preferences.
Hold the Alt, Ctrl + Shift keys when you click the icon to open the items. When asked if you want to delete the settings file, say Yes.
Items nearby and let regenerate the file.
-
Need help with this gallery of xml!
I have build a gallery but its very simple... There are pictures of the xml file.
I have attached all the zip files.
I just want two things if anyone can help.
first of all when I press the next button, he's going to the next image, but without effect. It just displays the following image... I want to incorporate the effect of dragging when the image is changed to another.
and secondly, I want to use the AutoPlay feature.
Once swf starts images came one by one with a vertical drop of a few seconds.
Thanks in advance... I really need help with this..!
For the look of sliding effect using the actionscript class Tween. Allows you to create motion tweens using the code. The example below will be tween property _x of the instance named anObject from 0 to 300 in 3 seconds...
import classes before using
Import mx.transitions.Tween;
Import mx.transitions.easing.Regular;TW var = new Tween (anObject, "_x", Regular.easeIn, 0, 300, 3, true);
To implement an enforcement function auto you need to import all the images first, in the order, then you will need to use form any controlled timer, such as setInterval (with clearInterval not to need) in order to have things turn on automatically by some part-time
-
Need help with the composer please?
I am very new to view and work my way through the implementation in our society. I get two different messages when the composer fails.
"Could not perform the operation active directory. COM 2147016654 "error code
"the partial distinguished name of the ad container specified is not valid.
I would appreciate help with this. Thank you very much in advance!
-Brandon
Please consider awarding points by scoring responses as 'correct' or 'useful '.
-
Need help with windows update please!
Tried for months now to get windows update to work properly. I still see a message pop up in my lower toolbar, that says: windows cannot verify the updates, with a red x. I'll try to update manually and it shows 0% all the time. When I go and check to see if there have been updated, it will show a little from time to time, who have downloaded successfully, but believe that is made during a unrolled task he is set to make only 1 or two from time to time will show. I don't know what else to do. It's Windows Vista. Help, please... My Windows defender seems to fine day. Help, please... Thank you...
Hello
I guess that part of the question could be a driver which is really old or similar should not be loaded.
This exit Windows updates on (after you have access) and stop the updates of the driver to load.
How to disable automatic driver Installation in Windows Vista - drivers
http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx---------------------------------------------------
You can use the solutions in this KB - 3 methods and I listed a little help for them below
The update is not installed successfully, you receive a message, and the computer restarts when you try to
install an update in Windows Vista
http://support.Microsoft.com/kb/949358Method 1: Start Windows Vista with the Windows installation media and use the repair feature
How to do a startup repair in Vista
http://www.Vistax64.com/tutorials/91467-startup-repair.htmlYou can also do a safe mode startup repair to access the Recovery Options If you have them available
or use the DVD as described above.This tells you how to access the System Recovery Options
http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspxTry recovery options Startup Repair
How to do a startup repair
http://www.Vistax64.com/tutorials/91467-startup-repair.htmlMethod 2: Start the system in safe mode and then use the system restore feature
How to make a Vista system restore
http://www.Vistax64.com/tutorials/76905-System-Restore-how.htmlYou can also do a restore of the system of starting with a Vista disk.
Method 3: Rename the Pending.xml file, and then change the registry (this method is part of the advanced troubleshooting)
See article below for that.
You can use this method on the updates that have this problem.
http://support.Microsoft.com/kb/949358Hide the update (click right - HIDE in the updates of Windows) and go to the Microsoft Download Center to download
and install it.Microsoft Download Center
http://www.Microsoft.com/downloads/en/default.aspx------------------------------------------------------
Once you are in Windows I was running once again reset here as a precaution.
How to reset the Windows Update components?
http://support.Microsoft.com/kb/971058Hope this helps sort it out for you.
Rob - bicycle - Mark Twain said it is good. -
I need help with a problem of scrolling on my laptop
I have a toshiba laptop with windows vista. The problem is with scrolling and it started this morning after getting information from the Washington Post, where executives of information jump every 5 seconds. Before I entered the Post, my computer was scrolling smoothly and quickly. Now, he jumps at a slow pace, even after that I release the square keys.
I tried to find something in the Control Panel, but there was nothing there for the problem. I then cut the modem, thinking that would help, but nothing.
Soon I'll be 80 and not computer wise.
I would give to apreciate any help!
Happy new year
John
Hi again,
I have a laptop Toshiba Satellite that gives me problems with scrolling since 12/31/11. Bikest T recommended something that fixed the problem for about 1 to 2 hours and he returned. I use a pad and the up/down keys. No mice. If I used either top or key frame/presentation will continue to jump, at a very slow pace for executives from 4 to 7 after the button is released and I can't stop fucking her.
I tried the driver Dective who said I had an outdated driver. Being a novice in computer science, I tried, without success, to how this problem could be fixed.
I had this same problem about a year ago and I don't remember how it was corrected.
At the time, that this problem is back, I was on The Washington Post watch automatic 5 second frame advances and once they stopped, my smooth scrolling stopped and my scrolling problem started. Any help would be appreciated.
Happy new year!
John
Hi sandanZY
I merged your new thread on this subject in this thread. Please use the address on the bottom of the message in this thread rather than creating new threads on the same topic.
Thank you. :)
-
I need help with a problem of sensor horizontal banding in newly purchased a6000
I recently bought an a6000 mail from B & H. I see horizontal visible bands anywhere in the frame, with normal photographs, nothing of multiple transformations. Now, I've seen many boards of Directors that it is a known problem. How Sony can sell such a defective product? I saw that Sony service says there is a problem with all CMOS sensors, but I have to many digital cameras, which the last - a RX 100 m4 and nothing ever seen before. How to get a repair or a refund, or a person to fix this problem? FWIW, I've been a professional photographer for more than 30 years. So far, I had the greatest respect for Sony, after using their products to deliver for decades. You've now lost my respect.
Thank you
Toby
Hi kymarto,
Welcome to the community of Sony!
I'm sorry to hear that you are having problems with the camera A6000. Based on your other post, you have already reached out to your local Sony for assistance assistance team. If you have questions or concerns about this product or any other product from Sony, please do not hesitate to join us.
For further assistance about your concern, please contact the representative offices of offices/Sony Sony nearest to your place of residence in the Asia-Pacific region through http://www.sony-asia.com/countryselector.html?hpid=countryselector:AsiaPacific. Due to the proximity, they are in a better position to respond to your questions or concerns.
If my post answered your question, please mark it as "accept as a Solution. Thanks_Mitch
-
Can someone help with this request please
I have a table something like below
Things_t
Characteristic of things float value
Element 1 red color
1 packaging
Point 2 square shape
Point 2 brand Spunk
Now I want to reterive an element with any of its tank as Null values. Using the query 'select distinct things from things_t, where there is no char value' fetch element 1 also with point 2. I want to retrieve a record of the thing for which none of the tank, the values are Null as point 2. Can you please help me with this request.Try this:
WITH t AS (SELECT 1 item_id, 17436 chr_id, 14225034 chr_val_id FROM dual UNION SELECT 1 item_id, 39 chr_id, 14276173 chr_val_id FROM dual UNION SELECT 1 item_id, 17774 chr_id, NULL chr_val_id FROM dual UNION SELECT 1 item_id, 265 chr_id, 20502978 chr_val_id FROM dual UNION SELECT 1 item_id, 16978 chr_id, 797233 chr_val_id FROM dual UNION SELECT 1 item_id, 13092 chr_id, 5666917 chr_val_id FROM dual UNION SELECT 1 item_id, 15228 chr_id, 1209758 chr_val_id FROM dual UNION SELECT 2 item_id, 112 chr_id, 12705342 chr_val_id FROM dual UNION SELECT 2 item_id, 6945 chr_id, NULL chr_val_id FROM dual UNION SELECT 2 item_id, 70 chr_id, 12597376 chr_val_id FROM dual UNION SELECT 2 item_id, 16832 chr_id, NULL chr_val_id FROM dual UNION SELECT 2 item_id, 7886 chr_id, 9588619 chr_val_id FROM dual UNION SELECT 2 item_id, 6986 chr_id, 2659351 chr_val_id FROM dual UNION SELECT 3 item_id, 9531 chr_id, 8910943 chr_val_id FROM dual UNION SELECT 3 item_id, 9798 chr_id, 8717531 chr_val_id FROM dual UNION SELECT 3 item_id, 17446 chr_id, 12266441 chr_val_id FROM dual UNION SELECT 3 item_id, 4830 chr_id, 13683090 chr_val_id FROM dual UNION SELECT 3 item_id, 9518 chr_id, 834772 chr_val_id FROM dual UNION SELECT 3 item_id, 11031 chr_id, 20233753 chr_val_id FROM dual UNION SELECT 3 item_id, 12564 chr_id, 2282478 chr_val_id FROM dual) SELECT DISTINCT item_id FROM t MINUS SELECT DISTINCT item_id FROM t WHERE chr_val_id IS NULL
Or this:
SELECT item_id FROM (SELECT item_id, MIN(NVL(chr_val_id, -1)) min_chr_val_id FROM t GROUP BY item_id) WHERE min_chr_val_id != -1
Published by: lee200 on October 15, 2012 09:22
-
Need help with components! PLEASE, I BEG YOU!
Hello
First of all, I want to thank you all for taking your time to read my post, and also give me time to answer if you can.
I was stuck with this component for a little while now. I was wondering if anyone knew how to make a list component send me in the right frame?
I know with certainty that in the settings section if I change the data component and put another site, that he will send me directly to a Web site. However, I was playing with it and I was try and search on Google and I can't find a way to do that when I click an option from the list I created, to send me a picture I want.
that is, if I click on option 4 in my list I want that he send me to frame "contact us" for example.
How can I do this? Do I need a lot of Actionscript?
I appreciate your help and your review.
Really yours.
Agustin Gutierrez
Carleton University
Baccalaureate biomedical and electrical engineering. (III)
Webmaster - Biomedical Engineering Society (bmed.engsoc.net)
Webmaster - control Automatizacion Ingeniería y Comunicaciones S.A. de C.V. (www.iaccpue.com)
Webmaster - Russell Heights Community House (www.russellheights.ca)Oh nevermind...
the code to change the list item is the following...
list_box.change = {function (evt,:Object)}
myVar = list_box.selectedItem.data;
getURL (myVar, "_blank"); change this to do what you want
};
list_box.addEventListener ('change', list_box)Thanks again to all
-
"Skype cannot connect. Get help with this problem.
Well, I downloaded Skype. Then, I connect to my account. And an error on my computer screen that says "Skype cannot connect. Get help in solving this problem. " Someone help me solve this problem?
Make shure that your firewall is disabled. If you have installed.
-
4 problems simultaneously on an operating system of Windows 7 need help with this now!
(1) problem when I try to open a picture using Windows Photo Viewer I get the following Message: Windows Photo Viewer cannot open this picture because you don't have permission to access the location of the file.
Problem (2) when I open Microsoft LifeCam VX-5000, instead of getting a video, I get a small box that says: LifeCam cannot find LifeCam files folder or save a file in there. For more information, see "Troubleshooting and Support" in aid of LifeCam.
Problem (3) when I open CCleaner and try to clean and remove old unnecessary files from Windows appears and tells Me that Windows has detected a problem and needs to close.
(4) problem I uninstalled CCleaner and Microsoft LifeCam VX-5000 and I have tried to reinstalled the problem. When you try to download the software it fails or I tells me it cannot be downloaded.
Please if there is anyone here who has any registry Fix for these problems I'd really appreciate thank you!
Good new everyone after the announcement here for the third and last time I could get help including the journal and Yahoo Answers, Forum Windows 7 me AT & T ConnecTech and this time the Tech added registry keys and values in the Scriptures that completely solve all problems!
Maybe you are looking for
-
Questions since 6.4.0 updated on RN516
Hello I have major issues since the upgrade in 6.4.0 on my RN516: -USB external if connect freeze NAS at startup -Root disk space is 90% -cannot uninstall application So really no stability since 6,4,0 need help or the new update. Thank you
-
CVI 8 has problems with the code of CVI 2009 - why?
I use NI CVI 2009 and thus programmed. Now, I bought 8 CVI and wants to continue programming. But CVI reports errors in the source code of the ICB 9 and I do not understand what is the problem? example of char save [size + 1]; Erros 128, integer 22 s
-
Pavilion dv6-7090el update?
HelloSorry for my bad English...I want to upgrade my Pavilion dv6-7090el netbook.Someone please tell me which components can be replaced?Hard drive? GPU? RAM?I would like to install an SSD: do I have to choose a particular model, or areall compatible
-
506th PIX, PPTP and Windows 98
Hello Customer cannot run IPSEC (long story), so we will try to use the 'customer' Microsoft PPTP to end their VPN on a PIX506E. To simplify things, we went with local authentication (RADIUS proved problematic on the Win2k Server). It works very well
-
Hello I have a question about JOINT-2 on the 6500 cat. Is there than some performance issues for use VACL rather than the LENGTH? Thank you Graz.