SQL> desc product1;
Name Null? Type
----------------------------------------- --------
----------------------------
PROD_ID NOT NULL NUMBER(38)
PROD_QTY NUMBER(38)
SQL> select * from product1;
PROD_ID PROD_QTY
---------- ----------
123 300
124 200
SQL> desc pmsales;
Name Null? Type
----------------------------------------- --------
----------------------------
PROD_ID NOT NULL NUMBER(38)
PMS_QTY NUMBER(38)
SQL> select * from pmsales;
PROD_ID PMS_QTY
---------- ----------
123 100
124 200
SQL> create view pmas_prod
2 as select p.prod_id,p.prod_qty,pm.pms_qty
3 from product1 p,pmsales pm
4 where p.prod_id=pm.prod_id;
View created.
SQL> update pmas_prod
2 set prod_qty=prod_qty-pms_qty;
2 rows updated.
SQL> select * from product1;
PROD_ID PROD_QTY
---------- ----------
123 200
124 0
SQL> insert into pmas_prod values(125,400,200);
insert into pmas_prod values(125,400,200)
*
ERROR at line 1:
ORA-01776: cannot modify more than one base table through a
join view
Q How can we insert into this table ?
No Answer is Posted For this Question
Be the First to Post Answer
i need R S Agrawal objective general english...can somebody provide the path to download that book/
what is the meaning of kpo
the average marks obtained by 22 candidtes is 45 the average of the first 10 is 55 while that of the last 11 is 40 the marks obtained by the candidates are
i am a college student in our place...i have a question What is the most question use in interviewing a company for making a system analysis and design proposal. give me some exmple for the open ended question and closed ended?
pivot table is use for?
SSC ? Grade ?D? Exam ENGLISH ORDERING OF SENTENCES
why want to join amex
1 Answers American Express, Amex,
SSC ? Grade ?D? Exam ENGLISH CLOSET TEST TEST ? 19
i have applied syndicate bank clerk post . what type of questions may be will ask at the time of interview .Is there prefear for bnking questions? or prefere for current affirs questions?? plese send me any one answer....thank you.
Give two activities for improving the skill of speaking.
0 Answers Mahatma Gandhi University,
how will change the sequence of firing triggers for text item in forms 6i
SSC ? Grade ?D? Exam ENGLISH CLOSET TEST TEST ? 14