so i have this two table: 1. private_information
| account_no | name | adrress |
-----------------------------------
| 123 | andrew | alberque |
| 234 | melissa| california|
| 456 | matthew| newark |
and then the 2nd table is transaction:
| account_no | transaction_num |
----------------------------------
| 123 | 989890808 |
| 123 | 234247827 |
| 123 | 123621472 |
| 123 | 457465745 |
| 234 | 435446545 |
so i want to make this select condition:
SELECT *
From private_information a
JOIN transaction b ON a.account_no=b.account_no
WHERE ( <= 2 records in transation table)
the account number should not be more than 2 records of transaction number, so account _no = 123
should not show.