Click here to Skip to main content
15,902,445 members
Home / Discussions / Database
   

Database

 
AnswerRe: how to find a trigger is enabled or disabled for a particular table Pin
Ware@Work5-Feb-07 10:58
Ware@Work5-Feb-07 10:58 
QuestionSQL Query Help Pin
Hulicat30-Jan-07 13:36
Hulicat30-Jan-07 13:36 
AnswerRe: SQL Query Help Pin
andyharman30-Jan-07 19:50
professionalandyharman30-Jan-07 19:50 
GeneralRe: SQL Query Help Pin
Hulicat31-Jan-07 9:10
Hulicat31-Jan-07 9:10 
QuestionDataGrid and DataGridView Pin
Blekk30-Jan-07 12:48
Blekk30-Jan-07 12:48 
AnswerRe: DataGrid and DataGridView Pin
smjp30-Jan-07 18:45
smjp30-Jan-07 18:45 
GeneralRe: DataGrid and DataGridView Pin
Blekk31-Jan-07 7:48
Blekk31-Jan-07 7:48 
QuestionQuestion about using PIVOT in SQL Pin
leckey30-Jan-07 11:33
leckey30-Jan-07 11:33 
In Access I am doing a crosstab query which translated to SQL is:

TRANSFORM Sum(Adjust_Sold_Sold_Subtraction.Qty) AS SumOfQty<br />
SELECT Adjust_Sold_Sold_Subtraction.PartNumber, Adjust_Sold_Sold_Subtraction.Model, Sum(Adjust_Sold_Sold_Subtraction.Qty) AS [Total Of Qty]<br />
FROM Adjust_Sold_Sold_Subtraction<br />
GROUP BY Adjust_Sold_Sold_Subtraction.PartNumber, Adjust_Sold_Sold_Subtraction.Model<br />
PIVOT Adjust_Sold_Sold_Subtraction.Vendor;


The table is data entry table. The user can choose the Vendor from a drop down box.

problem: if in this session the user does not have a record for every vendor in the list it causes problems later on when I try to insert the records into a table (which has a field for each possible vendor).

Is there a way to force the code to recognize all the vendors, even if not all vendors have been entered in the source table?

Or is there a way (some type of if statement?) when trying to do the append that somehow I can program 'the vendor XYZ doesn't exist in the source table, but it exists in the destination table so just stick a 0 in there.'

_________________________________________________________________
Dick Cheney looks like a high school calculus teacher with persistent heartburn.

Questioncan i return dataReader in ado.net method on web serviec ? Pin
PavanPareta30-Jan-07 3:05
PavanPareta30-Jan-07 3:05 
AnswerRe: can i return dataReader in ado.net method on web serviec ? Pin
Pete O'Hanlon30-Jan-07 3:48
mvePete O'Hanlon30-Jan-07 3:48 
AnswerRe: can i return dataReader in ado.net method on web serviec ? Pin
Parwej Ahamad30-Jan-07 4:55
professionalParwej Ahamad30-Jan-07 4:55 
AnswerNo Pin
Ennis Ray Lynch, Jr.30-Jan-07 11:37
Ennis Ray Lynch, Jr.30-Jan-07 11:37 
QuestionHow to make constraint for column based on pattern Pin
El'Cachubrey30-Jan-07 2:20
El'Cachubrey30-Jan-07 2:20 
AnswerRe: How to make constraint for column based on pattern Pin
Pete O'Hanlon30-Jan-07 3:44
mvePete O'Hanlon30-Jan-07 3:44 
QuestionGeneral brains required on SQL Performance Pin
Rob Philpott30-Jan-07 0:55
Rob Philpott30-Jan-07 0:55 
AnswerRe: General brains required on SQL Performance Pin
Pete O'Hanlon30-Jan-07 1:10
mvePete O'Hanlon30-Jan-07 1:10 
QuestionRetrieving sybase data from sql server 2005 instance Pin
basith55529-Jan-07 18:59
basith55529-Jan-07 18:59 
AnswerRe: Retrieving sybase data from sql server 2005 instance Pin
andyharman29-Jan-07 22:22
professionalandyharman29-Jan-07 22:22 
QuestionAccess SUM() Pin
myNameIsRon29-Jan-07 10:08
myNameIsRon29-Jan-07 10:08 
AnswerRe: Access SUM() Pin
Vasudevan Deepak Kumar29-Jan-07 22:24
Vasudevan Deepak Kumar29-Jan-07 22:24 
AnswerRe: Access SUM() Pin
andyharman29-Jan-07 23:40
professionalandyharman29-Jan-07 23:40 
GeneralRe: Access SUM() Pin
myNameIsRon30-Jan-07 19:07
myNameIsRon30-Jan-07 19:07 
GeneralRe: Access SUM() Pin
andyharman30-Jan-07 19:44
professionalandyharman30-Jan-07 19:44 
Questionlogin vs user Pin
Brendan Vogt29-Jan-07 5:13
Brendan Vogt29-Jan-07 5:13 
AnswerRe: login vs user Pin
Colin Angus Mackay29-Jan-07 5:42
Colin Angus Mackay29-Jan-07 5:42 

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.