qwerty` Posted June 16, 2004 Share Posted June 16, 2004 i have 2 tables, tableA (aID, Name) and tableB (aID, bID, status). aID in tableB reference to the one in tableA. i have a layout based on tableA. On that layout, i want to diplay the total number of records that each ID has in tableB which has a status of "Approved". If using SQL, it will be: Select Count(bID) FROM tableA a, tableB b WHERE a.aID = b.aID AND b.status = "Approved" AND a.aID = 1 but how do i go about doing this without using SQL? Link to comment Share on other sites More sharing options...
dbruggmann Posted June 16, 2004 Share Posted June 16, 2004 I'm not sure, if it is the most efficient way, but I would do the following: 1) Create in table A a new global field Link to comment Share on other sites More sharing options...
qwerty` Posted June 16, 2004 Author Share Posted June 16, 2004 that seems to work.. thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7254 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now