Click here to Skip to main content
15,907,326 members
Home / Discussions / Database
   

Database

 
AnswerRe: how to set and get value of Variable in sql server 2005 Integration Tasks Pin
John_Adams25-Sep-08 20:41
John_Adams25-Sep-08 20:41 
QuestionDataset Join on Constant Pin
Coxianuk24-Sep-08 9:12
Coxianuk24-Sep-08 9:12 
AnswerRe: Dataset Join on Constant Pin
Wendelius24-Sep-08 9:31
mentorWendelius24-Sep-08 9:31 
GeneralRe: Dataset Join on Constant Pin
Coxianuk24-Sep-08 10:05
Coxianuk24-Sep-08 10:05 
GeneralRe: Dataset Join on Constant Pin
Wendelius24-Sep-08 10:37
mentorWendelius24-Sep-08 10:37 
GeneralRe: Dataset Join on Constant Pin
Coxianuk24-Sep-08 11:02
Coxianuk24-Sep-08 11:02 
GeneralRe: Dataset Join on Constant Pin
Wendelius24-Sep-08 11:07
mentorWendelius24-Sep-08 11:07 
AnswerRe: Dataset Join on Constant Pin
nelsonpaixao24-Sep-08 14:47
nelsonpaixao24-Sep-08 14:47 
Listen,

i see you have a column that accepts nulls and is a foregn key?
if so try to use something like this:
SELECT id_client,first_name,isnull(middle_name,'noname'),
last_name FROM dbo.clients

As you see in this case middle_name is varchar like 'noname'.
But sometimes that doesn´t happen
SELECT cl.id_client,cl.first_name,cl.last_name,
isnull(ct.city_postalcode,'nocode') 
FROM dbo.clients as cl inner join dbo.cities as ct 
on ct.id_city = cl.id_city

Here isnull() doesn´t work,(int VS varchar) and you will not get the rows with null values in!!!

What i advice you to do to create a temp table (or not temp), fill the table and display the result, after that delete the table. You code will be larger.
It works fineCool | :cool:

nelsonpaixao@yahoo.com.br

trying to help & get help

QuestionSQL Server 2000 with SP4 installation problem Pin
Krishnatv24-Sep-08 6:22
Krishnatv24-Sep-08 6:22 
AnswerRe: SQL Server 2000 with SP4 installation problem Pin
Wendelius24-Sep-08 8:38
mentorWendelius24-Sep-08 8:38 
QuestionSmall Database Design Confusion Pin
oohungoo24-Sep-08 5:16
oohungoo24-Sep-08 5:16 
AnswerRe: Small Database Design Confusion Pin
Wendelius24-Sep-08 8:37
mentorWendelius24-Sep-08 8:37 
AnswerRe: Small Database Design Confusion Pin
nelsonpaixao28-Sep-08 14:17
nelsonpaixao28-Sep-08 14:17 
QuestionSQL Server 2005 Installation Error Pin
Afaak24-Sep-08 4:27
Afaak24-Sep-08 4:27 
AnswerRe: SQL Server 2005 Installation Error Pin
Wendelius24-Sep-08 8:28
mentorWendelius24-Sep-08 8:28 
Question[Message Deleted] Pin
notes4we24-Sep-08 3:04
notes4we24-Sep-08 3:04 
AnswerRe: Send Mail Task on Failure Pin
Wendelius24-Sep-08 8:26
mentorWendelius24-Sep-08 8:26 
QuestionMaking a Winform Application Support ORACLE and SQL Server Pin
Member 118746624-Sep-08 2:40
Member 118746624-Sep-08 2:40 
AnswerRe: Making a Winform Application Support ORACLE and SQL Server Pin
Coxianuk24-Sep-08 11:23
Coxianuk24-Sep-08 11:23 
AnswerRe: Making a Winform Application Support ORACLE and SQL Server Pin
jVersteegen24-Sep-08 23:49
jVersteegen24-Sep-08 23:49 
GeneralRe: Making a Winform Application Support ORACLE and SQL Server Pin
Member 118746625-Sep-08 5:08
Member 118746625-Sep-08 5:08 
QuestionAccessing/ connecting MySQL database from VC++ application...... please help Pin
param_joshi24-Sep-08 2:29
param_joshi24-Sep-08 2:29 
Questioninstance of sql server at client side Pin
laziale24-Sep-08 1:40
laziale24-Sep-08 1:40 
AnswerRe: instance of sql server at client side Pin
Rob Graham24-Sep-08 2:09
Rob Graham24-Sep-08 2:09 
QuestionHow can I solve this "Procedure or function StoredProcedure1 has too many arguments specified. problem"? Please only experts. Pin
JUNEYT24-Sep-08 0:20
JUNEYT24-Sep-08 0:20 

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.