Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

/proc/kallsyms format, sqldatasource dal, wwwxxxenden, convert raid5 to raid 10 mdadm, apache force chunked, nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas

Links

XODOX
Impressum

#1: A Join query

Posted on 2008-04-17 14:58:00 by elisacarli

Hello everybody

I use Filemaker 9 pro.
I've a filemaker DB with some tables joined by relationships
I need to recover data in a way that in SQL is called "join query",
with a where clausole.

For example

Table Employee - Name, Surname, IdOrder
Table Order - idOrder, Item, Shipment, Country

SQL Statement
SELECT Name, Surname, Item, Shipment
FROM Employee INNER JOIN [Order] ON Employee.[IDOrder] = Order.
[IDOrder] WHERE Country="USA";

I need a Filemaker Format (report) in which I can see field Name,
Surname, Item, Shipment WHERE Country =USA.

How can I do?
Any suggestion?

Best regards

Report this message

#2: Re: A Join query

Posted on 2008-04-17 17:49:58 by Howard Schlossberg

elisacarli wrote:

> Table Employee - Name, Surname, IdOrder
> Table Order - idOrder, Item, Shipment, Country
>
> SQL Statement
> SELECT Name, Surname, Item, Shipment
> FROM Employee INNER JOIN [Order] ON Employee.[IDOrder] = Order.
> [IDOrder] WHERE Country="USA";
>
> I need a Filemaker Format (report) in which I can see field Name,
> Surname, Item, Shipment WHERE Country =USA.

It's not clear to me why you would have and Order ID in the Employee
table, so I'm going to assume that what you meant is that you'd have an
Employee ID each table as your match field. That being the case...

Create a relationship from Order::IDEmployee to Employee::IDEmployee.

Perform a find from a layout based on the Order table, searching just
the Order::Country field for USA.

FileMaker has relationships instead of joins. Once you have established
a relationship, you can search on any field in either of the two tables.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg
FM Professional Solutions, Inc. Los Angeles

FileMaker 8 Certified Developer
Member, FileMaker Business Alliance

Report this message

#3: Re: A Join query

Posted on 2008-04-17 21:34:51 by elisacarli

On 17 Apr, 17:49, Howard Schlossberg
<how...@nospam.fmprosolutions.com> wrote:
> elisacarli wrote:
> > Table Employee - Name, Surname, IdOrder
> > Table Order - idOrder, Item, Shipment, Country
>
> > SQL Statement
> > SELECT Name, Surname, Item, Shipment
> > FROM Employee INNER JOIN [Order] ON Employee.[IDOrder] =3D Order.
> > [IDOrder] WHERE Country=3D"USA";
>
> > I need a Filemaker Format (report) in which I can see field Name,
> > Surname, Item, Shipment WHERE Country =3DUSA.
>
> It's not clear to me why you would have and Order ID in the Employee
> table, so I'm going to assume that what you meant is that you'd have an
> Employee ID each table as your match field. =A0That being the case...
>
> Create a relationship from Order::IDEmployee to Employee::IDEmployee.
>
> Perform a find from a layout based on the Order table, searching just
> the Order::Country field for USA.
>
> FileMaker has relationships instead of joins. =A0Once you have established=

> a relationship, you can search on any field in either of the two tables.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Howard Schlossberg
> FM Professional Solutions, Inc. =A0 =A0Los Angeles
>
> FileMaker 8 Certified Developer
> Member, FileMaker Business Alliance

Thank you very much for your reply

That you described is just what I'm trying to do.
Could you give me more detailed informations on how to perfom a find
from a layout based on the Order table?
I'm new to filemaker and I would like some technical steps about this
operation.

Best regards

Report this message

#4: Re: A Join query

Posted on 2008-04-21 00:20:49 by manet

elisacarli <elisacarli@katamail.com> wrote:

> On 17 Apr, 17:49, Howard Schlossberg
> <how...@nospam.fmprosolutions.com> wrote:
> > elisacarli wrote:
> > > Table Employee - Name, Surname, IdOrder
> > > Table Order - idOrder, Item, Shipment, Country
> >
> > > SQL Statement
> > > SELECT Name, Surname, Item, Shipment
> > > FROM Employee INNER JOIN [Order] ON Employee.[IDOrder] = Order.
> > > [IDOrder] WHERE Country="USA";
> >
> > > I need a Filemaker Format (report) in which I can see field Name,
> > > Surname, Item, Shipment WHERE Country =USA.


> That you described is just what I'm trying to do.
> Could you give me more detailed informations on how to perfom a find
> from a layout based on the Order table?


make a relationship as Howard says

make a report (listing style) of table Employee with fields Name,
Surname, item, Shipment, and the field country as not printable menu,
or select boxes, or other presentation as you like.

in the search mode, write USA in the contry field, and then return.

You can print the listing.

HTH

Report this message