Stored Proce


Please login or register to vote for this query.

(click on this box to dismiss)

Gardening and Landscaping Meta

Q&A about the site for gardeners and landscapers

CREATE TABLE #Students (
StudentId int,
FirstName varchar(20),
LastName Varchar(20),
Email Varchar(20),
Gender Char(1),
PNo int constraint mob_uq unique,
Address Varchar(30),
BranchId int,
constraint uq_Add unique(Address)

insert into #Students values (101,'Deeps','Gurr','','F',232323,'Peets street',501);
insert into #Students values (102,'Anu','Mer','','F',546789,'Hello street',501);
insert into #Students values (103,'Apps','Gurr','','F',546343,'Velo street',502);
insert into #Students values (104,'Sur','Gur','','F',762323,'Indiana street',501);


  declare @name varchar(25);
  declare @email varchar(25);

  select @name = FirstName , @email = Email 
  from #Students where Gender ='F';

  print @name +'''s emailId is '+ @email;

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results