Click here to Skip to main content
15,914,820 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Query Prob Pin
Krish - KP12-Aug-07 18:23
Krish - KP12-Aug-07 18:23 
QuestionMS SQL 2005 Pin
raneesh c10-Aug-07 21:35
raneesh c10-Aug-07 21:35 
AnswerRe: MS SQL 2005 Pin
Paul Conrad11-Aug-07 4:46
professionalPaul Conrad11-Aug-07 4:46 
QuestionGrouping Problem In SQL Server Pin
R.S.Hegde10-Aug-07 20:01
R.S.Hegde10-Aug-07 20:01 
AnswerRe: Grouping Problem In SQL Server Pin
Rami Said Abd Alhalim10-Aug-07 21:38
Rami Said Abd Alhalim10-Aug-07 21:38 
AnswerSenthil' S reply for Grouping Problem In SQL Server Pin
Senthil S10-Aug-07 21:54
Senthil S10-Aug-07 21:54 
QuestionHow to auto generate custom Id value..., Pin
Member 387988110-Aug-07 18:41
Member 387988110-Aug-07 18:41 
AnswerSenthil'S Reply How to auto generate custom Id value..., Pin
Senthil S10-Aug-07 21:02
Senthil S10-Aug-07 21:02 
Hi
This can be solved by fellowing inner joins method. I thing it may work

"select isnull(max(subfld),1)+1 as val from newtable as t1 inner join (select empid,substring(empid,2,datalength(empid)-1) as subfld from newtable) as t2
on t1.empid=t2.empid"

Table:- newtable
Flds:- empid,empnum
data:- (L1,L2,L3)empid,(2,5,8)empnum

i used inner join n created two tables called t1,t2 which is unique by 'empid'. t2 table having flds like empid n subfld while joining i find the substring of the empid n place it in t2's subfld. then i find the max for that ..

Pls go through above and responce me whatever u got....
thnk u

Senthil S
Software Engineer

AnswerRe: How to auto generate custom Id value..., Pin
Rami Said Abd Alhalim10-Aug-07 22:07
Rami Said Abd Alhalim10-Aug-07 22:07 
Question[ADO.NET/C#] result of a function Pin
Mwambe10-Aug-07 3:36
Mwambe10-Aug-07 3:36 
AnswerRe: [ADO.NET/C#] result of a function Pin
R. Giskard Reventlov10-Aug-07 3:50
R. Giskard Reventlov10-Aug-07 3:50 
AnswerRe: [ADO.NET/C#] result of a function Pin
Rami Said Abd Alhalim10-Aug-07 22:55
Rami Said Abd Alhalim10-Aug-07 22:55 
QuestionThe highest value for VarBinary(MAX) in Production Server Pin
Nadia Monalisa10-Aug-07 1:53
Nadia Monalisa10-Aug-07 1:53 
AnswerRe: The highest value for VarBinary(MAX) in Production Server Pin
Talal Sultan10-Aug-07 2:01
Talal Sultan10-Aug-07 2:01 
GeneralRe: The highest value for VarBinary(MAX) in Production Server Pin
Nadia Monalisa10-Aug-07 2:10
Nadia Monalisa10-Aug-07 2:10 
GeneralRe: The highest value for VarBinary(MAX) in Production Server Pin
Talal Sultan10-Aug-07 2:16
Talal Sultan10-Aug-07 2:16 
GeneralRe: The highest value for VarBinary(MAX) in Production Server Pin
Luis Alonso Ramos12-Aug-07 14:49
Luis Alonso Ramos12-Aug-07 14:49 
Questionhow can i write a query.... Pin
koolprasad200310-Aug-07 0:06
professionalkoolprasad200310-Aug-07 0:06 
AnswerRe: how can i write a query.... Pin
andyharman10-Aug-07 2:19
professionalandyharman10-Aug-07 2:19 
Questionpivot query in sybase Pin
pete007_ke9-Aug-07 22:08
pete007_ke9-Aug-07 22:08 
AnswerRe: pivot query in sybase Pin
andyharman10-Aug-07 2:24
professionalandyharman10-Aug-07 2:24 
QuestionError in connecting remotely to database Pin
IamAmit9-Aug-07 3:18
IamAmit9-Aug-07 3:18 
AnswerRe: Error in connecting remotely to database Pin
Talal Sultan9-Aug-07 3:55
Talal Sultan9-Aug-07 3:55 
AnswerRe: Error in connecting remotely to database Pin
originSH9-Aug-07 5:10
originSH9-Aug-07 5:10 
GeneralRe: Error in connecting remotely to database Pin
IamAmit9-Aug-07 23:09
IamAmit9-Aug-07 23:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.