Solved

SQL CUBES AND CF

Posted on 2001-06-22
3
283 Views
Last Modified: 2013-12-24
Is there a way that you can hit cubes in SQL just like you would hit views or tables?

0
Comment
Question by:cat4larry
3 Comments
 
LVL 2

Accepted Solution

by:
hammond_david earned 25 total points
ID: 6221492
A cube is just a select statement with "with cube" in the group by clause.  What you probably want to do is take your select statement and create a view or populate a table with it.  Here's an example directly from my SQL Server manual:

SELECT SUM(units_sold), model, year, color
FROM automobile_sales_detail
GROUP BY model, year, color WITH CUBE

SELECT * FROM auto_cube

Hope that helps!
- David
0
 
LVL 35

Expert Comment

by:mrichmon
ID: 10659277
No comment has been added lately, so it's time to clean up this question.
I will leave the following recommendation in the Cleanup topic area:

Accept hammond_david's comment as the answer

Please leave any comments here within the next four days.

mrichmon
EE Cleanup Volunteer
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 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

9 Experts available now in Live!

Get 1:1 Help Now