Click here to Skip to main content
15,905,508 members
Home / Discussions / Database
   

Database

 
GeneralRe: Best way to read/write DBF files in .Net ? Pin
Jaime Olivares4-Oct-08 2:12
Jaime Olivares4-Oct-08 2:12 
GeneralRe: Best way to read/write DBF files in .Net ? Pin
Wendelius4-Oct-08 4:18
mentorWendelius4-Oct-08 4:18 
GeneralRe: Best way to read/write DBF files in .Net ? Pin
Jaime Olivares4-Oct-08 6:52
Jaime Olivares4-Oct-08 6:52 
QuestionHi , I need all dates of the current month Pin
Sneha Bisht3-Oct-08 19:48
Sneha Bisht3-Oct-08 19:48 
AnswerRe: Hi , I need all dates of the current month Pin
Sneha Bisht3-Oct-08 20:35
Sneha Bisht3-Oct-08 20:35 
QuestionAdding duplicate entry [modified] Pin
AghaKhan3-Oct-08 17:14
AghaKhan3-Oct-08 17:14 
AnswerRe: Adding duplicate entry Pin
Wendelius3-Oct-08 21:06
mentorWendelius3-Oct-08 21:06 
GeneralRe: Adding duplicate entry [modified] Pin
AghaKhan4-Oct-08 3:34
AghaKhan4-Oct-08 3:34 
Thank you. but I was looking to copy of Nth row not the Max of colum. i.e. I want to copy 3rd row or 2nd row.

My table has three entries.

1,45,30
2,3,40
3,9,80


the 4th should be if 2 row (2,3,40) is selected
4,3,40

if 1st row (1,45,30) is selected
4,46,30

This means answer depends on selection.
But your answer helped me to understand.

this works
INSERT INTO test (ourData1, ourData2) SELECT (select ourData1 from test where ourkey = 3 ) + 1 , (select ourData2 from test where ourkey = 3 );
but is there short syntex? Sleepy | :zzz:


I tried something like this
Select * into #table from test where ourkey = 3
select * from #table
update #table set ourData1 = ourData1 + 1

insert into test select * from #table

But I cant not insert identity column, it is my primey key and it is default. I not have to supply it.
Otherwise it looks it works.

Kind regards
Agha

modified on Saturday, October 4, 2008 11:05 AM

GeneralRe: Adding duplicate entry Pin
Wendelius4-Oct-08 4:21
mentorWendelius4-Oct-08 4:21 
GeneralRe: Adding duplicate entry [modified] Pin
AghaKhan4-Oct-08 5:21
AghaKhan4-Oct-08 5:21 
GeneralRe: Adding duplicate entry Pin
Wendelius4-Oct-08 6:31
mentorWendelius4-Oct-08 6:31 
GeneralRe: Adding duplicate entry Pin
AghaKhan4-Oct-08 8:14
AghaKhan4-Oct-08 8:14 
GeneralRe: Adding duplicate entry Pin
AghaKhan4-Oct-08 8:16
AghaKhan4-Oct-08 8:16 
GeneralRe: Adding duplicate entry Pin
Wendelius4-Oct-08 8:33
mentorWendelius4-Oct-08 8:33 
Questiondelete duplicate rows Pin
ss4444443-Oct-08 7:51
ss4444443-Oct-08 7:51 
AnswerRe: delete duplicate rows Pin
Ashfield3-Oct-08 8:26
Ashfield3-Oct-08 8:26 
AnswerRe: delete duplicate rows Pin
Niraj_Silver3-Oct-08 20:55
Niraj_Silver3-Oct-08 20:55 
GeneralRe: delete duplicate rows Pin
Ashfield5-Oct-08 21:16
Ashfield5-Oct-08 21:16 
AnswerRe: delete duplicate rows Pin
Blue_Boy4-Oct-08 2:56
Blue_Boy4-Oct-08 2:56 
GeneralRe: delete duplicate rows Pin
Ashfield5-Oct-08 21:15
Ashfield5-Oct-08 21:15 
AnswerRe: delete duplicate rows Pin
nelsonpaixao6-Oct-08 15:06
nelsonpaixao6-Oct-08 15:06 
Questionbackup restore Pin
ss4444443-Oct-08 7:49
ss4444443-Oct-08 7:49 
AnswerRe: backup restore Pin
Ashfield3-Oct-08 8:23
Ashfield3-Oct-08 8:23 
AnswerRe: backup restore Pin
Wendelius3-Oct-08 21:12
mentorWendelius3-Oct-08 21:12 
QuestionBackup and restore SQL database Pin
Rupesh Kumar Swami3-Oct-08 6:12
Rupesh Kumar Swami3-Oct-08 6:12 

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.