Solved

Analytiics_and_MySqllsupport.

Posted on 2011-09-25
4
224 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

733 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