-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSql File.txt
More file actions
29 lines (22 loc) · 830 Bytes
/
Sql File.txt
File metadata and controls
29 lines (22 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
create table tblStudents(
ID int identity primary key,
Name varchar(50),
Gender nvarchar(20),
TotalMarks int
)
insert into tblStudents values ('Mark Hasting','Male',900)
insert into tblStudents values ('Pam Nicholas','Female',760)
insert into tblStudents values ('John Stenson','Male',980)
insert into tblStudents values ('Ram Gerald','Male',990)
insert into tblStudents values ('Ron Simpson','Male',440)
insert into tblStudents values ('Able Wicht','Male',330)
insert into tblStudents values ('Steve Thompson','Male',983)
insert into tblStudents values ('James Hold','Male',720)
insert into tblStudents values ('Mary Ward','Female',870)
insert into tblStudents values ('Nick Niron','Male',680)
create proc upGetStudentByID
@ID int
as
begin
select ID,Name, Gender, TotalMarks from tblStudents where ID=@ID
end