selection of the dates not used for the list
OK, the last one for today...I'm trying to fill a list with values of the month years between the first entry in the table and the month previous (sysdate - 1 month).
At the moment I have this, which will select every month between the last entry in the table and sysdate-1.
select to_char( add_months( start_date, level-1 ), 'MON-YY' ) d, to_char( add_months( start_date, level-1 ), 'MON-YY' ) r
from (select add_months(max(date_received),1) start_date, add_months(sysdate, -1) end_date from localdata) where start_date < end_date
connect by level <= months_between(trunc(end_date,'MM'), trunc(start_date,'MM') ) + 1
But I want it uses the first entry and select all the months between then and sysdate-1 where there is no entry in the table.I tried something like that, but it returned no data:
select to_char( add_months( start_date, level-1 ), 'MON-YY' ) d, to_char( add_months( start_date, level-1 ), 'MON-YY' ) r
from (select min(date_received) start_date, add_months(sysdate, -1) end_date from localdata) where start_date < end_date and to_char(start_date, 'MON-YY') not in (select to_char(date_received, 'MON-YY') from localdata)
connect by level <= months_between(trunc(end_date,'MM'), trunc(start_date,'MM') ) + 1
Hello
pearlyred wrote:
Thanks for the comment tip, it works great now. I just need how to sort date wise.
If missing_month is a string, such as "JAN-2013", then it's not good for sorting, since the string "JAN-2013" come after "FEB-2013"(et aussi après «FEB-2014"et «FEB-2015") because 'J' comes after 'F'. "»»» If you want to sort, and then keep the month as a DATE, like this:
WITH got_missing_month_s AS
(
SELECT ADD_MONTH first_month, LEVEL - 1) AS missing_month_s
FROM (
SELECT TRUNC ( MIN (date_received)
, 'MONTH'
) AS first_month
FROM localdata
)
CONNECT BY LEVEL <= MONTHS_BETWEEN ( SYSDATE
, first_month
)
MINUS
SELECT TRUNC (date_received, 'MONTH')
FROM localdata
)
SELECT TO_CHAR (missing_month_s, 'MON-YYYY') AS missing_month_d
, missing_month_s
FROM got_missing_month_s
ORDER BY missing_month_s
;
The main request has 2 columns:
missing_month_d is for display: it's a string such as "JAN-2013".
missing_month_s is for sorting: it's a DATE.
Tags: Database
Similar Questions
-
How to disable the password screen when the computer is not used for a few minutes
original title: password problems
How can I stop my computer from ebb to needing a password, if not used for a few minutes
Right-click your desktop image and select Customize,
Click on the link at the bottom right, screen saver
Uncheck the underlined
-
I'm locked out of my ipod5 that I have not used for a long time, it is not connected to the Internet or iTunes is anyway can I unlock? In my opinion, it works on IOS8. Because I have not used in a long time, it has reset and does not connect to the wifi until I unlock, and I forgot the password to unlock it. I tried to clear up my iPhone but it requires Internet and iPod can not connect to Internet ithe, I also tried to restore the 'home' button and the lock button while connected to iTunes on my computer and that did not work either... Please let me know if I haven't tried something or have missed something.
Thank you
You have to follow the instructions for the erasure or use recovery mode in iTunes again. . You do not specify what happened when you tried to follow these instructions, or instructions for iTunes, which you tried to follow, but you will be able to exit the mode disabled via iTunes if you do not have Wifi:
See you soon,.
GB
-
Hello, I have my ID Windows Live ID have not used for some time and I want to start using it again, live ID is always committed but I don't remember the password and I can't use the reset password option because I don't know that it is marked and "inactive". Please let me know promptly if you are able to reactivate my live ID. Once you answer this, I will use the live id address. Thank you in advance.
original title: can reactivate you my windows Live ID?Hello, I have my ID Windows Live ID have not used for some time and I want to start using it again, live ID is always committed but I don't remember the password and I can't use the reset password option because I don't know that it is marked and "inactive". Please let me know promptly if you are able to reactivate my live ID. Once you answer this, I will use the live id address. Thank you in advance.
It is a peer-to-peer (user forum. You don't talk to Microsoft directly. The answerto your question is, "No."
Windows Live Solution Center - HotMail - HotMail Forums Solutions
http://windowslivehelp.com/Hotmail - Forums
http://windowslivehelp.com/forums.aspx?ProductID=1Hotmail - Solutions
http://windowslivehelp.com/solutions.aspx?ProductID=1How to contact Windows Live Hotmail Support
http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htmWindows Live Hotmail Top issues and Support information
http://support.Microsoft.com/kb/316659/en-us -
I just took on my Asus Eee after not using for a year. I can not open even with administrator password. How can I unlock without using the software tool?
Hello
It is all of the information that we are authorized to issue in these Forums.
"What to do if you forget your Windows password"
http://Windows.Microsoft.com/en-us/Windows7/what-to-do-if-you-forget-your-Windows-password
"If you forget the administrator password, and you do not have a password reset disk or another administrator account, you will not be able to reset the password. If there is no other user account on the computer, you will not be able to log on Windows and you need to reinstall Windows. »
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
http://support.Microsoft.com/kb/940765
If you are unable to connect to Windows 7 or Windows Vista, you can use the Windows Vista System Restore feature, or the Windows 7 system restore feature.
- Scenario 1: You recently set a new password for the protected administrator account. However, you don't remember the password.
- Scenario 2: You type the correct password. However, Windows Vista or Windows 7 does not accept the password because the system is damaged.
- Scenario 3: You delete a protected administrator account. Now, you cannot connect to another administrator account.
- Scenario 4: You change an administrator account protected with a standard user account. Now, you cannot connect to another administrator account.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Microsoft prohibits any help given in these Forums for you help bypass or "crack" passwords lost or forgotten.
Here's information from Microsoft, explaining that the policy:
See you soon.
-
Enable / disable fields by selecting from the list
Hey guys,.
How can I make an option like < bool > with a list instead of a checkbox.
Example of work in text QooQees Widget magic. I already asked this developer but got no answer.
This selection in the list turns off the text field:
And if you choose another option that it activates the text field:
No idea how to do this?
Unfortunately, it seems that it is a hole in the documentation, but the
tag in lists also support the disableOptions attribute, similar to the way in which the tag of under the made. You can see an example in the section for its operation. -
Up to version 7.0.1 but never crushed/hnag, FF with 7.0.1 after you have not used for a period of time (hours or less), it crashes. No solution except again?
Upgrade your browser Firefox 8 and try
-
Join the nearest date "not used".
I need to join the following tables by the next date "not previously signed" the nearest:
start_table:
st_id start_dt start0 31-dec-2014 Start1 January 3, 2015
Start2 January 5, 2015 start3 January 7, 2015 Debut4 8 January 2015 Debut5 January 14, 2015 end_table:
end_id end_dt end0 January 1, 2015 End1 January 2, 2015 End2 January 13, 2015 End3 January 15, 2015 bout4 January 17, 2015 end5 19 January 2015 end6 January 20, 2015 Result:
st_id end_id start0 end0 Start1 End2 Start2 End3 start3 bout4 Debut4 end5 Debut5 end6 start0 joined end0, because the closer to the date of the next 31-dec-2014 is 1 January 2015
Start1 joined end2, because the closer to the date of the next January 3, 2015 is January 13, 2015.
Start2 joined end3, because as well as the date of the next more close January 5, 2015 is 13 January 2015, this is already accompanied Start1, so she joined next January 15, 2015.
start3 joined bout4, because the date of the next although most close January 7, 2015 is 13 January 2015, this one is already joined by Start1, earliest date is January 15, 2015, but is also already joined by start2, then he joined the next available date January 17, 2015.
Database: 11g
Thanks in advance
[UPDATE: changed line 37 to add "or cnt > = 0".] [This covers cases where there are more departures that ends at first.]
Jiri.Machotka - Oracle wrote:
I found a non recursive algorithm for this problem...
I came up with something similar: no recursion, no joins, each table read only once.
- UNION ALL marked times 1 tables, with lines of departure and end marked lines - 1
- Order by date (first lines) and get a combination of 1's and - 1's.
so when there are too many lines to end, the sum is negative. - Get the previous cumulative minimum! Then take that end with a sum running lines, at less than the previous minimum.
- The remaining lines will have an end of line for each line of departure. Now number lines starting from 1 to N and the lines at the end of 1 to N, then match lines start and end in pairs. I use PIVOT to do this.
WITH end_table (end_id, end_dt) AS ( select 'end0',to_date('01-jan-2015','dd-mon-yyyy') from dual union all select 'end1',to_date('02-jan-2015','dd-mon-yyyy') from dual union all select 'end2',to_date('13-jan-2015','dd-mon-yyyy') from dual union all SELECT 'end3',to_date('15-jan-2015','dd-mon-yyyy') FROM dual UNION ALL select 'end4',to_date('17-jan-2015','dd-mon-yyyy') from dual union all SELECT 'end5',to_date('19-jan-2015','dd-mon-yyyy') FROM dual UNION ALL SELECT 'end6',to_date('20-jan-2015','dd-mon-yyyy') FROM dual ) ,start_table (start_id, start_dt) AS ( select 'start0',to_date('31-dec-2014','dd-mon-yyyy') from dual union all select 'start1',to_date('03-jan-2015','dd-mon-yyyy') from dual union all select 'start2',to_date('05-jan-2015','dd-mon-yyyy') from dual union all select 'start3',to_date('07-jan-2015','dd-mon-yyyy') from dual union all select 'start4',to_date('08-jan-2015','dd-mon-yyyy') from dual union all SELECT 'start5',to_date('14-jan-2015','dd-mon-yyyy') FROM dual ) , start_and_end as ( select -1 rowtype, end_id id, end_dt dt from end_table union all select 1, s.* from start_table s ) , running_count as ( select se.*, sum(rowtype) over(order by dt, rowtype desc) cnt from start_and_end se ) , filtered_ends as ( select rowtype, id, dt from ( select rc.*, min(decode(rowtype,-1,cnt)) over( order by dt, rowtype desc rows between unbounded preceding and 1 preceding ) mincnt from running_count rc ) where cnt >= nvl(mincnt,0) or cnt >= 0 ) select * from ( select rowtype, id, row_number() over(partition by rowtype order by dt) rn from filtered_ends ) pivot(max(id) for rowtype in(1 st_id, -1 end_id)) order by rn;
ST_ID END_ID RN
---------- ------ ------
1 start0 end0
2 Start1 end2
3 Start2 end3
4 start3 bout4
5 debut4 end5
Debut5 6 end6
-
tablespace as defined in the model of the index is not used for manually defined indexes
Hello
in the 4.0.1.836 version, I defined under model in Modeler, model, physics, use index of preferences / Data (I use the German version, I hope that I have translated correctly) an index template that contains a value for the attribute tablespace.
For indexes that are generated automatically (as defined in the properties of my model under the generation of index DDL/auto/properties") it works fine. There was a thread on this already
. It works very well. However, for indexes that manually in a table there is no tablespace clause in the generated ddl script generated. Is this a bug or am I missing something?Thanks for your help,
Jochen
Hello Jochen,
Yes. You are right. For manually defined indexes, the Index model is applied when the Index is created in the first place. As these properties are in the physical model, it is only effective if the relevant physical model is open when the Index is created in the first place. The Tablespace defined in the template is applied only if the physical model contains a Tablespace with the same name.
I guess it's a bit inconsistent for the automatically generated index Tablespace clause is generated when the physical model is not open.
David
-
When compiling capture date to use for the version of the application
How can I capture the date when compiling for use for the version of the application (to view it on demand)
Thank youThis is a requirement which is located on the territory of a construction such as ANT, Maven or Gradle management tool. You have the management generation tool generate a file properties with the date of construction and then you can load this file of properties in your application.
-
Selection of the list of clients using the clause "EXISTS".
Dear all,
I have 3 tables, say,
TABLE1:
CUST_CODE
(PRIMARY KEY)
CUST_NAME
CUST_COUNTRY_CODE
CUST_CITY_CODE
CUST_AREA_CODE
A
CUST1
COU1
CIT1
A1
B
CUST2
COU2
CIT2
A2
C
CUST3
COU2
CIT2
A3
D
CUST4
COU3
CIT4
A4
E
CUST5
COU3
CIT5
A5
TABLE2
STOCK_SYS_ID
(PRIMARY KEY)
STOCK_CUSTOMER_CODE
STOCK_CUSTOMER_
COU_CODE
STOCK_
CUSTOMER_
CIT_CODE
STOCK_
CUSTOMER_
ARE_CODE
STOCK_DOC_
CREATED
1
A
[Leaving empty as we have reference only to the customers and the date here...]
10/15/2015
2
B
15/09/2015
3
A
16/08/2015
4
C
18/08/2015
5
E
22/07/2015
6
C
31/01/2015
7
A
15/10/2014
TABLE 3
AREA_CODE
AREA_COUNTRY_CODE
AREA_CITY_CODE
A1
COU1
CIT1
A2
COU2
CIT2
A3
COU3
CIT2
A4
COU3
CIT3
A5
COU4
CIT5
How can I find the list of clients of TABLE1, which are present in TABLE2 by 2015 and have country-city-zone, both correct mapping as specified in section TABLE3 using the clause "EXISTS".
Is that my output will be like,
CUST_CODE
(ONLY CORRECT CUSTOMER CODES)
CUST_NAME
A
CUST1
B
CUST2
Thanks in advance,
Séverine Suresh
Hello
So, you want to see 3 columns in table1 correspond to 3 columns in t3. It is not enough for only 1 column equal:
Area_Code must be equal
country_code and must be equal
city_code and must be equal.
Here's a way to encode that, by using the EXISTS operator in a WHERE clause:
SELECT cust_no, cust_name
FROM table1 t1
WHEN THERE IS)
SELECT 0
Table 3 T3
WHERE t3.area_code = t1.cust_area_code
AND t3.area_country_code = t1.cust_country_code
AND t3.area_city_code = t1.cust_city_code
)
;
I hope that answers your question.
If not, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results you want to start from these data (otherwise what you've posted already).
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum: Re: 2. How can I ask a question on the forums?
-
I don't have a normal opening page, when I opened TB. The only thing on the screen is a list of local folders on the left side of the screen with only 3 listed columns. Subject, from, and Date. There is no address list, tool or menu bars, writing, sending view etc. The change of the screen that's happened several weeks ago. I pressed a button and the screen changed from normal to one that only shows the screen of the local folder. I was not able to respond to my email or write brand new. I have concluded that if there is no other choice, other than to uninstall and reinstall new TB please don't let me know. I have been without email for about 3 weeks now and that must be fixed. I'd appreciate any help you can give. I'm not a computer language and technical or program explanation writers are usually not easy for me to decipher so if there is no simple solution to my problem don't let me know and I'll uninstall and reinstall the latest version. Thank you
First of all, try to open in safe mode:
Hold your shift down when you start Tbird. Don't make permanent changes. Click on continue in integrated security mode.
Any change?
Right-click on the top border. You get an opportunity to activate the menu and mailtools? In the affirmative. -
no selection in the list with custom itemRenderer
Once an itemRenderer custom, consisting of a canvas with image and label, submit to a list control that list loses the ability to choose. the selectable attribute is set to true. There are no managers in the renderer that can eat the event.
How can I provide the itemRenderer custom without losing the functionality of the list?Theoretically, you should avoid using containers as element converters because they are 'heavy' with the functionality you don't need.
Best practice is to extend or to copy and modify ListItemRenderer.as. The source is in the file framework somewhere.
This is not trivial, but it's not rocket science either. The Adobe code is quite clear and well commented.
In addition, google: Alex Harui element converter, for a few examples by a master of Adobe.
Tracy
-
notifications of delivery doesn't have an account who have not used for more than one year
Help
Recently I received a now defunct work e-mail delivery failure notifications, which did not use more than a year, what can I do to stop these notification of delivery failure. This is back with all of my incoming emails. no rule of message didn't put in place for this address, and as it's my former work e-mail address, how to stop what is happening? sxlireland.
Hi sxlireland,
· E-mail are what customer you referring?
· This message occurs with all email addresses or specific email address?
If you use windows live mail or hotmail, you can reference in the windows live forum.
Windows Live Forum - http://windowslivehelp.com/
-
GTX 750 Ti not used for Premiere Pro work cc 2014
Hello
I have a well specc'd had PC running Windows 8.1. Intel i7 6 core HT, loads of Ram, 2 SSD drives, etc. I have also a GTX 750 Ti GPU, I thought I would help with Pr mounting accelerated effects. I've just updated today to version of the nVidia 353.06 driver after removing the old driver completely. I have used Pr Pro CC 2014 and have just updated to 2015 Pro Pr release yesterday.
I'm editing my 1080 video shooting apartment first of all if needs sharpening, increased saturation settings and luminance as well as others for audio and a stabilization.
First (and Photoshop and Lightroom) all detect the GPU. PR allows MEPS with Cuda for the project. GPUSniffer detects the card Open GL and Cuda.
For the moment I see no use of the GPU during playback in real time, clips of rendering or during encoding (with various effects). Maybe 1-3%. Chrome open with several tabs causes 33% use so the GPU card works. GPU Z use to view the settings for the card.
What I'm missing here? The card is detected but not used (by accelerated effects). Everyone had this card and is seen to work to expedite the process of accelerated creation of effects? Is it related to the Maxwell architecture?
Thank you.
I would say you are running our first Pro BenchMark (PPBM) who works with CC 2015 (first version 9) and look at your GPU - Z when exporting MPEG2-DVD with GPU and then also export H.264. These two have many effects, accelerated by the GPU MPE and features.
Maybe you are looking for
-
Ringtones for my 6 of my iTunes music library
How to make ringtones for my 6 s of my iTunes music library? I followed a method I Googled, but it does not work. I'm on Windows 10.
-
HP officejet 4500 G510g receive fax
send fax ok, ok, 5 phone rings, 6 rings fax test fax but don't receive fax Thank you Doug
-
I can't use my hotmail account
I can't use my hotmail account, I can't send or receive messages.
-
Can I upgrade to Windows Vista or just get a new computer?
As support ends for Windows XP can I upgrade to windows Vista or is supported ending for Vista also. If not, where can I get a version of Vista?
-
I have ads running in background, no picture, just sound
Hello, I have Windows Vista Home Premium 32 bit. Ads are running in the background, just no its image even when the Explorer is closed. Don't know how to fix this?