Click here to Skip to main content
16,007,814 members
Home / Discussions / Database
   

Database

 
GeneralRe: Delete and effects thereof Pin
Tim Carmichael21-Nov-06 7:44
Tim Carmichael21-Nov-06 7:44 
GeneralRe: Delete and effects thereof Pin
Rob Graham21-Nov-06 11:17
Rob Graham21-Nov-06 11:17 
GeneralRe: Delete and effects thereof Pin
Tim Carmichael22-Nov-06 2:44
Tim Carmichael22-Nov-06 2:44 
AnswerRe: Delete and effects thereof Pin
Rob Graham20-Nov-06 13:01
Rob Graham20-Nov-06 13:01 
GeneralRe: Delete and effects thereof Pin
Tim Carmichael21-Nov-06 7:46
Tim Carmichael21-Nov-06 7:46 
GeneralRe: Delete and effects thereof Pin
Pete O'Hanlon21-Nov-06 9:43
mvePete O'Hanlon21-Nov-06 9:43 
AnswerRe: Delete and effects thereof Pin
Eric Dahlvang21-Nov-06 10:33
Eric Dahlvang21-Nov-06 10:33 
QuestionData Storage from SP Pin
Dayekh20-Nov-06 5:15
Dayekh20-Nov-06 5:15 
Hi, Careful! Long read. Im SORRY! Frown | :(

SENARIO:

I have a senario where there are 3 related tables. One is called Request, the other Quote, and the last is called QuoteRequest.

Each quote can have many requests in it.
Each request can belong to more than one quote.

When I want to save a Quote record, I select several Requests from a Datagrid using checkboxes. Those requests will be assigned to that quote.
The Requests which are visible in that datagrid for selection, are the ones which have NOT been Quoted before.

Here's the problem!

Let's say a request has been quoted. The TimeEstimate of the request is 5 days. Then someone changes that TimeEstimate to 9 days. This means that 4 days are still unquoted!

There is one thing I MUST do before I can display those unquoted days back on the data grid. I MUST store the initial TimeEstimate of ANY quoted requestin the QuoteRequest Table. This table will keep a track of all the requests which have been quoted. For instance it may have the following entries:

ID----RequestID----QuoteID----NoOfDaysEstimated<br />
1--------1-----------1---------------5---------<br />
2--------1-----------2---------------4---------


QUESTION:

What I want to do is simply this:

I want to STORE the TimeEstimate FROM the Request table INTO the QuoteRequest Table WHENEVER the AddQUOTE Stored Procedure is executed. This will effectively be populating the QuoteRequest Table with records of all the Requests which have been Quoted, and hence will allow me to display this info in a datagrid.

I don't know how to go about doing that.

If you do go through this, I thank you. If you can suggest something, I will be forever grateful.
AnswerRe: Data Storage from SP Pin
Colin Angus Mackay20-Nov-06 5:30
Colin Angus Mackay20-Nov-06 5:30 
GeneralRe: Data Storage from SP Pin
Dayekh20-Nov-06 5:46
Dayekh20-Nov-06 5:46 
GeneralRe: Data Storage from SP Pin
Colin Angus Mackay20-Nov-06 23:24
Colin Angus Mackay20-Nov-06 23:24 
GeneralRe: Data Storage from SP Pin
Dayekh21-Nov-06 1:28
Dayekh21-Nov-06 1:28 
Questioncheck data integrity using triggers Pin
drequinox20-Nov-06 4:03
drequinox20-Nov-06 4:03 
AnswerRe: check data integrity using triggers Pin
Pete O'Hanlon20-Nov-06 4:33
mvePete O'Hanlon20-Nov-06 4:33 
GeneralRe: check data integrity using triggers Pin
drequinox20-Nov-06 7:27
drequinox20-Nov-06 7:27 
QuestionRe: check data integrity using triggers Pin
drequinox20-Nov-06 9:50
drequinox20-Nov-06 9:50 
QuestionAccess 2000-Jet/VB6 - SQL Query (HELP- SQL Gurus) Pin
tintinchasm19-Nov-06 22:34
tintinchasm19-Nov-06 22:34 
AnswerRe: Access 2000-Jet/VB6 - SQL Query (HELP- SQL Gurus) Pin
rah_sin20-Nov-06 0:02
professionalrah_sin20-Nov-06 0:02 
GeneralRe: Access 2000-Jet/VB6 - SQL Query (HELP- SQL Gurus) Pin
tintinchasm20-Nov-06 6:11
tintinchasm20-Nov-06 6:11 
QuestionENUM Pin
thathvamsi19-Nov-06 21:35
thathvamsi19-Nov-06 21:35 
AnswerRe: ENUM Pin
Leah_Garrett22-Nov-06 13:20
Leah_Garrett22-Nov-06 13:20 
QuestionDB Owner - Diagrams Pin
MatthysDT19-Nov-06 19:59
MatthysDT19-Nov-06 19:59 
AnswerRe: DB Owner - Diagrams Pin
Leah_Garrett22-Nov-06 13:24
Leah_Garrett22-Nov-06 13:24 
QuestionSQL error Pin
walalawll19-Nov-06 15:31
walalawll19-Nov-06 15:31 
AnswerRe: SQL error Pin
Mike Dimmick20-Nov-06 0:52
Mike Dimmick20-Nov-06 0:52 

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.