Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
While querying 'categories' I need to also determine how many 'posts' were found in another table that relate the two. The relationship between the two is "catid" that exists inside 'posts' so I can determine where it belongs.
my $data = qq(SELECT id, catname, catdesc FROM categories WHERE 1 && +id, catid, text FROM posts); # I know I'm far off
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Counting rows from table1 while querying table2
by graff (Chancellor) on Aug 28, 2007 at 03:01 UTC | |
|
Re: Counting rows from table1 while querying table2
by moritz (Cardinal) on Aug 28, 2007 at 07:49 UTC |