How to query one coloumn of a Datasource twice? (SQL-Server) - InfoPath Dev
in

InfoPath Dev

How to query one coloumn of a Datasource twice? (SQL-Server)

Last post 09-30-2008 07:52 AM by 123basti321. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-30-2008 05:45 AM

    How to query one coloumn of a Datasource twice? (SQL-Server)

    Hallo @all,

    I want to do a query and i got a colloum called years. Now I want my repeating table to show all entries with 2008 or 2009. How could I manage to do so??(Excuse my bad English). What do I need to enter in the QueryField for the years coloumn?

    Thanks a lot and I hope you do understand what I mean.

     

    Greetings Basti

  • 09-30-2008 06:45 AM In reply to

    Re: How to query one coloumn of a Datasource twice? (SQL-Server)

    Hi,

    In the Data Connections go to "Edit SQL" and give the following query:

    select "year" from "dbo"."TableName" as "TableName" where "year" in (2008,2009).

  • 09-30-2008 07:52 AM In reply to

    Re: How to query one coloumn of a Datasource twice? (SQL-Server)

    Thanks! Well, now I get all out of the years 2008 and 2009 but cant filter anymore. (Well, exactly what the SQL-Query does do!)

     

    Any other solutions?

     

    Greeting

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.