Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: chandu sekhar
  Where is chandu sekhar?
 miami
 Florida - United States
 chandu sekhar
 To: Borislav Borissov
  Where is Borislav Borissov?
 Sofia
 Bulgaria
 Borislav Borissov
 Tags
Subject: RE: foxpro query
Thread ID: 233064 Message ID: 233069 # Views: 25 # Ratings: 0
Version: Visual FoxPro 9 Category: ODBC, ADO and OLEDB
Date: Monday, June 29, 2009 7:20:17 PM         
   


Hai Borislav,

Thanks for the reply.
No,I dont have any mapping table.
I have only one table with productcodes and needlecodes.
I have ran the query

SELECT distinct productcode,needlecode FROM newneedlecodes ORDER BY productcode,needlecode

which gives the distinct combination of productcode and needlecode.
I hope this gives all the respective needlecodes for a particular product sort by.
If you have any suggestions please let me know.

Regards,
Chandra


> > Hello Friends,
> >
> > I have a table that as two fields "Productcode" & "Needlecode".
> > This has many to many relationship.
> > What I means is:
> >
> > A single productcode can have lot of needlecodes.
> > A single needlecode can have lot of productcodes.
> >
> > What I need to generate is a report that should have by productcode with all respective needlecodes.
> > I have been thinking to write a query regarding that.
> > But i am not getting perfect thinking.I am totally clueless.
> > Please help me.
> > I will be so thankful to you.
> >
> > Thanks & Regards,
> > Chandra0315.
>
> Did you have some mapping table?
> If not how do you know which needle belongs to which product?
>
>
> -----------------
> Borislav Borissov
>
> Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
> The only thing normal about database guys is their tables.



COMPLETE THREAD
foxpro query Posted by chandu sekhar @ 6/29/2009 6:45:59 PM
RE: foxpro query Posted by Borislav Borissov @ 6/29/2009 7:08:31 PM
RE: foxpro query Posted by chandu sekhar @ 6/29/2009 7:20:17 PM
RE: foxpro query Posted by Borislav Borissov @ 6/29/2009 7:25:19 PM
RE: foxpro query Posted by chandu sekhar @ 6/29/2009 7:55:11 PM
RE: foxpro query Posted by Anders Altberg @ 6/29/2009 8:48:51 PM
RE: foxpro query Posted by chandu sekhar @ 6/29/2009 8:07:04 PM
RE: foxpro query Posted by Cetin Basoz @ 6/29/2009 7:29:47 PM
RE: foxpro query Posted by chandu sekhar @ 6/29/2009 7:58:13 PM
RE: foxpro query Posted by Anders Altberg @ 6/29/2009 8:10:12 PM
RE: foxpro query Posted by chandu sekhar @ 6/29/2009 8:40:33 PM
RE: foxpro query Posted by Anders Altberg @ 6/29/2009 8:52:10 PM
RE: foxpro query Posted by chandu sekhar @ 6/29/2009 9:08:24 PM
RE: foxpro query Posted by Anders Altberg @ 6/29/2009 11:00:07 PM
RE: foxpro query Posted by chandu sekhar @ 6/30/2009 4:12:31 PM
RE: foxpro query Posted by Anders Altberg @ 6/30/2009 4:41:10 PM