?
Solved

Analytiics_and_MySqllsupport.

Posted on 2011-09-25
4
Medium Priority
?
233 Views
Last Modified: 2012-05-12
Does MySQL support Analytical functions and Materialized views like oracle or not?

By analytics i mean ranking functions like ROW_NUMBER, RANK(), DENSE_RANK, etc.

Is Mysql now sort of like ORacle 6.0 or 7.0 in terms of features.
0
Comment
Question by:sam15
  • 2
4 Comments
 
LVL 60

Accepted Solution

by:
Kevin Cross earned 2000 total points
ID: 36596198
No. Sorry. You can emulate the ranking and some other windowing functions by using MySQL's ability to define variables inline and assign them values per row. See the MySQL section:
http://www.experts-exchange.com/Programming/Languages/SQL_Syntax/A_1555-Analytical-SQL-Where-do-you-rank.html

If I understand "Materialized views" correctly, that is when you have a VIEW on a remote system. MySQL has a new federated engine that is supposed to talk to remote MySQL databases which may be able to work.

I saw a nice link once that showed each DBMS against ANSI standard. If I can find it, I will post it. MySQL varies in a lot of ways, but if you are looking for the equivalents that may help, e.g., instead of OFFSET there is LIMIT.

Kevin
0
 
LVL 6

Expert Comment

by:tangchunfeng
ID: 36596446
you have to implement materized view manually like this
http://www.fromdual.com/mysql-materialized-views
0
 

Author Comment

by:sam15
ID: 36596701
materialized views are SQL queries like views but summary data is stored in a table. It can be refreshed on demand, nightly, on commit, etc.

Is mysql sort of like oracle 6 or 7 in terms of features. I think they added trigger support and subqueries in views, etc.
0
 
LVL 60

Expert Comment

by:Kevin Cross
ID: 36596861
I do not really know Oracle 6/7 to make an accurate comparison. Yes, triggers and sub-queries now work. As you can see from the link above, the workaround for materialized views is a table being refreshed via a procedure. That isn't really the same in my understanding, so I would say no it does not support it.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question