?
Solved

Optimizing DB n displaying

Posted on 2006-06-17
2
Medium Priority
?
208 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

The top devops trends for 2017 are focused on improved deployment frequency, decreased lead time for change and decreased MTTR.
If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

752 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