Lukket

Create A stored Procedure in SQL

Using the Northwind database orders table, write a single script that completes the following tasks:

Create a view showing every order that was shipped to Spain. Name the destination column "DestinationSpain". Include code that checks if the view already exists. If it does, it should be dropped and re-created.

Create another view that returns the name of each country and the number of orders shipped to that country. Name the number of orders column "NumOrders.” Include code that checks if the view already exists. If it does, it should be dropped and re-created.

Have the script display all the rows from the first view.

Have the script display all the rows from the second view.

Finally, have the script display the total number of orders shipped to Spain. Name the column "TotalOrdersToSpain".

Using the Query Analyzer, make sure your script has no errors when it's executed. Then save and submit the .sql file.

STEP THREE - Writing a Stored Procedure

Complete the following tasks using the Northwind database table Order details:

[url removed, login to view] a stored procedure named sp_insert_orderDetails that allows you to add a discount to an order. The stored procedure should accept five input parameters: OrderID, ProductID, UnitPrice, Quantity, and DiscountValue.

2. Have the stored procedure display all the orders with a discount, including the ones added by the stored procedure.

After testing the stored procedure and receiving no errors, save the .sql file.

Færdigheder: Dataindførsel, Databehandling

Se mere: write query sql number orders shipped, writing checks, writing a procedure, writing analyzer, named query, create writing, stored, sql, sql script , sql data, Sql code, sql c, s parameters, rows, database sql, data entry SQL , create name, create data, create a, create a total of, C# SQL, sql created, code create, column already exists, sql create script

Om arbejdsgiveren:
( 0 bedømmelser ) oak, Iceland

Projekt-ID: #61960

24 freelancere byder i gennemsnit $42 for dette job

givemeahell

hi, i am interested in doing this, i am basically software eng. with 5yrs exp. vb asp java .net so u can trust me, i will deliver the project in time or even b4, with quality u expect. thanks gmh

$50 USD på 1 dag
(2 bedømmelser)
3.3
delphixpart

Hello Dear, Please check PM, Thanks

$30 USD på 1 dag
(1 bedømmelse)
3.2
vshree

Hello Sir Is simple one, I will delivery it with in a day. More info and previous works visit my website xxxxxxxxx Select me, lets start the job. Waiting for response. With Thanks Sandesh M M

$30 USD in 0 dage
(2 bedømmelser)
2.9
IndoFreelancer

Please check my message in your PM. Thank You.

$30 USD in 0 dage
(2 bedømmelser)
2.6
vibhub

The solution is ready..lemme know if you want to use it...

$30 USD in 0 dage
(3 bedømmelser)
2.3
espriy

PLEASE CHECK PM...THANKS IN ADVANCE.

$30 USD in 0 dage
(2 bedømmelser)
2.2
dominicj

Easy done. Can have it back in a few hours.

$50 USD in 0 dage
(0 bedømmelser)
0.0
gyanng

see PMB(URGENT)

$30 USD in 0 dage
(0 bedømmelser)
0.0
errorfree

Hi, I have read your requirments to create views and stored procedures and i m sending you half of your work, all work will be done in 1 hour after you choose my [url removed, login to view] your pm thanks adnan

$30 USD på 1 dag
(0 bedømmelser)
0.0
survivor

Dear Sir, Im Expert DBA , with 3 years experience in MS SQL please review your PMB for more details Regards George

$75 USD på 1 dag
(0 bedømmelser)
0.0
akempis

Dear Sir/Madam: I believe that my strong technical experience and education will make me a very competitive candidate for this project. The key strengths that I possess for success in this position include but a Mere

$30 USD in 0 dage
(0 bedømmelser)
0.0
dotnettechno

We can fulfill your requirement. Contact us if interested.

$100 USD in 7 dage
(0 bedømmelser)
0.0
radcaesar1

[url removed, login to view]

$35 USD in 2 dage
(0 bedømmelser)
0.0
YGEsoft

the task is easy. you can have it within an hour from payment.

$30 USD in 0 dage
(0 bedømmelser)
0.0
Draven

Please refer to our PM

$30 USD in 0 dage
(0 bedømmelser)
0.0
bestbuykaran

Sir, We are IFW Creations a website designing & development firm. Search “IFW Creations” on Google to know more about us. We are having a team of 22 IT professionals who are experts on Web specific technologies. We Mere

$90 USD in 4 dage
(0 bedømmelser)
0.0
vvbharadwaz

I assure to undertake the project provided by you and complete the same within the specified time. I guarantee to provide you complete satisfaction through dedication to the work given.

$75 USD in 4 dage
(0 bedømmelser)
0.0
G4Genius

Hi, we can do your job in no time. our bid for this job is $25

$30 USD in 0 dage
(0 bedømmelser)
0.0
foster123

Please check PMB

$30 USD på 1 dag
(0 bedømmelser)
0.0
Kuff82

I have 8 years experience. I can have this done for you quickly.

$40 USD på 1 dag
(0 bedømmelser)
0.0