Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
int,primary key(branch_name));
Table created.
Table created.
Table created.
Table created.
Table created.
Table created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
SQL> insert into account values(&accno,'&branch_name',&balance);
Enter value for accno: 89402
Enter value for branch_name: southindia
Enter value for balance: 100000
old 1: insert into account values(&accno,'&branch_name',&balance)
new 1: insert into account values(89402,'southindia',100000)
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
CUSTOMER_N ACCNO
---------- ----------
vijay 65789
surya 93267
varun 59201
siddharth 78391
akshay 89402
SQL>
SQL> insert into loan values(&loan_number,'&branch_name',&amount);
Enter value for loan_number: 10
Enter value for branch_name: sbi
Enter value for amount: 500000
old 1: insert into loan values(&loan_number,'&branch_name',&amount)
new 1: insert into loan values(10,'sbi',500000)
1 row created.
1 row created.
1 row created.
1 row created.
SQL> insert into loan values(&loan_number,'&branch_name',&amount);
Enter value for loan_number: 37
Enter value for branch_name: southindia
Enter value for amount: 200000
old 1: insert into loan values(&loan_number,'&branch_name',&amount)
new 1: insert into loan values(37,'southindia',200000)
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
CUSTOMER_N LOAN_NUMBER
---------- -----------
vijay 10
surya 43
varun 12
siddharth 89
akshay 37
CUSTOMER_N
----------
varun
vijay
CUSTOMER_N
----------
akshay
SQL> delete from account where accno in (select a.accno from account a,branch b
where a.branch_name=b.branch_name and b.branch_city='erklm');
1 row deleted.