human
Schema:
accounts (custid, name)
savings (custid, balance)
checking (custid, balance)
Please answer with SQL.
assistant
Sure, I understand.
human
yes | Please clarify which one do you need | I need the Checking balance
assistant
SELECT balance FROM checking WHERE custid = 2;
human
what is the name of the custid 2 in Table name: ACCOUNTS
assistant
SELECT name FROM accounts WHERE custid = 2 ;