SQL Database urgent question
User Generated
qnavny16
Programming
Description
ID | NAME | ADDRESS | P_CODE | RATING |
123 | Brown, | 1 Victoria | G2 2RB | 1 |
456 | Smith, Mark | 100 Oxford | M18 2RX | 2 |
789 | Black, | 37 High St. | CV1 5KA | 3 |
Another table represents the customer orders with attributes: ORDER_NO, DATE, CUST_ID,
STOCK_ID, QUANTITY.
Identify the primary key and foreign key relationships to the customer
table.
The primary key should be ID? And what will be the foreign key and why?
Thanks.
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
This question has not been answered.
Create a free account to get help with this and any other question!
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Most Popular Content
IT 140 Southern New Hampshire University Pattern Search Python Project
Project 4 Draft: Pattern SearchIntroductionYour task for this project is to use regular expressions to discover and modify ...
IT 140 Southern New Hampshire University Pattern Search Python Project
Project 4 Draft: Pattern SearchIntroductionYour task for this project is to use regular expressions to discover and modify information from the provided test.The project is broken into two sections:Determine the number of non alpha numeric characters in the lorem_ipsum string.Replace all instances of dash (-) or a colon (:) with a space in the words ‘sit’ and ‘amet’.Find and print the number of non-alphanumeric characters.Find and print the number of non-alphanumeric characters.The first thing to do when doing a pattern search is to import the module re which provides full support for regular expressions in Python. This has already been provided in the code to the left.Provided for you on the left is the lorem_ipsum string. lorem_ipsum is the string you will be using to change as you go through the programming activities in this course unit.Find all of the instances of non alphanumeric characters in the string assigned to lorem_ipsum.Use the ^ and [] regular expression operator along with the findall() regular expression function.Assign the outcome to a variable named results.Output to the console, the number of non-alphanumeric characters. Hint: use the len function.Hint: use the len function.Output144Find and print the number of 'sit' and 'amet' separated with punctuation marksUsing the re.findall() function, get all of the instances of 'sit-amet' or 'sit:amet' characters in the string assigned to lorem_ipsum.Assign the outcome to a variable named occurrences_sit_ametOutput to the console, the number of sit-amet or sit:amet occurrences.Hint: use the len function.Output3Replace 'sit' and 'amet' words separated with punctuation marks with 'sit amet'Replace sit:amet and sit-amet with sit amet using the re.sub() function.Assign the outcome to a variable named replace_resultsFind and print all the instances of 'sit amet'Using the re.findall() function, get all of the instances of 'sit amet'in the string assigned to replace_results.Assign the outcome to a variable named occurrence_sit_amet.Output to the console, the number of sit amet occurrences.Hint: use the len function.Output3import re#Paragraph provided for search and replacelorem_ipsum = '''Lorem ipsum dolor sit-amet, consectetur adipiscing elit. Phasellus iaculis velit ac nunc interdum tempor. Ut volutpat elit metus, vel auctor enim commodo at. Nunc quis quam non ligula ultricies luctus porta id justo. Quisque dapibus est ut sagittis bibendum. Mauris ullamcorper pellentesque porttitor. Ut sit:amet ex nec dolor gravida porttitor. Proin at justo finibus justo vestibulum congue. Suspendisse et ipsum et ipsum eleifend dapibus a fermentum lacus. Vivamus porta nunc eu nisl sagittis, quis vulputate metus dignissim. Integer non fermentum nisl, id vestibulum elit. Sed euismod vestibulum purus ut porttitor. Integer sit-amet mollis neque. Donec sed lacinia diam, ac finibus lectus. Mauris tempor ipsum nisl, vitae posuere est lacinia nec. Nam eget euismod odio.'''#Place all the code from the previous steps hereLastly, a small assignment reflecting on the project:Reflection - Applying Your Experience
Making mistakes when you learn to write code is common. It is part of learning. What is important is developing the skill of learning how to understand
your errors and then fix them (debugging). For this part of your final project, you will respond to the following:
a) Reflecting on your experience with this activity, explain the importance of knowing how and when to use a search using literal characters, for
sequences and ranges, and for special characters and wildcards. Support your response with examples from the activity of the types of errors and
your method for fixing them.
Using MYSQL for Database Design and development.
TasksYou will need to start by creating an ER model, including both Entity Classes and attributes. This is to be done in M ...
Using MYSQL for Database Design and development.
TasksYou will need to start by creating an ER model, including both Entity Classes and attributes. This is to be done in MySQL Workbench.Then, using both MySQL Workbench and MySQL Server, create a schema called ABC_YourLastName. In this schema, create all the necessary tables, columns, and relationships to meet the following requirements:
Track raw materials with various options including color and size.
Set minimum inventory levels that will trigger the ordering of replacement material.
Raw materials should be able to be assigned to multiple finished goods.
Material orders will need to be tracked for when orders are placed, received, and used so that trending data can be used.
At times a raw material will be replaced with a new product. The new product will need to be tracked to the product it replaced.
To submit your database to the Submissions Area, you must export the schema to a file. To perform an export, complete the following steps from the MySQL Workbench Home tab:
Click Manage Import/Export under the Server Administration column.
Make sure Data Export is highlighted on the Task and Object Browser.
Check the box next to ABC_YourLastName in the left dialog box.
Under Options, select the Export to Self-Contained File radio button and note the file path.
Change the name of the file from the default to SU_ITS2110_W5_A2_LastName_FirstInitial.sql.
Click Start Export.
When the export is complete, you will need to upload the file into the Submissions Area with the rest of the assignment.
Lastly, you will need to populate the tables using SQL scripts. You will also need to produce the SQL scripts to provide the raw material reorder data. Save your SQL scripts in a Microsoft Word document as you will need to submit them.In addition, in a 2- to 3-page Microsoft Word document, create a report that includes the following information:
Describe your database.
Explain what tables, columns, keys, and so on will be seen in the schema.
Explain how you created the database and how your work applies to the requirements.
Include information that a DBA may need to know about your design.
Include screenshots of your work.
Cite any sources in APA format.Submission DetailsName your ER diagram file SU_ITS2110_W5_A2_LastName_FirstInitial.mwb.Name your exported database file SU_ITS2110_W5_A2_LastName_FirstInitial.sql.Name your SQL scripts SU_ITS2110_W5_A2_LastName_FirstInitial_SQL_Scripts.docName your report SU_ITS2110_W5_A2_LastName_FirstInitial_Report.doc. My name last name is Portwood and first initial is B. If you could please provide the documents so that all I need to do is post that would be great!
INT 1700 Prince Georges Community College Processor Management Questions
Understanding Operating Systems (Zero-cost course material)
Unit 4 Lab Assignment 4: Processor Management (30 ...
INT 1700 Prince Georges Community College Processor Management Questions
Understanding Operating Systems (Zero-cost course material)
Unit 4 Lab Assignment 4: Processor Management (30 points)
In this assignment, you will learn to collect information about and send commands to your OS’s processor manager. For each of the two questions, do the following:
1. Create a document (use Microsoft word or any equivalent tool such as LibreOffice) and name it appropriately to reflect the assignment type, number, and your name.
2. Answer the following questions (if any) in the document you created and justify your answers. To do this, you may need to perform some tasks on your computer, use a snipping or “print screen” tool to take screenshots, and paste the illustrations/pictures into the document. Showing screenshots only does not constitute answering a question. You need to provide both the answer to the question and the screenshots.
3. Save and upload the document to the learning management system (Blackboard). Upload the two documents at once.
Do not forget to show visual evidence (screenshots) of the main actions you took to answer the questions.
Question 1: Windows Virtual Memory (15 points)
The /proc file system is a mechanism provided by Linux for the kernel to report information about the system and processes to users. The /proc file system is nicely documented in the proc man page. You can access this document by running the command man proc on a Linux system. Understand the system-wide proc files such as meminfo and cpuinfo, and per-process files such as status, stat, limits, maps and so on. Now answer the following questions using the /proc filesystem.
1. Run command more /proc/cpuinfo and explain the following terms: processor and cores. [Hint: Use lscpu to verify your definitions.]
2. How many cores does your machine have?
3. How many processors does your machine have?
4. What is the frequency of each processor?
5. How much physical memory does your system have?
6. How much of this memory is free?
7. How many context switches has the system performed since bootup? [Hint: use vmstat]
Do not forget to show visual evidence of the main actions you took to answer the questions.
Question 2: Linux Virtual Memory (15 points)
You may perform the tasks in this question on any Linux system. You may find help in [1].
1. Install and run the utility htop on your Linux OS using the CLI. Answer the following questions:
a. How much swap memory do you have? how much of it is being used by your OS?
b. For how long has your system been up?
c. How do you kill a process in htop? Kill a random process and see if it will have an effect on your OS.
2. Start the text editing program of your choice (e.g., gedit)
a. What is the PID of the editing process? [hint: Use the psutility (module 4-1) and “| grep”]
b. Kill the text editing process. What command did you use?
c. Issue the “pstree” command. What is the first process that your OS started? What happens if you kill that process?
Do not forget to show visual evidence of the main actions you took to answer the questions.
Reference: [1]https://linuxtogether.org/htop-command-explanation...
ENTD 261 American Military University Week Six SQL Script
Note : This assignment much follow all the instruction as per professor Assignment InstructionsCreate the following SQL sc ...
ENTD 261 American Military University Week Six SQL Script
Note : This assignment much follow all the instruction as per professor Assignment InstructionsCreate the following SQL script (Save as w6_firstname_lastname.sql) .Create a simple Database and do the following1) Create a table using SQL script with 5 fields2)Create insert script(10 inserts)3)Create update script(10 updates)4)Create the following:-a)Selectall recordsb)Selectall records sorted descending , ascendingc)Selectall records with condition (where)d)Count all recordse)Countall record with condition5) Create 3 delete scriptsSubmit your week 6 work in w6_firstname_lastname.txt (Please save the file as a text file of your scripts and upload the text file here for final review.)
Similar Content
University of Fisk CSS and HTML Code Website Development Task
Website development questions, mainly CSS and HTML,...
Website Development
Unit II Article CritiqueFor this assignment find an article on website development. The article must be published after 20...
CMPSC206 SXU Javascript Programming Average Of Even And Odd Numbers
jCreate a web page that allows the user to enter as many numbers as desired and separates them into even and odd. Then fin...
MAR 3721 Traveling Abroad Blog
For this assignment, students can blog on the topic of their choosing. To submit this assignment, please share a link to y...
Rectifier Design amb Matlab Questions
...
UMGC Genetic Algorithm
import java.util.*;
public class GeneticAlgorithmExample {
// parameters to algorithm
final static int genesPerIndividual...
Capital Budgeting And Payback Method
Question: Define capital budgeting and what is payback method in capital budgeting? As the business grows and expands, man...
Oop Vs. Edp
Object-oriented programming (OOP) is a language model used programming that deals with objects and data instead of focusin...
Screenshot
...
Related Tags
Book Guides
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
IT 140 Southern New Hampshire University Pattern Search Python Project
Project 4 Draft: Pattern SearchIntroductionYour task for this project is to use regular expressions to discover and modify ...
IT 140 Southern New Hampshire University Pattern Search Python Project
Project 4 Draft: Pattern SearchIntroductionYour task for this project is to use regular expressions to discover and modify information from the provided test.The project is broken into two sections:Determine the number of non alpha numeric characters in the lorem_ipsum string.Replace all instances of dash (-) or a colon (:) with a space in the words ‘sit’ and ‘amet’.Find and print the number of non-alphanumeric characters.Find and print the number of non-alphanumeric characters.The first thing to do when doing a pattern search is to import the module re which provides full support for regular expressions in Python. This has already been provided in the code to the left.Provided for you on the left is the lorem_ipsum string. lorem_ipsum is the string you will be using to change as you go through the programming activities in this course unit.Find all of the instances of non alphanumeric characters in the string assigned to lorem_ipsum.Use the ^ and [] regular expression operator along with the findall() regular expression function.Assign the outcome to a variable named results.Output to the console, the number of non-alphanumeric characters. Hint: use the len function.Hint: use the len function.Output144Find and print the number of 'sit' and 'amet' separated with punctuation marksUsing the re.findall() function, get all of the instances of 'sit-amet' or 'sit:amet' characters in the string assigned to lorem_ipsum.Assign the outcome to a variable named occurrences_sit_ametOutput to the console, the number of sit-amet or sit:amet occurrences.Hint: use the len function.Output3Replace 'sit' and 'amet' words separated with punctuation marks with 'sit amet'Replace sit:amet and sit-amet with sit amet using the re.sub() function.Assign the outcome to a variable named replace_resultsFind and print all the instances of 'sit amet'Using the re.findall() function, get all of the instances of 'sit amet'in the string assigned to replace_results.Assign the outcome to a variable named occurrence_sit_amet.Output to the console, the number of sit amet occurrences.Hint: use the len function.Output3import re#Paragraph provided for search and replacelorem_ipsum = '''Lorem ipsum dolor sit-amet, consectetur adipiscing elit. Phasellus iaculis velit ac nunc interdum tempor. Ut volutpat elit metus, vel auctor enim commodo at. Nunc quis quam non ligula ultricies luctus porta id justo. Quisque dapibus est ut sagittis bibendum. Mauris ullamcorper pellentesque porttitor. Ut sit:amet ex nec dolor gravida porttitor. Proin at justo finibus justo vestibulum congue. Suspendisse et ipsum et ipsum eleifend dapibus a fermentum lacus. Vivamus porta nunc eu nisl sagittis, quis vulputate metus dignissim. Integer non fermentum nisl, id vestibulum elit. Sed euismod vestibulum purus ut porttitor. Integer sit-amet mollis neque. Donec sed lacinia diam, ac finibus lectus. Mauris tempor ipsum nisl, vitae posuere est lacinia nec. Nam eget euismod odio.'''#Place all the code from the previous steps hereLastly, a small assignment reflecting on the project:Reflection - Applying Your Experience
Making mistakes when you learn to write code is common. It is part of learning. What is important is developing the skill of learning how to understand
your errors and then fix them (debugging). For this part of your final project, you will respond to the following:
a) Reflecting on your experience with this activity, explain the importance of knowing how and when to use a search using literal characters, for
sequences and ranges, and for special characters and wildcards. Support your response with examples from the activity of the types of errors and
your method for fixing them.
Using MYSQL for Database Design and development.
TasksYou will need to start by creating an ER model, including both Entity Classes and attributes. This is to be done in M ...
Using MYSQL for Database Design and development.
TasksYou will need to start by creating an ER model, including both Entity Classes and attributes. This is to be done in MySQL Workbench.Then, using both MySQL Workbench and MySQL Server, create a schema called ABC_YourLastName. In this schema, create all the necessary tables, columns, and relationships to meet the following requirements:
Track raw materials with various options including color and size.
Set minimum inventory levels that will trigger the ordering of replacement material.
Raw materials should be able to be assigned to multiple finished goods.
Material orders will need to be tracked for when orders are placed, received, and used so that trending data can be used.
At times a raw material will be replaced with a new product. The new product will need to be tracked to the product it replaced.
To submit your database to the Submissions Area, you must export the schema to a file. To perform an export, complete the following steps from the MySQL Workbench Home tab:
Click Manage Import/Export under the Server Administration column.
Make sure Data Export is highlighted on the Task and Object Browser.
Check the box next to ABC_YourLastName in the left dialog box.
Under Options, select the Export to Self-Contained File radio button and note the file path.
Change the name of the file from the default to SU_ITS2110_W5_A2_LastName_FirstInitial.sql.
Click Start Export.
When the export is complete, you will need to upload the file into the Submissions Area with the rest of the assignment.
Lastly, you will need to populate the tables using SQL scripts. You will also need to produce the SQL scripts to provide the raw material reorder data. Save your SQL scripts in a Microsoft Word document as you will need to submit them.In addition, in a 2- to 3-page Microsoft Word document, create a report that includes the following information:
Describe your database.
Explain what tables, columns, keys, and so on will be seen in the schema.
Explain how you created the database and how your work applies to the requirements.
Include information that a DBA may need to know about your design.
Include screenshots of your work.
Cite any sources in APA format.Submission DetailsName your ER diagram file SU_ITS2110_W5_A2_LastName_FirstInitial.mwb.Name your exported database file SU_ITS2110_W5_A2_LastName_FirstInitial.sql.Name your SQL scripts SU_ITS2110_W5_A2_LastName_FirstInitial_SQL_Scripts.docName your report SU_ITS2110_W5_A2_LastName_FirstInitial_Report.doc. My name last name is Portwood and first initial is B. If you could please provide the documents so that all I need to do is post that would be great!
INT 1700 Prince Georges Community College Processor Management Questions
Understanding Operating Systems (Zero-cost course material)
Unit 4 Lab Assignment 4: Processor Management (30 ...
INT 1700 Prince Georges Community College Processor Management Questions
Understanding Operating Systems (Zero-cost course material)
Unit 4 Lab Assignment 4: Processor Management (30 points)
In this assignment, you will learn to collect information about and send commands to your OS’s processor manager. For each of the two questions, do the following:
1. Create a document (use Microsoft word or any equivalent tool such as LibreOffice) and name it appropriately to reflect the assignment type, number, and your name.
2. Answer the following questions (if any) in the document you created and justify your answers. To do this, you may need to perform some tasks on your computer, use a snipping or “print screen” tool to take screenshots, and paste the illustrations/pictures into the document. Showing screenshots only does not constitute answering a question. You need to provide both the answer to the question and the screenshots.
3. Save and upload the document to the learning management system (Blackboard). Upload the two documents at once.
Do not forget to show visual evidence (screenshots) of the main actions you took to answer the questions.
Question 1: Windows Virtual Memory (15 points)
The /proc file system is a mechanism provided by Linux for the kernel to report information about the system and processes to users. The /proc file system is nicely documented in the proc man page. You can access this document by running the command man proc on a Linux system. Understand the system-wide proc files such as meminfo and cpuinfo, and per-process files such as status, stat, limits, maps and so on. Now answer the following questions using the /proc filesystem.
1. Run command more /proc/cpuinfo and explain the following terms: processor and cores. [Hint: Use lscpu to verify your definitions.]
2. How many cores does your machine have?
3. How many processors does your machine have?
4. What is the frequency of each processor?
5. How much physical memory does your system have?
6. How much of this memory is free?
7. How many context switches has the system performed since bootup? [Hint: use vmstat]
Do not forget to show visual evidence of the main actions you took to answer the questions.
Question 2: Linux Virtual Memory (15 points)
You may perform the tasks in this question on any Linux system. You may find help in [1].
1. Install and run the utility htop on your Linux OS using the CLI. Answer the following questions:
a. How much swap memory do you have? how much of it is being used by your OS?
b. For how long has your system been up?
c. How do you kill a process in htop? Kill a random process and see if it will have an effect on your OS.
2. Start the text editing program of your choice (e.g., gedit)
a. What is the PID of the editing process? [hint: Use the psutility (module 4-1) and “| grep”]
b. Kill the text editing process. What command did you use?
c. Issue the “pstree” command. What is the first process that your OS started? What happens if you kill that process?
Do not forget to show visual evidence of the main actions you took to answer the questions.
Reference: [1]https://linuxtogether.org/htop-command-explanation...
ENTD 261 American Military University Week Six SQL Script
Note : This assignment much follow all the instruction as per professor Assignment InstructionsCreate the following SQL sc ...
ENTD 261 American Military University Week Six SQL Script
Note : This assignment much follow all the instruction as per professor Assignment InstructionsCreate the following SQL script (Save as w6_firstname_lastname.sql) .Create a simple Database and do the following1) Create a table using SQL script with 5 fields2)Create insert script(10 inserts)3)Create update script(10 updates)4)Create the following:-a)Selectall recordsb)Selectall records sorted descending , ascendingc)Selectall records with condition (where)d)Count all recordse)Countall record with condition5) Create 3 delete scriptsSubmit your week 6 work in w6_firstname_lastname.txt (Please save the file as a text file of your scripts and upload the text file here for final review.)
Earn money selling
your Study Documents