I want to learn store Procedure, Can you teach me from the basic .
Jump to turn (31)
- 1I want to learn store Procedure, Can you teach me from the basic .
- 2can you give me some questions for me to practice and u help me check the answer
- 3no.1
- 4no.2
- 5no.3
- 6no.4
- 7no.5
- 8CREATE PROCEDURE sp\DeleteCustomer @CustomerID int AS BEGIN DELETE FROM OrderDet
- 9understood, next levl store procedure please
- 10can you show example for all
- 11CREATE PROCEDURE sp\GetOrdersByCustomerName @CustomerName nvarchar(50) AS BEGIN
- 12Can i pass JSON object as parameter to store procedure ? if yes, can you show me
- 13while @currentposition < @Totalcount begin -- set @Positionlabel = @Labelname +
- 14Declare equipment CURSOR for select RowIndex,PositionCount,StartPositionNumber,S
- 15waht is the difference between [@RowIndex] and @RowIndex
- 16select a.\,b.IconCode,b.IconType,CurrentPosition,b.HolderStatus,b.IDCode into #t
- 17So , eg; my @temptable got 20 rows , then it will comparing CurrentPosition 20 t
- 18select distinct Pos.[@RowIndex] as RowIndex,Pos.[@PositionCount] as PositionCoun
- 19Can you give me sample data table for this SP, i cannot visualize it
- 20I thought there have the Position JSOn data ?
- 21GROUP BY Pos.[@RowIndex],Pos.[@PositionCount],Pos.[@StartPositionNumber],Pos.[@P
- 22In what kind of table columns structue , cannot use Group BY
- 23CREATE PROCEDURE sp\InsertCustomer @CustomerData nvarchar(max) AS BEGIN INSERT I
- 24HOw to execute this SP?
- 25INSERT INTO Customers (CustomerID, FirstName, LastName, EmailAddress, PhoneNumbe
- 26So Its just like Values is it? we normally use in select statement
- 27How to write SQL , and return the JSON data type as the data, Can you give me 1
- 28The FOR JSON clause is used to specify the format of the resultset, and can be u
- 29can you give me example for all of the above options
- 30Cany you generate the Output result also so that i can understand
- 31can you print Output for No.6 Root:
- User
I want to learn store Procedure, Can you teach me from the basic .
- Assistant