Click here to Skip to main content
15,912,400 members
Home / Discussions / Database
   

Database

 
GeneralRe: Input string was not in a correct format Pin
Colin Angus Mackay15-Jul-04 22:19
Colin Angus Mackay15-Jul-04 22:19 
GeneralRe: Input string was not in a correct format Pin
Colin Angus Mackay16-Jul-04 2:22
Colin Angus Mackay16-Jul-04 2:22 
GeneralRe: Input string was not in a correct format Pin
DotNet16-Jul-04 3:57
DotNet16-Jul-04 3:57 
Questioncan i get some operation infomation from SQLsrv2k ? Pin
fu015-Jul-04 15:58
fu015-Jul-04 15:58 
AnswerRe: can i get some operation infomation from SQLsrv2k ? Pin
RichardGrimmer15-Jul-04 23:28
RichardGrimmer15-Jul-04 23:28 
GeneralRe: can i get some operation infomation from SQLsrv2k ? Pin
fu017-Jul-04 15:39
fu017-Jul-04 15:39 
GeneralRe: can i get some operation infomation from SQLsrv2k ? Pin
RichardGrimmer19-Jul-04 5:40
RichardGrimmer19-Jul-04 5:40 
QuestionIs This Complex Update Possible? Pin
perlmunger15-Jul-04 11:38
perlmunger15-Jul-04 11:38 
I am trying to take the result of a caculation of two fields in one table and place it into a field in another table? Is this possible?

I have two tables StoreItems and TicketItems. I need to get a unit cost from my StoreItems table by dividing the cost for an entire case (CaseCost) by the case count (CaseCount) and then placing that result into the Cost field of an item in the TicketItems table with a corresponding PLU (like an SKU). PLU and StoreID are the two fields in the tables that link them together. In a nutshell I need this:

StoreItems.Cost = TicketItems.CaseCost / TicketItems.CaseCount

Keep in mind that I need to run this on every record in the two tables so just passing in a StoreID and PLU is not enough. This has to be done across the board--that is, every TicketItems record needs to have its Cost column set when this has finished running.

Thank you.

-Matt

------------------------------------------

The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
AnswerRe: Is This Complex Update Possible? Pin
Colin Angus Mackay15-Jul-04 12:03
Colin Angus Mackay15-Jul-04 12:03 
GeneralRe: Is This Complex Update Possible? Pin
perlmunger15-Jul-04 12:21
perlmunger15-Jul-04 12:21 
GeneralRe: Is This Complex Update Possible? Pin
Colin Angus Mackay15-Jul-04 12:29
Colin Angus Mackay15-Jul-04 12:29 
GeneralRe: Is This Complex Update Possible? Pin
perlmunger15-Jul-04 12:39
perlmunger15-Jul-04 12:39 
GeneralRe: Is This Complex Update Possible? Pin
perlmunger15-Jul-04 13:02
perlmunger15-Jul-04 13:02 
GeneralRe: Is This Complex Update Possible? Pin
Colin Angus Mackay15-Jul-04 13:07
Colin Angus Mackay15-Jul-04 13:07 
AnswerRe: Is This Complex Update Possible? Pin
dishanf19-Jul-04 1:57
dishanf19-Jul-04 1:57 
GeneralRe: Is This Complex Update Possible? Pin
dishanf19-Jul-04 2:03
dishanf19-Jul-04 2:03 
GeneralWhat's wrong with this script from a Wrox Book Pin
mtbjr15-Jul-04 2:18
mtbjr15-Jul-04 2:18 
GeneralRe: What's wrong with this script from a Wrox Book Pin
Michael Potter15-Jul-04 5:23
Michael Potter15-Jul-04 5:23 
GeneralRe: What's wrong with this script from a Wrox Book Pin
Steven Campbell15-Jul-04 7:01
Steven Campbell15-Jul-04 7:01 
GeneralRe: What's wrong with this script from a Wrox Book Pin
mtbjr15-Jul-04 16:29
mtbjr15-Jul-04 16:29 
GeneralRe: What's wrong with this script from a Wrox Book Pin
Mekong River17-Jul-04 4:58
Mekong River17-Jul-04 4:58 
GeneralRe: What's wrong with this script from a Wrox Book Pin
mtbjr18-Jul-04 12:22
mtbjr18-Jul-04 12:22 
GeneralOleDbConnection to MS Project 2000 Pin
frankvgb14-Jul-04 20:19
frankvgb14-Jul-04 20:19 
GeneralSQL Select data flow Pin
Antonius_r314-Jul-04 16:26
Antonius_r314-Jul-04 16:26 
GeneralRe: SQL Select data flow Pin
Grimolfr15-Jul-04 1:37
Grimolfr15-Jul-04 1:37 

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.