Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are given the database Finaldb which is stored on an MSQL server. Assume : you have a connexion string in the web.config file named

image text in transcribed

You are given the database Finaldb" which is stored on an MSQL server. Assume : you have a connexion string in the web.config file named "FinalDB". you have a table "customer" with account (integer), name (character), and balance amount (double). (account is the primary key). Write a C# code to accomplish the following tasks. Clearly indicate which part of the code accomplishes which task. (1) Open a connection to the database (2) Add a record "1112 Ahmed Al-Fudhaili 1200.67" to the table. (3) Read the current amount of account=1112 from the database. (4) Update the current amount by incrementing it by OMR1000.00. (5) What happens if you Add the record "1112 Ahmed Al-Fudhaili 1200.67" to the table more than once. (6) Print all records for customers where the name starts with a letter given by the user (Assume the letter given by the user is already stored in a variable named startLetter)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions

Question

5 Discuss the concepts of SERVQUAL and gap analysis

Answered: 1 week ago

Question

5. Describe how contexts affect listening

Answered: 1 week ago