Kind of movie more rented by the customer.
HelloI need a list with the name of the customer and more rented film genre.
Database schema:
genres (id_genre, name)
movies (id_movie, id_genre, title)
DVD (id_dvd, id_movie)
customers (customer_id, name)
rents (customer_id, id_dvd, id_rent, date)
I need something like:
John, Action
Paul, Action
Mary, adventure
Christine, drama
Horror of Daniel
Victoria, Romance
Neal, Romance
Thank you!
Hello
Welcome to the forum!
1009991 wrote:
HelloI need a list with the name of the customer and more rented film genre.
Database schema:
genres (id_genre, name)
movies (id_movie, id_genre, title)
DVD (id_dvd, id_movie)
customers (customer_id, name)
rents (customer_id, id_dvd, id_rent, date)I need something like:
John, Action
Paul, Action
Mary, adventure
Christine, drama
Horror of Daniel
Victoria, Romance
Neal, RomanceThank you!
The STATS_MODE aggregate function is the easiest way to do it.
Since I did not test versions of your tables, I will use the table scott.emp to illustrate:
SELECT deptno
, stats_mode (JOB) AS top_job
FROM scott.emp
GROUP BY deptno
ORDER BY deptno
;
Output:
` DEPTNO TOP_JOB
---------- ---------
10 CLERK
20 ANALYST
30 SALESMAN
If there is a tie for the most common value, STATS_MODE takes one of the values arbitrarily. For example, deptno = 20, there are 2 analysts and 2 clerks, but there is no way to see than just using STATS_MODE. If you want to view all the contenders for the most common value, and then use a Top - N query, with an analytical function as GRADE:
WITH got_rnk AS
(
SELECT deptno, job
, RANK () OVER ( PARTITION BY deptno
ORDER BY COUNT (*) DESC
) AS rnk
FROM scott.emp
GROUP BY deptno, job
)
SELECT deptno, job
FROM got_rnk
WHERE rnk = 1
ORDER BY deptno, job
;
Output:
` DEPTNO JOB
---------- ---------
10 CLERK
10 MANAGER
10 PRESIDENT
20 ANALYST
20 CLERK
30 SALESMAN
I hope that answers your question.
If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish the results you want from these data (if it is different from what you posted in your first post).
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 {message identifier: = 9360002}
Tags: Database
Similar Questions
-
When to pay issued what the command processing error occurred. For more information, contact the customer service by phone 8 800 333 36 63. What should do?
Hello
You will need to contact support by calling/chat for this request.
* Be sure to stay connected with your Adobe ID before accessing the link above *.
Kind regards
Sheena
-
Hello
Hello
Place the code in the upper part of the first css file.
The other thing that can help is-
It comes to give IE hasLayout mode, (as shown). Enter the names of the div (separated by a comma ",") so whether it applies it to all of your divs.
PZ
-
Are there more Styles of Menu custom that u can get to 7 DVD Maker window, then those who are pre determined for you in the list of menu styles?
Hello SuperComicCollecter 101,
Welcome to the Microsoft Answers Forum!
You can't even download new menus/styles; You can then bring yourself with the SDK pack that you can download from the official website of Microsoft. It would be a bit complicated, but if you are good at programming you can use this SDK package. There are many online tutorials that will help you.
Windows Movie Maker and Windows DVD Maker SDK:
After downloading this file, I suggest to install in compatibility mode, to do this, please follow the steps below
Right click on the downloaded file > properties > click on the Compatibility tab > under compatibility mode > check the box run this program in compatibility mode for and select windows 7 in the drop-down list in the menu drop down and then apply the settings.
I hope this information helps. Please get back to us if you have any other questions on this subject.
Thanks and greetings
Mir - Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
Can I rent a movie on a laptop the night before and watch it the next day on a plane
Can I rent a movie on a laptop the night before and watch it the next day on a plane
About rent movies on the iTunes Store - http://support.apple.com/HT201611
-
How to select and move more than one bookmark at a time?
Shift + click selects multiple items that are next to each other in a list, because the items open in firefox before that happens.Glad it worked for you. Thanks for posting back.
-
A part of the my s g80 lenovo touchpad does not (far left, to be more precise on the thick part of 5 cm), the cursor moves sometimes, bought this tour only 2 weeks before. I use especially the usb mouse, so never experienced this problem before, I do not know if it is still there since I bought. I contacted lenovo saying this problem, they asked to reinstall the driver for the touchpad from the link given, the problem persists and they claimed his driver with w7 incompatibility and reinstall the operating system? Please say a solution for this problem, I can't change the os now :(
Lenovo/support forums is the place to ask, its their software/driver.
Unless of course you make the mistake of using windows update for drivers, if so try to make back the driver, or reinstall on the Lenovo support site
-
Hello! I can't subscribe to creatively Cloud for photographers. When you subscribe to gives an error when you pay with the card: "order processing error occurred for more information, please contact the Customer Service by phone 8 800 333 36 63, when making a payment via PayPal: PAYMENT_CPG_SETTLE_FAILED. How to order?
Contact adobe during the time pst support by clicking here and, when available, click on "still need help," http://helpx.adobe.com/x-productkb/global/service-ccm.html
-
A few years back, I bought CS5. because of my house having to repair my Adobe CS5 has been lost in the move. Then I had to take care of my mother who died later of cancer. I have now found my product but the person said the customer service there is no newspaper of me purchase of the product. I can't use the product that I bought because I don't have the registration code. So could I please get a refund and I will return the edition teachers and students of CS5. Thank you.
@
-
Down loaded Creative could Macmin in January... Mini lost it is solid, put out. New mini can not get through all the forms ADOBE, passwords, etc. Have no serial number of the program, but my purchases are well documented.
Had to change passwords several times. I need a quick and direct link by e-mail or by phone at ADOBE. Displacement of the programs has been easy.
Gerry
Hello
The CC from Adobe, you can download simple on your new machine by following the steps mentioned in the help below document:
Using creative cloud | Download, install, update or uninstall applications
In case the problem persists, please contact support:
Kind regards
Sheena
-
the guarantee is cancelled if I get a laptop in the United States and go to India? If not is there an international interest in this regard
There is a lot of uncertainty...
HP says "most of the HP products sold on or after August 2, 1999 are provided with comprehensive warranty coverage. HP can provide a service guarantee on your product in any country where we have a presence of service. "
However if you experience a hardware problem... you will need to return the unit in the country of purchase for repair...
You can read the FAQ:
http://h40059.www4.HP.com/warranty/information/FAQ.php
personally, I've seen several ppl warranty service received in India on unit purchased from the USA or other countries in order to move forward and buy the laptop.
But if you put it back to any other country... I can not assure you...
-
Why all my open windows minimize when I move another window on the screen?
Hello
What happens is that when I move a window on the screen all my other windows minimize, as this half the window sometimes disappears or appears another window on top.
I am currently running Windows 7, it is aware of the updates. I ran virus checks. Also, I found a way to stop it from happening by unchecking the "use Visual styles on windows and buttons" in the performance options, however my PC should run with this setting is enabled, and it has been for more than a year.
If it helps, here are the basis for my PC specifications:
i5 - 2500 k
8 GB RAM
1 TB SSHD (this is where the BONE is)
HARD DRIVE 500 GB
160 GB HDDGTX 770
OCZ ZS 650W 80 + Bronze
All the drivers are up to date.
Any help is appreciated
Thanks in advance,
Alex
I don't know why I didn't try this earlier but I changed the theme to one of those aero preset instead of one custom I made, has so far prevented the problems I had with the windows tearing and glitching. Im not sure what caused my custom aero theme to cause a lot of problems.
Thanks for all your help!
-
Help present interactive content to the customer?
Hello!
We present the first version of website, in HTML of the Muse, to the customer, and I would like to hear suggestions on how to present the interactive elements which (I think) cannot be built on Muse.
Complex parts are made with images that simulate the final appearance.
There is, for example, a step in a page "build your project" in which the user will be presented with three choices of radio button within a box with other content, when they choose one of them, the box resizes its height down and the content again matches inside, create a new 'open' by clicking on the option button.
Once that there is no way for this build graphically with the help of Muse, I would like to hear suggestions on how to present it. I thought of three options:
- HTMLing steps
- Insert a GIF animated this work
- A video of this work insertion
Which would be perhaps the best to show the client in your opinion? You have another idea?
It is a very legitimate question, but right now, Adobe has no "Visual" tool that will help design you a model 'live' for these interactive content, move and collapsing and everything. Tools that come to mind to build a Visual representation of the work, would be Dreamweaver, Animate (the old Flash) or even After Effects (indeed, a video). But these tools are heavy, and especially to animate and After Effects, the designer/developer/operator needs to know the restrictions of design of the web environment, before embarking on any fancy flashy designs.
Adobe also carefully entering the arena of interaction with their new Design experience Adobedesign tools. This is a brand new application (give it a try, but also a break), specialized in the creation of the design app mockups and prototypes without code. It is intended for the design of the application, but it can be help you too, making a few clever Webdesign as well ;-)
As a last but not least use, I would advise Tumult Hype, a web animation tool not Adobe. Just like abandoned Adobe Edge animate, it's easier to be used by designers, to create models of more complex interactions. The exported file .oam or HTML can be placed in native mode or as an iframe in Muse. Of course, you can also try using Adobe Edge animate, for as long as it won't break...
-
What is the customer service phone number?
I need to call them to cancel my account...
You may please check out the link below for instructions on cancellation.
Cancel your membership creative cloud
For more information you can contact the Support from Adobe by clicking on the link below.
Please make sure that you are connected to the right Adobe ID.
Hope this will help you.
Kind regards
Hervé Khare
-
The customer States AR indicate Page numbers Reset based on the number of customer
Hello
In the customer statements AR report, if I ran the report for several clients, page number must be reset for each customer...
Group on the way as below,
<? for-each-group: G_STATEMENT; STATEMENT_DATE? > <? for-each - group:current-group(); SEND_TO_ADDRESS_ID? >
Hi Valerie,.
I got the answer by using the @section command.
Here's the complete syntax in my case.
Xml tag - field form
If the found data.
Group G_SETUP-
Group G_STATEMENT-
Its work for me.
Let me know if you need more information.
Kind regards
National Stadium
Maybe you are looking for
-
How can I report a possible fraud attempt?
I got a call from so-called Tech Dept for Windows operating system. They said that 72.2% of my system was already damaged. They wanted me to buy security software at the price of 1 year, 2 years or life. I told them I want to come back with them.
-
Unable to connect to the virtual disk Service, Virtual Disk Manager Interface not registered
I installed Windows 7 Ultimate on this laptop as a new installation about six months ago. Since then, I don't think I ever ran diskmgmt. Today, I joined a new external hard drive usb, it reported the drivers installed fine, but then the installatio
-
Downgrade 14.4 to 14.3 TMS
Hi all As stated in my previous post, Cisco seem to have withdrawn in favour of TMS upgrade VCS to 14.4, we have a whole bunch of them, whereas makes life very difficult and frustrating. I've recently upgraded to TMS from 14.2 to 14.4 to relieve anot
-
EX90 - copy favorites between units
Hello I have several EX90s and would like to copy the Favorites between several units. Anyone know where favorites are stored? they aren't xconf, currently logged in as root, and looking for a text or xml file. Thank you
-
Transfer of account Adobe Cloud and applications from PC to Mac
Just buy a new Mac Mini and have a current of creative cloud and apps on a Windows-based PC. I would like to transfer creative Cloud and all apps, licenses to new Mac.How can I do this?Thank you!