[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Optimizing DB n displaying

Posted on 2006-06-17
2
Medium Priority
?
209 Views
Last Modified: 2010-04-01
hi experts,

I'hv 2 tables 'Menu' &'Sun-Menu' how can I use single stmt or one query to run both n display rs.

Menu Fields :
M-ID      MenuName
Sub-Menu Fields:
S-ID     M-ID      Sub-MenuName

I want o/t 2b:

ABC
   abc-1
   abc-2
XYZ
   xyz-1
   xyz-2
...

Thx
PH

0
Comment
Question by:princehyderabad
[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 Comments
 
LVL 4

Accepted Solution

by:
pablomorales earned 500 total points
ID: 16934863
You could use the following query to generate your menu

Select m.M-ID,m.MenuName,s.S-ID, s.Sub-MenuName from Menu m, Sub-Menu s where m.M-ID = s.M-ID order by m.M-ID, s.S-ID

You would also need an if statement to detect when the M-ID changes.


0
 

Author Comment

by:princehyderabad
ID: 16936257
Can anyone post the JSP code as well to check for M-ID changes....
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Geo-targeting is the practice of distributing content based on a person’s location, as best as you can determine it. Let’s look at some ways you could successfully use this tactic. The following tips and case studies could lead to meaningful results.
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

656 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