To understand how to insert new rows into a table make them permanently stored (COMMIT statement)....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
To understand how to insert new rows into a table make them permanently stored (COMMIT statement). To Drop a table, run a script file (using the START sql"plus command) and check table content using SELECT. Activity Outcomes Students will be able to insert rows and save them permanently, Delete rows from a tables, Commit Rollback a transaction and execute a script file containing SQL DDL-commands. Instructor Note Implement the question in the Exercise at the end of the Lab and submit the echo (Le, result displayed by Oracle after each execution). 1) Add the following department to the DEP Table: DEPTNO = 'ch and DNAME = 'Chemistry 2) Add the following COURSE: (301, Chemistry I'. 'CM', 40). 3) Try to add the COURSE: (101, "Introduction to DOS', 'CP', 30). Discuss the result. 4) Try to add the COURSE: (101, Introduction to DOS', 'CP', 30). Discuss the result. 5) How many rows are inserted correctly into each of the COURSE and DEP tables? 6) Execute the following SQL Query: SELECT FROM DEP; How many rows you get?.. 7) Execute the following SQL Query: SELECT FROM COURSE; How many rows you get? 8) Right now, do the rows are permanently inserted into the tables? Discuss. 9) ROLLBACK the transaction. What is happened? 10) If the rows are not permanently inserted, execute a statement to save the inserted rows. To understand how to insert new rows into a table make them permanently stored (COMMIT statement). To Drop a table, run a script file (using the START sql"plus command) and check table content using SELECT. Activity Outcomes Students will be able to insert rows and save them permanently, Delete rows from a tables, Commit/ Rollback a transaction and execute a script file containing SQL DDL-commands. Instructor Note Implement the question in the Exercise at the end of the Lab and submit the echo (Le, result displayed by Oracle after each execution). 1) Add the following department to the DEP Table: DEPTNO = 'ch and DNAME = 'Chemistry 2) Add the following COURSE: (301, Chemistry I'. 'CM', 40). 3) Try to add the COURSE: (101, Introduction to DOS', 'CP', 30). Discuss the result. 4) Try to add the COURSE: (101, Introduction to DOS', 'CP', 30). Discuss the result. 5) How many rows are inserted correctly into each of the COURSE and DEP tables? 6) Execute the following SQL Query: SELECT FROM DEP; How many rows you get?.. 7) Execute the following SQL Query: SELECT FROM COURSE; How many rows you get? 8) Right now, do the rows are permanently inserted into the tables? Discuss. 9) ROLLBACK the transaction. What is happened? 10) If the rows are not permanently inserted, execute a statement to save the inserted rows. To understand how to insert new rows into a table make them permanently stored (COMMIT statement). To Drop a table, run a script file (using the START sql"plus command) and check table content using SELECT. Activity Outcomes Students will be able to insert rows and save them permanently, Delete rows from a tables, Commit Rollback a transaction and execute a script file containing SQL DDL-commands. Instructor Note Implement the question in the Exercise at the end of the Lab and submit the echo (Le, result displayed by Oracle after each execution). 1) Add the following department to the DEP Table: DEPTNO = 'ch and DNAME = 'Chemistry 2) Add the following COURSE: (301, Chemistry I'. 'CM', 40). 3) Try to add the COURSE: (101, "Introduction to DOS', 'CP', 30). Discuss the result. 4) Try to add the COURSE: (101, Introduction to DOS', 'CP', 30). Discuss the result. 5) How many rows are inserted correctly into each of the COURSE and DEP tables? 6) Execute the following SQL Query: SELECT FROM DEP; How many rows you get?.. 7) Execute the following SQL Query: SELECT FROM COURSE; How many rows you get? 8) Right now, do the rows are permanently inserted into the tables? Discuss. 9) ROLLBACK the transaction. What is happened? 10) If the rows are not permanently inserted, execute a statement to save the inserted rows. To understand how to insert new rows into a table make them permanently stored (COMMIT statement). To Drop a table, run a script file (using the START sql"plus command) and check table content using SELECT. Activity Outcomes Students will be able to insert rows and save them permanently, Delete rows from a tables, Commit/ Rollback a transaction and execute a script file containing SQL DDL-commands. Instructor Note Implement the question in the Exercise at the end of the Lab and submit the echo (Le, result displayed by Oracle after each execution). 1) Add the following department to the DEP Table: DEPTNO = 'ch and DNAME = 'Chemistry 2) Add the following COURSE: (301, Chemistry I'. 'CM', 40). 3) Try to add the COURSE: (101, Introduction to DOS', 'CP', 30). Discuss the result. 4) Try to add the COURSE: (101, Introduction to DOS', 'CP', 30). Discuss the result. 5) How many rows are inserted correctly into each of the COURSE and DEP tables? 6) Execute the following SQL Query: SELECT FROM DEP; How many rows you get?.. 7) Execute the following SQL Query: SELECT FROM COURSE; How many rows you get? 8) Right now, do the rows are permanently inserted into the tables? Discuss. 9) ROLLBACK the transaction. What is happened? 10) If the rows are not permanently inserted, execute a statement to save the inserted rows.
Expert Answer:
Answer rating: 100% (QA)
SQL Data Manipulation Language DML operations are a subset of SQL Structured Query Language that focuses on interacting with and manipulating data stored in a relational database DML operations are re... View the full answer
Related Book For
Data Modeling and Database Design
ISBN: 978-1285085258
2nd edition
Authors: Narayan S. Umanath, Richard W. Scammel
Posted Date:
Students also viewed these databases questions
-
What is Amazon's diversity statement?
-
Employers must pay employees for a 3 0 minute lunch break?
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Suppose you are a depositor at First Street Bank. You hear a rumor that the bank has suffered serious losses on its loans. Every depositor knows that the rumor isnt true, but each thinks that most...
-
1. The final simplex tableau for the linear programming problem of Exercise 1 is as follows. Give the solution to the problem and to its dual. 2. The final simplex tableau for the dual of the linear...
-
Since change in the workplace is constant, a good leader knows how to implement and lead effective change. Describe how people at those three levels in the organization initiated or responded to the...
-
A diffuser is a contrivance that (a) Increases the pressure of a fluid by decreasing its velocity (b) Converts pressure energy to kinetic energy (c) Decreases the pressure of a fluid by increasing...
-
The ledger of Sagovic Rental Agency on March 31 of the current year includes the selected accounts on page 206 before adjusting entries have been prepared. An analysis of the accounts shows the...
-
Calculate the following: 27 b. Store these two matrices: 946 - 10 20 30 40 [50 60] [3] A 2 B=4 [8] Which of the following multiplications are possible? For those that are, compute the result. i. A-B...
-
Goldie and Kurt want advice from your financial advising firm. They have provided the following information. They graduated from university four years ago and they have good jobs, but neither of them...
-
Question 10 Write a program that will show the following pattern. The user will input the number of lines that will print. As an example, if the user inputs 4 the output will be the following. AA...
-
The following are the duration times (minutes) of all missions flown by the space shuttle Challenger. 1 7224 8709 8784 10,060 10,089 10,125 11,445 11,476 11,844 Use the given data to construct a...
-
The following are amounts of time (minutes) spent on hygiene and grooming in the morning by survey respondents based on data from an SCA survey. 4 6 7 9 14 15 15 16 18 18 25 26 30 32 41 45 55 63 Use...
-
International Reporting Case Walgreens (USA) is the leading drug store chain in the United States. The company provided the following disclosures related to its retirement benefits in its 2013 annual...
-
Listed below are SAT scores from a sample of students (based on data from www.talk.collegeconfidential.com). Why is it that a graph of these data will not be very effective in helping us understand...
-
Graph the returns for residential and commercial on a time series. Does there appear to exist a lead/lag relationship? If so, by how many months? Is the relationship statistically significant?
-
What is the output of the program given below? #include int main() { enum status { pass, fail, atkt}; enum status stud1, stud2, stud3; stud1 = pass; stud2 = atkt; stud3 = fail; printf("%d, %d, %d",...
-
Banner Company acquires an 80% interest in Roller Company for $640,000 cash on January 1, 2013. The NCI has a fair value of $160,000. Any excess of cost over book value is attributed to goodwill. To...
-
Explain functional dependency between two attributes.
-
Display the sum along with a three month moving average of the production of milk across the regions of the 2006-2010 period starting with January, 2006 and ending in December, 2010?
-
What is a unique identifier of an entity type? Is it possible for there to be more than one unique identifier for an entity type?
-
Determine the differential equations governing the motion of the system by using the equivalent systems method. Use the generalized coordinates shown in Figures P2.52. k FIGURE P 2.52 E x 2k www
-
Determine the differential equations governing the motion of the system by using the equivalent systems method. Use the generalized coordinates shown in Figures P2.53. 2r k ww T m FIGURE P 2.53
-
Determine the differential equations governing the motion of the system by using the equivalent systems method. Use the generalized coordinates shown in Figures P2.54. 3L - C Slender bar of mass m...
Study smarter with the SolutionInn App