Microsoft
Software
Hardware
Network
Question : insert distinct and fill other fields
I need to write an insert with one specific ID and then default the other initial values to false or empty.
So, my data would look like..
ID field1 field2 field3
2343 false false false
333 false false false
9383 false false false
Originally, I had..
insert into tblA (ID, 'False', 'False', 'False')
select distinct ID, field1, field2, field3
from......
At first I thought it worked, but the ID started pulling in duplicates. So, then I figured the whole row has to be distinct.
Now, I have insert into tblA (ID)
select distinct ID
from.....
It works, but I need to enter my default ('False') values into the other fields?
Answer : insert distinct and fill other fields
have you tried:
netstat -ban
Random Solutions
What's the probability of an American being killed by a terrorist? 1970's 1980's 1990's 2000's
OWA will not work for mailbox in non-internet facing AD site
NAT on ASA to a remote server
visual studio 2005 express
crystal parameter value to return all values
Info@... users Not receiving email
Windows 2008 ServeRaid driver
Mac backup: unsupported file characters
Dreamweaver CS4 table border color
SQL Server 2008 Merge replication setup problem