<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>query question</title><link>https://www.infopathdev.com:443/forums/thread/4487.aspx</link><pubDate>Fri, 29 Oct 2004 09:24:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4487</guid><dc:creator>sosan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4487.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4487</wfw:commentRss><description>I have a sqlserver db and a form in infopath with some fileds from a primary table and others from a secondary table. there is a relation from the tables (pk).&lt;br /&gt;&lt;br /&gt;If I choose a criteria in the form from primary table and submit the query ut shows only the records that respond to my query.&lt;br /&gt;&lt;br /&gt;If i choose a criteria from the secondary table it shows all records from the primary with an empty row in the records that doesn't respond to my query.  How can i have a result like this:&lt;br /&gt;&lt;br /&gt;Select * from table1, table2 where table1.pk=table2.pk&lt;br /&gt;&lt;br /&gt;i want only the records where table1.pk=table2.pk&lt;br /&gt;&lt;br /&gt;Help me please...i've to write the sql code for my query?  &lt;br /&gt;&lt;br /&gt;sorry for my bad english&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>