adspace
Code the tables statement to produce a multi-level frequency?
Answer Posted / Amit Kumar Chaurasia
To create a multi-level frequency in SQL, you can use multiple self-joins or common table expressions (CTEs). Here's an example using CTEs for a simple multi-level frequency over two categories:
WITH
categories AS (
SELECT category1, COUNT(*) AS freq1
FROM your_table
GROUP BY category1
),
subcategories AS (
SELECT category1, category2, COUNT(*) AS freq2
FROM categories JOIN your_table ON your_table.category1 = categories.category1
GROUP BY category1, category2
)
SELECT * FROM subcategories;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
does anyone "QlikView" BI tool. if you have any docs send me pls. yaparas84@gmail.com
What is the purpose of Dataware Control?
Hi, If any hav Informatica n DWH FAQ's,Plz do fwd to s.rajanikanth1980@gmail.com Thnx Vani
Explain have you ever been in a real dilemma at work? What did you do to get out of it?
Explain how to generate iqd file from framework manager?