If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > sub listing

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-20-06, 04:52
ronysamuel ronysamuel is offline
Registered User
 
Join Date: Dec 2006
Posts: 8
sub listing

can we sub list record..?

that is;

like this:

name 1-----product 1-------qty1
------------product 2-------qty2
------------product 3-------qty 3
name 2-----product 1-------qty 4
------------product 5-------qty 5

like this.. i've put lines to properly display tabs..

by which method we can do that.. can we do this using join..?

thanks in advance...
Reply With Quote
  #2 (permalink)  
Old 12-20-06, 04:59
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
It can be done, but the method depends on your tools. Some DBMSs can do this in pure SQL, but the syntax varies. More usually it is done in the reporting tool.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #3 (permalink)  
Old 12-20-06, 05:00
ronysamuel ronysamuel is offline
Registered User
 
Join Date: Dec 2006
Posts: 8
we want it in sql query.. not any additional tool.. our head told it can be done..
Reply With Quote
  #4 (permalink)  
Old 12-20-06, 06:40
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Whose SQL are you using? Oracle, Microsoft, IBM. MySQL, ...?
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On