Click here to Skip to main content
15,892,746 members
Home / Discussions / Database
   

Database

 
GeneralRe: 2 tables and a stored procedure Pin
Mike Dimmick1-Dec-03 3:17
Mike Dimmick1-Dec-03 3:17 
GeneralMonitor bandwidth usage Pin
Paul Watson1-Dec-03 0:52
sitebuilderPaul Watson1-Dec-03 0:52 
GeneralRe: Monitor bandwidth usage Pin
Rocky Moore1-Dec-03 6:24
Rocky Moore1-Dec-03 6:24 
GeneralPreparing SQL for Insert Pin
FruitBatInShades30-Nov-03 23:34
FruitBatInShades30-Nov-03 23:34 
GeneralRe: Preparing SQL for Insert Pin
Mike Dimmick1-Dec-03 3:43
Mike Dimmick1-Dec-03 3:43 
GeneralRe: Preparing SQL for Insert Pin
Sean McCormack3-Dec-03 3:01
Sean McCormack3-Dec-03 3:01 
Generalrows in nested relationship couldnt be deleted Pin
meroo30-Nov-03 18:47
meroo30-Nov-03 18:47 
GeneralSql query question Pin
pankajdaga30-Nov-03 3:26
pankajdaga30-Nov-03 3:26 
Hi everyone,

I am trying to do a select sub-query, but for some reason it is not working out.

I have the following stored procedure:

CREATE MyProcedure
@newID int,
@oldID int
AS

INSERT INTO MyTable(ExperimentID, Threshold, Energy) VALUES(@newID, Select Threshold, Energy from OldTable where ExperimentID = @oldID)

This mixing of a given value with a subquery does not seem to work. However, there must be a mechanism to do this. Does anyone has some experience with something like this and can maybe help me.

Thanks a lot.

Cheers,
Pankaj

Without struggle, there is no progress
GeneralRe: Sql query question Pin
Ian Darling30-Nov-03 3:50
Ian Darling30-Nov-03 3:50 
Generalserver explorer Pin
Member 72360328-Nov-03 23:48
Member 72360328-Nov-03 23:48 
GeneralRe: server explorer Pin
Mike Dimmick1-Dec-03 6:44
Mike Dimmick1-Dec-03 6:44 
Generali want to del a row from nested relationship Pin
meroo28-Nov-03 6:35
meroo28-Nov-03 6:35 
GeneralRe: i want to del a row from nested relationship Pin
Husein29-Nov-03 9:41
Husein29-Nov-03 9:41 
Generali want to del a row from data grid Pin
kings_128-Nov-03 6:04
kings_128-Nov-03 6:04 
QuestionHow to retrieve image data with MSDE Pin
parag28-Nov-03 1:20
parag28-Nov-03 1:20 
Generalstoring passwords ! Pin
ranjjj27-Nov-03 18:45
ranjjj27-Nov-03 18:45 
GeneralRe: storing passwords ! Pin
Vasudevan Deepak Kumar27-Nov-03 20:40
Vasudevan Deepak Kumar27-Nov-03 20:40 
GeneralRe: storing passwords ! Pin
Steve S8-Dec-03 0:28
Steve S8-Dec-03 0:28 
Questionwhat is the max length of ADO command string? Pin
gowinder27-Nov-03 14:42
gowinder27-Nov-03 14:42 
QuestionHow to change the displaying sequence of columns in a DataView Pin
itismydick26-Nov-03 20:48
itismydick26-Nov-03 20:48 
AnswerRe: How to change the displaying sequence of columns in a DataView Pin
Husein29-Nov-03 9:46
Husein29-Nov-03 9:46 
Generalsql stored proc Pin
ranjjj26-Nov-03 19:09
ranjjj26-Nov-03 19:09 
GeneralRe: sql stored proc Pin
Mike Dimmick27-Nov-03 5:27
Mike Dimmick27-Nov-03 5:27 
Generalsql stored proc Pin
ranjjj26-Nov-03 19:09
ranjjj26-Nov-03 19:09 
GeneralSQL Statement with Dates in ASP Pin
AGeNt7eVeN26-Nov-03 13:36
AGeNt7eVeN26-Nov-03 13:36 

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.