Question

In: Computer Science

What are CRUD method types and why are they important? Identify CRUD method types and discuss...

What are CRUD method types and why are they important? Identify CRUD method types and discuss their applications in a real-life scenario. Be sure to include at least one example for each method type.

Solutions

Expert Solution

ANSWER:

CRUD is an acronym that comes from the world of computer programming and refers to four methods that are considered necessary to implement a persistent storage application: create, read, update, and delete.

The CRUD defines all the basic functionality inherent in relational databases and the applications used to manage them, including Oracle Database, Microsoft SQL Server, MySQL and others.

CRUD method types-

1) Create
The create function allows users to create a new record in the database. In a relational SQL database application, the Create function is called INSERT. In Oracle HCM Cloud, this is called create. Remember that a record is a row and columns are called attributes. The user can create a new row and populate it with data corresponding to each attribute, but only the administrator can add new attributes to the table itself.

2) Read
The read function is similar to the search function. This allows users to search and retrieve specific records in a table and read their values. Users can find the records they want using keywords or by filtering data based on customized criteria. For example, a car database might allow users to enter "1996 Toyota Corolla" or it might provide options to filter search results by make, model, and year.

3) Update

The update function is used to modify existing records in the database. To completely change a record, users may need to change information in several fields. For example, a restaurant that stores recipes for menu items in a database might have a table whose attributes are dish, cooking time, cost, and price. One day the chef decides to replace an ingredient in a dish with something else. As a result, you need to modify the existing record in the database and change all the attribute values ​​to reflect the characteristics of the new dish. In both SQL and Oracle HCM Cloud, the update function is simply referred to as Update.

4) Delete

The delete function allows users to delete records from the database that are no longer needed. Both SQL and Oracle HCM Cloud have a delete feature that allows users to delete one or more records from the database. Some relational database applications may allow users to perform hard or soft deletes. A hard delete will permanently delete records from the database, while a soft delete can simply update the status of a row to indicate that it has been deleted, leaving the data unchanged.

Real life example:

When a new employee is hired, someone new is added to the payroll, or the company acquires a new location, the HR department creates a record to reflect the change. If a business needs to send an email to one or more employees, you can use the Read function to find the correct mailing address for the employee. If an employee's salary or contact information changes, HR may need to update the existing record to reflect the change.

If an employee leaves the company, the company can choose to softly or hard delete their information in the database. In this case, soft deletion may be appropriate because the organization wishes to preserve the person's data without cluttering up future searches or filtered results.

If you are satisfied by my answer please give a thumbs up. THANK YOU.


Related Solutions

Discuss Rumelt’s evaluation method. Identify each of the criteria and discuss why each are important. Identify...
Discuss Rumelt’s evaluation method. Identify each of the criteria and discuss why each are important. Identify and discuss potential conflicts between the criteria. Provide          examples.
Describe and discuss what a salesperson is and identify the different types of salepeople and discuss...
Describe and discuss what a salesperson is and identify the different types of salepeople and discuss how they are compensated.
DIscuss why the theme of universality is important in Whitman's Song of Myself and identify a...
DIscuss why the theme of universality is important in Whitman's Song of Myself and identify a particular passage where you believe that importance is most effectively demonstrated. (This question is not asking WHAT universality is. Your answer will demonstrate that knowledge. It's asking WHY the theme is important in Song of Myself.)
DISCUSS NDNQI , WHAT IT IS AND WHY ITIS IMPORTANT
DISCUSS NDNQI , WHAT IT IS AND WHY ITIS IMPORTANT
What is identify theft and why is it so important to understand it? How does identify...
What is identify theft and why is it so important to understand it? How does identify theft impact businesses and individuals.
Discuss three types of accounting anomalies and define why they are important to a fraud investigation.
Discuss three types of accounting anomalies and define why they are important to a fraud investigation.
Discuss three types of accounting anomalies and define why they are important to a fraud investigation...
Discuss three types of accounting anomalies and define why they are important to a fraud investigation and why the fraud examiner should be mindful of these anomalies?
Q1: Discuss three types of accounting anomalies and define why they are important to a fraud...
Q1: Discuss three types of accounting anomalies and define why they are important to a fraud investigation and why the fraud examiner should be mindful of these anomalies? Q2: Define circumstantial evidence and describe why this type of evidence is so useful to a forensic accountant during an investigation.
Why is it important to gather and identify all information relating to the original problem? Discuss...
Why is it important to gather and identify all information relating to the original problem? Discuss in 100–120 words.
What are the different types of budgets in a master budget? Why is it important to...
What are the different types of budgets in a master budget? Why is it important to get the figures for a budget as ‘accurate’ as possible? Or, indeed, is it important? How do relevant costs and revenues contribute to sound decision making? What types of costs and revenues are relevant to decision making? Why?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT