Jump to content
Server Maintenance This Week. ×

Counting records


This topic is 7254 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.