Solved

Analytiics_and_MySqllsupport.

Posted on 2011-09-25
4
219 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
Comment Utility
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
Comment Utility
you have to implement materized view manually like this
http://www.fromdual.com/mysql-materialized-views
0
 

Author Comment

by:sam15
Comment Utility
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
Comment Utility
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
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, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now