the Oracle command

Fundamentals of Information Systems
9th Edition
ISBN:9781337097536
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter3: Database Systems And Big Data
Section: Chapter Questions
Problem 4PSE
icon
Related questions
Question

I answered questions 1-4.
I need help with questions 5-8!

Oracle assignment on creating and maintaining a table (and also a few queries)
For all problems I want you to show me the Oracle command you wrote and the results produced.
1. Create an Oracle table with a minimum of two varchar(2) fields (one should be a persons name), a char field, a numeric field with decimal places,
2. Show me a description of the table.
3. Populate the table with data you should put in a variety of data so that it can be effectively queried.Show me one of the insert statements you used.
numeric field for a whole number and a date field
The name varchar(2) fields should contain a name in the format last name slash first name middle name or initial if any. For example:
o Doe/John M
o Jones/Mary
o Adams-Costa/Susan Ann
Langley/M Richard
4. Change two fields on a record and show me the before and after.
5. Make a change that effects more than one record (but not all)
6. Delete a record and show me the before and after
7. Alter the structure of the table by adding a column/field and populating it. Show me the results
8. Alter the structure of the table by adding characters to a varchar2 field. Show me the results.
9. Do a search and find out how to alter the structure of the table by deleting a column. Demonstrate and show me the results. Site the address where you found the explanation.
10. Do a search and find out how to alter the structure of the table by renaming a column. Demonstrate and show me the results. Site the address where you found the explanation.
11. Do a query that does a sort on two fields. Tell me which field is the primary sort and which is the secondary sort. varchar2 field. Show me the results.
12. Do a query that uses between and show me the results
13. Do a query that uses the % and the underscore or characters that are missing.
14. Do a query that looks for one thing that has to be true and either of two other things.
15. Do a query that does a calculation for the results where you add two things together and divide by something.
16. Do a query where you test for null or something else.
17. Do a query that uses NOT and explain what you tried to accomplish.
18. Do a query where you convert to upper or lower case to test.
19. Do a query that uses the substr.
20. Do a query that uses the instr function
21. Show me a list of tables (generated in Oracle) of the tables you have created.
22. Backup one of your tables. Show me the instruction you executed and show me the list of tables including the backup.
Transcribed Image Text:Oracle assignment on creating and maintaining a table (and also a few queries) For all problems I want you to show me the Oracle command you wrote and the results produced. 1. Create an Oracle table with a minimum of two varchar(2) fields (one should be a persons name), a char field, a numeric field with decimal places, 2. Show me a description of the table. 3. Populate the table with data you should put in a variety of data so that it can be effectively queried.Show me one of the insert statements you used. numeric field for a whole number and a date field The name varchar(2) fields should contain a name in the format last name slash first name middle name or initial if any. For example: o Doe/John M o Jones/Mary o Adams-Costa/Susan Ann Langley/M Richard 4. Change two fields on a record and show me the before and after. 5. Make a change that effects more than one record (but not all) 6. Delete a record and show me the before and after 7. Alter the structure of the table by adding a column/field and populating it. Show me the results 8. Alter the structure of the table by adding characters to a varchar2 field. Show me the results. 9. Do a search and find out how to alter the structure of the table by deleting a column. Demonstrate and show me the results. Site the address where you found the explanation. 10. Do a search and find out how to alter the structure of the table by renaming a column. Demonstrate and show me the results. Site the address where you found the explanation. 11. Do a query that does a sort on two fields. Tell me which field is the primary sort and which is the secondary sort. varchar2 field. Show me the results. 12. Do a query that uses between and show me the results 13. Do a query that uses the % and the underscore or characters that are missing. 14. Do a query that looks for one thing that has to be true and either of two other things. 15. Do a query that does a calculation for the results where you add two things together and divide by something. 16. Do a query where you test for null or something else. 17. Do a query that uses NOT and explain what you tried to accomplish. 18. Do a query where you convert to upper or lower case to test. 19. Do a query that uses the substr. 20. Do a query that uses the instr function 21. Show me a list of tables (generated in Oracle) of the tables you have created. 22. Backup one of your tables. Show me the instruction you executed and show me the list of tables including the backup.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781337097536
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning