Solved

Analytiics_and_MySqllsupport.

Posted on 2011-09-25
4
223 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 59

Accepted Solution

by:
Kevin Cross earned 500 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 59

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

765 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