Find products purchased in different years
Hi team,
I have the following table structure and data of id product and purchased date
I need to get the products that were purchased in 1900 and 2000 only
create table product (Product_id number, Product_nm varchar2 (11), cust_pur_date varchar2 (11))
Insert into the product
(Product_ID, Product_NM, cust_pur_date)
Values
(1, 'oracle', "1900");
Insert into the product
(Product_ID, Product_NM, cust_pur_date)
Values
(1, 'oracle', '1950');
Insert into the product
(Product_ID, Product_NM, cust_pur_date)
Values
(1, 'oracle', '2000');
Insert into the product
(Product_ID, Product_NM, cust_pur_date)
Values
(2, "java", "1900");
Insert into the product
(Product_ID, Product_NM, cust_pur_date)
Values
(2, "java", "1950");
COMMIT;
I wrote the following query to obtain the required data. Could you please other solutions for this
select Product_ID,Product_NM,cust_pur_date,lead_date from( select Product_ID,Product_NM,cust_pur_date ,nvl(lead(cust_pur_date)over (order by Product_ID desc ),0) lead_date from Product) where cust_pur_date ='1900' and lead_date ='2000'
products that have been purchased in 1900 and 2000 only
Select * from product where cust_pur_date = 1900 or cust_pur_date = 2000;
Above won't work, it will give the two Oracle & Java.
Try this one:
Select * from product p where cust_pur_date = 1900
and exists (select 1 of the product p1
where p1.product_id = p.product_id
and cust_pur_date = 2000);
Tags: Database
Similar Questions
-
Download link for the product purchased over 3 years ago
I bought Illustrator CS5 over 3 years and the need to re - install on a new machine. Where can I find the download link?
CS5 - http://helpx.adobe.com/creative-suite/kb/cs5-product-downloads.html
-
Re-installed PSE10 of backups. Product purchased/downloaded several years ago. Key series came in a subsequent e-mail. Had installed new hard drive and vista yesterday with no copy of these emails. How can I get a license key again (probably should be new)?
Right now my PSE10, the Prime Minister and LR say all tests 30 days even if they were purchased. Adobe will give me the new, and how to contact them directly for the latter?
Thank you very much!
Lost serial number http://helpx.adobe.com/x-productkb/global/find-serial-number.html
I do not work for Adobe, but if the link above does not, in my view, that you will need to purchase a new... and note your serial number on a piece of paper and place it in a folder in your desk drawer
-
I bought the standard CS6 design last year and had to disable and uninstall due to factory reset on computer, now when I open my products purchased at re download my product, it won't let me? It is grayed out and there is no other link available for download?
Download & install instructions https://forums.adobe.com/thread/2003339 can help
-includes a link to access a page to download the Adobe programs if you do not have a disk or drive
-Cloud desktop http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
-Cloud Getting Started https://helpx.adobe.com/creative-cloud.html
-you will need to enter your original serial number during the installation for non-Cloud programs
- or kglad links in response to #1 here can help https://forums.adobe.com/thread/2081216
Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq
-
How can I register my AppleCare purchased over a year ago?
I bought iMac 21.5 "and AppleCare (iMac) Feb 2013 but I forgot to save the documents.
Today, my iMac had hardware problems, so I'm trying to save the documents, but the Web (https://selfsolve.apple.com/agreement/register) registration page shows the following warning:
It seems that this product was purchased over a year ago and may not be registered with this registration number. If you feel that this information is incorrect and you would like to make a correction, please contact the Apple Support.
Can I register the AppleCare for this iMac? Which Web page can I register my AppleCare?
I think that "contact the Apple Support" is explicit.
-
Hello can't find my purchase on photoshop elements in my account, I changed my computer, so how do I get it back?
Hello
If you want to download Photoshop elements, please use the below for the links to do the same thing:
Photoshop elements help | Download Photoshop Elements | 10, 11, 12, 13
Download Photoshop Elements products | 9, 8, 7
See this, toquickly find the serial number of your Adobe product
Let us know if that helps.
Kind regards
Bani
-
How can I find out what that different revisions of Firefox difficulty or address?
How can I find out what that different revisions of Firefox difficulty or address?
Hello charlesmiller000, you can see the firefox release notes:
https://www.Mozilla.org/en-us/Firefox/releases/ -
Is it really true that my iCloud calendar iPhone cannot find events more than a year?
Is it really true that my iPhone iOS 9.3 5s iCloud calendar cannot find events more than a year?
Yes, it's really true. Try week Cal. He does ' t with a smoother interface, but it has a very robust feature set. I use it in conjunction with the built-in calendar
-
I'm trying to find my purchased music. Why must it be so hard! Really, Apple.
< published by host >
Please try this it can help you!
go to settings > music > scroll down 'Show all Music' pass. If he is out to turn it on. (Once turn-off and start-up it)
-
Where can I find my purchase history in the ios app store?
Where can I find my purchase history in the ios app store? I use air ipad 2 and I bought some elements of support in an online game, but it is not my purchased item? She already deduct under my belt.
This, to iTunes on a computer.
Read here: see your purchase history in iTunes on Mac or PC - Apple Support store
-
I bought the Adobe Master Costume CS5.5 product packaging a few years back and today I get the following message appears: "Configuration Error: there was a problem with the license of this product." You restart the computer, and restart the product. Error 213:19 ".
That was before Adobe moved to a payment structure based on participants. I need to be able to access these programs. Please provide a solution to the problem.
order to C:\ProgramData\Adobe & C:\ProgramData\Adobe\SLStore folders full reapply administrators property back on the C:\ProgramData folder and then add everyone.
-
I can't find products that i ' v bought and installed on my Pc (Photoshop and Lightroom) on my identification code Adobe where can I find the serial number save?
Creative cloud does not use a serial number and creative cloud subscribers for not having any serial number associated with their programs. Creative cloud subscribers use their adobe ID to activate their programs.
Download and install the desktop creative cloud application (after signing with your adobe - the same as that used to pay for your creative cloud subscription ID), https://creative.adobe.com/products/creative-cloud
Open the office application (a shortcut will be on your desktop) > click applications, and then select the programs you want to install.
the desktop application gives you access to the cs6, cc, cc 2014 and cc 2015 apps. and probably more in the future.
If you already have the cc desktop application and you need to update your adobe id, log out and then back to your client application using the adobe id to pay for your subscription in cc: http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
-
cannot find product information or version
After the computer starts, I get a window that says: cannot find info product or version it comes to my computer from my deceased aunt. I have not purchased records. I hope I won't need them. I have used the PC for many years and hope to continue. I get expired messages quickly when you use word and other programs. I saw a window forget me not. I thought while trying to follow directions to upgrade for Adobe, which I lost myself in, may have created the problem. So I uninstalled and reinstalled Adobe programs. I defraged the computer, but I hope someone can me defrag. Thank you
You are running Windows XP, you must do a clean install. Releasing it's easy: with Windows | ActiveWin | Laptops | Microsoft MVP
-
Cannot find product key Vista Business
Several years ago, I bought and installed Vista Business Upgrade on my HP XP system. I now need to re - install on this system, but somehow the product key has been lost. I bought MS Vista Business DVD. The product key I stuck on the booklet is not for Vista but for OUTLOOK and of course does not work. Is it possible to get a key for my legal DVD?
Thank you.
E the key must be in the packaging in which the DVD came - or if you have purchased an OEM copy, you should have stuck the label on the case of the machine on which it was installed.
If you can't find it, but the machine still works the operating system, use Belarc Advisor to retrieve the key.
-
Hello Adobe Creative cloud users, I have an urgent problem, I hope that you can help me with:
I have a subscription year of CC running since the beginning of December 2015. Somehow I've always used versions "trial" of programs. Since yesterday, when I want to use Illustrator, the application manager appears and says my trial is over. To use Illustrator, I have the choice between registration and purchase. When clicking on 'register' it won´t accept my e-mail and password, saying: there is no account connected to my address. When you click on 'buy' I get sent to the Adobe homepage where I can connect with the same addy and password and can access my account etc. So won´t I would buy, stating that I have a membership already where it is included. It s obviously a bug, but I have no idea what to do with her and urgently need to work on with a pressing client project.
Anyone experienced the same problem in the past and has a solution for me? Chat / phone-supported is no option because it is only available from Monday. On the frequently asked questions I coudn´t find the problem either. I already tried to uninstall all CC but got the error "other programs installed still need the CC" so who does not work either. I uninstalled all products CC already one, CS6 is still there, so maybe that's the problem? But I'm not delet ethat minimum that still works.
As said, I need to work with CC, for a quick resolution would really help me.
Frustrated regards, V
Your subscription to cloud shows correctly on your account page?
If you have more than one email, you will be sure that you use the right Adobe ID?
https://www.adobe.com/account.html for subscriptions on your page from Adobe
.
If Yes
Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud
-Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
-http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
-http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
-http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
-ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
-http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
.
If no
This is an open forum, Adobe support... you need Adobe personnel to help
Adobe contact information - http://helpx.adobe.com/contact.html
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
-Select your product and what you need help with
-Click on the blue box "still need help? Contact us. "
Maybe you are looking for
-
How drag and drop a picture into a shape of the object?
On my old Lion system that I used to be able to drag a picture from iphoto in the shape of the object open in Pages. I can't be able to do more. The system changed? I tried to use Inspector (under help), but it won't let me access the file of the
-
Can you tell me how many slots of RAM I have and what the MAX RAM amount I can spend on this machine? Thank you!
-
I work in the lab of Windows (so please don't give me all the answers Lab View). I have a utility Windows Lab that I support, and I'm doing work on the SMU-1082. We will control the SMU with a MXIe (SMU-8360) connected to a PC. One thing I want to do
-
Original title: Corel uninstaller I'm trying to uninstall Cortel Suite chart 4, particularly the Corel Paint Shop Pro Photo. Corel tell me to uninstall manually, but when I download their uninstall program, it does not work. I tried to uninstall it
-
I have a HP dv6 3260es Nightingale that came with his "original HARD drive. I recently bought a new hard drive 250 GB SSD and replaced the old HDD by this news. I kept the old HDD and placed in the CD/DVD slot. Now, I have 2 hard drives and no CD/DVD