You are here: Re: Query Question « MsSQL Server « IT news, forums, messages
Re: Query Question

Posted by MC on 11/15/05 17:31

Something like this?

select distinct gd.GLCODE, gd.GLDESC
from
GL_CODE_DESC gd
inner join GL_SVC_CODES gs on gd.GLCODES = gs.GLCODES

I dont really understand the req about GLCODES being equal but this should
help you out....
MC


"Mike" <noway@forgetit.com> wrote in message
news:GUmef.4$rq3.0@newssvr19.news.prodigy.com...
>I have the following tables:
>
> Table Name: GL_CODE_DESC
> Field Names: GLCODE, GLDESC
>
> Table Name: GL_SVC_CODES
> Field Names: GLCODE, SVCCODE
>
> What I would like is a query that pulls the distinct rows from the table
> GL_CODE_DESC but only where the GLCODES are equal between the two tables.
>
> How would I do this?
>
> Thanks in advance!!
>
> Mike
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация