View Single Post
Join Date: Feb 2005
Posts: 1,181
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Solved Threads: 67
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: Many-to-one relationships

 
0
  #2
Sep 5th, 2007
  1. select
  2. g.Custid,
  3. g.Grno,
  4. g.Name,
  5. case when c.Chno = 123 then c.Chno else null end Chno,
  6. case when c.Chno = 123 then c.Chdate else null end Chdate
  7. from
  8. GrfileB g
  9. join Challan c on g.Grno = c.Grno
  10. where
  11. g.Custid = 1
  12. order by
  13. g.Grno
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote