Getting the new products included every month

Hi friends,
Iam having two tables
PRODUCT_CATEGORY - Has the details of the Category of Products
PRODUCT_SUBCATEGORY - The Subcategory details of the Products.
I need to create a view to store the product introduced every month, how can i do this?[as i have the created date in the product category table]
PRODUCT_CATEGORY
id -- name -- cdate---------------------> fields
PRODUCT_SUBCATEGORY
id--catid--name--descriptions ----------------------> Fields
Help me in this

Requirements are not very clear..
Like this..?
sql>select * from t;
ID DT
1  30-JAN-07 
1  31-DEC-06 
sql>
create or replace view vu1
as
select * from t
where to_char(dt,'fmmmyyyy')=to_char(sysdate,'fmmmyyyy');
View created
sql>select * from vu1;
ID DT
1  30-JAN-07 
--now db date changed to 01-feb
sql>select * from vu1;
no rows selected                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Want to get the 25th day of every month Date Function

    Dear All,
    i want want to get the 25th day of every month
    like.
    select sysdate from dua.
    Regards

    i want want to get the 25th day of every month By saying 'day', do you mean days like - Sunday, Monday, etc.?
    Why I'm in doubt is 25th of every month will always be 25 like '25-Jan', '25-Feb', '25-Mar', etc...
    In case you need the other way -
    SELECT
                ADD_MONTHS (
                            TRUNC (TO_DATE (SYSDATE), 'YEAR'), LEVEL - 1
                            ) + 24,
                TO_CHAR (
                    ADD_MONTHS (
                            TRUNC (TO_DATE (SYSDATE), 'YEAR'), LEVEL - 1
                            ) + 24
                    , 'DAY')
          FROM DUAL
    CONNECT BY LEVEL <= 12;Output:
    25-Jan-2013     FRIDAY  
    25-Feb-2013     MONDAY  
    25-Mar-2013     MONDAY  
    25-Apr-2013     THURSDAY
    25-May-2013     SATURDAY
    25-Jun-2013     TUESDAY 
    25-Jul-2013     THURSDAY
    25-Aug-2013     SUNDAY  
    25-Sep-2013     WEDNESDAY
    25-Oct-2013     FRIDAY  
    25-Nov-2013     MONDAY  
    25-Dec-2013     WEDNESDAY

  • Mdx query to get the last date of every month if the month is current month need current date..

    i have a scenario where i need the data of last date of every month and if the month is current month need current date data...
    is it possible using MDX...

    Hi Shashi,
    According to your description, you want to return the last day for each month except current month, right?
    In MDX, we can use ClosingPeriod function to return the member that is the last sibling among the descendants of a specified member at a specified level, here is a sample query for you reference.
    with member [measures].[a]
    as
    ClosingPeriod ([Date].[Calendar].[Date],[Date].[Calendar].currentmember).name
    select {[measures].[a]} on 0,
    [Date].[Calendar].[Month].members on 1
    from
    [Adventure Works]
    And then use the IIF function to evaluate if the month is current month. Please refer to the links below.
    http://msdn.microsoft.com/en-us/library/ms145584.aspxhttp://msdn.microsoft.com/en-IN/library/ms145994.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • I keep getting the message come up every month or so. Especially after I've just download a lot of new tracks.The file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes. Would you like to download iTunes now?

    I know how to get my old library back - but I want this to stop coming up time and time again. My Mac won't allow me to down load the lastes iTunes software. What do I do?

    this just started w/ me yesterday.  I was running 10.5.3, and nothing changed - the message just appeard out of nowhere.  I update to the latest iTunes 10.6 but the message is the same.
    Sounds like probably some sort of Library file corruption.
    The two options available in the message box are "Download" and "Quit".  Download is useless because I'm already running the latest.  Quit is pretty useless.
    I was going to just create a new Library and re-import all my music.  Of course, all my iPhone sync settings are going go have to be recreated.

  • Adobe Acrobat Pro XI 11.0.06 when I reduce file size or try to optimize, I get this error: The document could not be saved. A number is out of range. I do the exact same thing every month and it works. I did it a few days ago and it worked. I receated the

    Adobe Acrobat Pro XI 11.0.06 when I reduce file size or try to optimize, I get this error: The document could not be saved. A number is out of range. I do the exact same thing every month and it works. I did it a few days ago and it worked. I receated the pdf, I renamed it. tried to do it before I imported more pages. no go. the 16 mg pdf will normally reduce to 5 or 6

    Hi,
    Are you facing the issue with any pdf file?
    Please try updating Acrobat to 11.0.7 and check.
    You might also want to repair Acrobat and see.
    Regards,
    Rave

  • Every time i connect my iphone to itunes and trying to do a backup or get the new update it says i have to restore my iphone. and then that doesnt work, i tried to reinstall itunes but it doesnt work. i get this all the time. fix it please.

    Every time i connect my iphone to itunes and trying to do a backup or get the new update it says i have to restore my iphone. and then that doesnt work, i tried to reinstall itunes but it doesnt work. i get this all the time. fix it please.

    iTunes states " There's a problem with your Iphone, please contact apple service center " Also i took my iphone to a local service man and he told me the IMEI code has been corrupted and there's nothing that can be done about it. Please help, if you have any solution.
    Thank you

  • Adobe Standard XI full version costs 299$ and subscription to same version is only 13$/month = 156$. Do I get the same product? Is it in both cases installed on my computer and ready to use even if I'm not logged on internet?

    Adobe Standard XI full version costs 299$ and subscription to same version is only 13$/month = 156$. Do I get the same product? Is it in both cases installed on my computer and ready to use even if I'm not logged on internet?

    They are the same product.
    The "full" is a traditional perpetual license. Install - register - activate - use.
    Does not "call home" to validated that is a paid for install (the one time activation takes care of that).
    Internet? Connectivity is needed in order to download and install updates.
    (& Yes, you do want those)
    The "subscription" license will require periodic internet connectivity. If I recall correctly all "subscription" applications must call home once a month.
    That is how the application "knows" it is being paid for and is legit.
    While within the call home periodicity connectivity is not required for usage of the application.
    As with a "full" license you'll need connectivity to download/install application updates
    Be well...

  • Recently got the new IPad. Every time I try accessing the iTunes store, I get the error message, 'cannot connect to the iTunes store'. Am unable to proceed beyond this. Any suggestion?

    Recently got the new IPad. Every time I try accessing the iTunes store, I get the error message, 'cannot connect to the iTunes store'. Am unable to proceed beyond this. Any suggestion?
    I bought it in Thailand and am using it in Kenya.

    I have the same issue.  How did you solve it?

  • It's happened twice in the last month- I suddenly can't open my Pages documents unless I get the new version (for $20!) What is going on??!!

    Some documents, but not others, that I've created/edited/printed and worked with JUST RECENTLY suddenly won't open UNLESS I get the new version of Pages (for $20!!) I just edited some of these a couple of days ago! I edited one, printed it, etc. Now I need to look at it again and it WON'T open! I "need the new version of Pages??! What if I don't want to suddenly shell out $20 to work with documents I made on the version I already have? And why do SOME documents now look different (in a new style) while others look like they always have, and function normally?

    You have 2 versions of Pages on your Mac.
    Pages 5.2 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Older versions of Pages 5 can not open files from later versions of Pages 5.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed almost 100 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Peter

  • Where do i get the qualifying product before installation of the new one

    where do i get the qualifying product before installing the cs6 product

    What product are you trying to install?  It sounds as if you have purchased an upgrade?  If that is the case then you would need to have a qualifying previous product in order to install successfully.  What software are you upgrading from?  Finally what operating system are you using?

  • I am moving to Alice Springs, Australia, this summer from the U.S. I would like to get the new iPad. How can I found out if I will be able to access all the functionality in Alice? Will I need to purchase a local plan of some sort?

    I am moving to Alice Springs, Australia, this summer from the U.S. I would like to get the new iPad to use while traveling back and forth from the U.S. to Australia, and within Australia. How can I found out if I will be able to access all the functionality of the iPad in Alice? Will I need to purchase a local plan of some sort? I have never owned an Apple product before -- I'm a newby!

    Aside form the limitation of LTE to the 700MHz and 2.1GHz bands (which rules out LTE in Europe I gather, at least as it stands now) the new iPad should let you use a GSM 3g/2g/edge network anywhere.  The CDMA Verizon model will only be able to use it's native CDMA radio band in the USA (that radio will be locked to Verizon), but it's international GSM radio is the same as the AT&T model.
    Keep in mind though that by far the cheapest option when abroad is to take advantage of free wifi as much as possible (well, that is always the cheapest option, since it is free).  I know several people who have taken their wifi-only iPads and iPad2s to Europe and said they did not find the lack of 3G really inconvenient at all as most towns had plenty of free or cheap wifi access all over the place.
    And in 3 years, your iPad will be at least 2-3 generations behind, LTE will have already been replaced by 5G or whatever the next new generation of cellular ends up being named (and the "young" kids will be wondering what the heck 3G even means or meant - dang that stuff was from the olden days!), and you can pitch that ancient piece of technology and start things all over again 

  • I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    You can't merge accounts or copy content to a different account, so anything that you bought or downloaded via the old account is tied to that account - so any updates that those apps get you will only be able to download via that account. You can change which account is logged in on the iPad via Settings > Store

  • I purchased an iPad mini on October 10th.  I want to return it and get the new ipad mini retina when it comes out.  How do I do that if the new ipad mini release date isn't until "later in November", which is beyond the 14 days from my purchase date?

    I purchased an iPad mini on October 10th.  I want to return it and get the new ipad mini retina when it comes out. I am currently still within the 14 day return/exchange window but how can I exchange it if the new ipad mini release date isn't until "later in November", which would be beyond the 14 days from my purchase date?  If apple announces a new version of a product you just purchased but won't actually release it for more than 14 days, how can you possibly exchange the one you just bought?  Is my only option to return the one I bought on the 10th (so return by 10/24) and then not have an iPad until the new one is available for purchase?  Or would it make any sense to return the one I bought, get a new one, which would presumably have another 14 day return window, and then exchange THAT one for the new ipad mini w/ retina when it comes out (hopefully within that second 14 day window)?

    Call the apple store you got it from and ask them. Sometimes in the past they've extended the 'no questions asked return' but only Apple can tell you for sure.

  • How to get LASTDAY for each and every month between given dates..

    Hi Friend,
    I have a doubt,How to get LASTDAY for each and every month between given dates..
    for ex:
    My Input will be look like this
    from date = 12-01-2011
    To date = 14-04-2011
    And i need an output like
    31-01-2011
    28-02-2011
    31-03-2011
    is there any way to achieve through sql query in oracle
    Advance thanks for all helping friends

    Here's a 8i solution :
    select add_months(
             trunc(
               to_date('12-01-2011','DD-MM-YYYY')
             ,'MM'
           , rownum ) - 1 as results
    from all_objects
    where rownum <= ( months_between( trunc(to_date('14-04-2011','DD-MM-YYYY'), 'MM'),
                                      trunc(to_date('12-01-2011','DD-MM-YYYY'), 'MM') ) );
    The above two query is worked in oracle 11GActually the first query I posted is not correct.
    It should work better with
    months_between(
       trunc(to_date(:dt_end,'DD-MM-YYYY'),'MM'),
       trunc(to_date(:dt_start,'DD-MM-YYYY'),'MM')
    )Edited by: odie_63 on 12 janv. 2011 13:53
    Edited by: odie_63 on 12 janv. 2011 14:11

  • When trying to get my music from itunes a message pops up on my computer stating the disk cannot be found, what is this? I cant get the new music i purchased

    when trynig to get new music from itunes a message pops up on my computer saying the disk cannot be found. I dont know what this is, now i cannot not only get the new music i just purchased i seem to have lost all of my other music i already has as well. Is there anything I can do to fix this problem a get all my music back?

    Thanks for all of your help. Took the old girl in to a techie at London Drugs and my HD had failed, simple mechanical failure after 5 years of useful service. They mentioned that it was a pretty massive failure as they were unable to extract ANY information whatsoever. For those of you wondering what the warning signs were: slowing down of all processes, especially opening applications; freezing up when running an internet applcation and browsing at the same time; occasional starting up with a flashing folder with the dreaded ? (which would restart the first few times once I disconnected all peripherals, including the keyboard); finally full failure with only a white screen showing upon start up.
    I am getting a new HD, will reinstall from Time Machine and there will be peace in the valley.

Maybe you are looking for

  • Where are the latest java docs for the 9i JDBC drivers

    Hi, I'm trying to locate the java docs for the latest 9i JDBC drivers. I have searched all over the otn and oracle sites and still haven't found them. Does anyone know where they can be found. Thanks, Simon

  • Module Pool Programming in ECC 5.0

    Hi Experts, Can any one explain the unique features of Module pool programming in ECC 5.0.  Even if you find any documentation please pass it on. Regards, Shankar

  • Budget Check based on PO Delivery Date

    My users are currently facing an issue with PO creation. They are unable to save their POs as the Delivery Date for the line items in the PO has been set to next year. It would seem that the budget check is based on the Delivery Date in the PO, not t

  • How to hide page size at bottom of pdf?

    Hi I've created a PDF docuemnt to be viewed on screen wich contains a lot of buttons etc. At the bottom of the page in normal view (we are not using full screen. or reading mode) the page size measurements pop up when the cursor approaches the bottom

  • ME32L Material Group change

    Hello Guys, In transaction 'ME32L' - agreement, I can see some line's Mat. Grp were '0000'. when I use mm02 change some material's Material Group and come back to see in the ME32L. The Mat. Grp have no change. Can some guys know what is this probelm?