analytic-functions

Google Analytics Cross-Domain Tracking Without Appending Cookies To URLs?

Is there a way to track two domains in Google Analytics without passing the cookie information in the URL? ...

Advanced tutorial on analytic functions in Oracle/SQLServer

Can anyone recommend a good tutorial (or book perhaps) that covers advanced topics in the use of Analytic Functions? I'm looking for something that covers both Oracle and SQLServer - or two separate guides if a single one doesn't exist. Something that offers good examples of using nontrivial functions (LAG, LEAD, GROUPING, PERCENTILE) ...

MySQL get row position in ORDER BY

With the following MySQL table: +-----------------------------+ + id INT UNSIGNED + + name VARCHAR(100) + +-----------------------------+ How can I select a single row AND it's position amongst the other rows in the table, when sorted by name ASC. So if the table data looks like this, when sorted by name: +-----...

How to make this Mysql query work?

My query: SELECT * FROM forum_topics WHERE cat_id IN(1,2,3,4,5,6,7) ORDER BY last_message DESC LIMIT 7 I want to get the biggest and only one value of each cat_id (7 values total). How to correct this query to make it work if it's even possible? There is forum topics and each has value last_message and I want to get the latest to...