Click here to Skip to main content
15,896,450 members
Home / Discussions / Database
   

Database

 
GeneralRe: NOT EXISTS function not working Pin
Bomb_shell3-Nov-09 10:47
Bomb_shell3-Nov-09 10:47 
AnswerRe: NOT EXISTS function not working Pin
Niladri_Biswas2-Nov-09 16:46
Niladri_Biswas2-Nov-09 16:46 
AnswerRe: NOT EXISTS function not working Pin
Niladri_Biswas2-Nov-09 19:41
Niladri_Biswas2-Nov-09 19:41 
AnswerRe: NOT EXISTS function not working Pin
Ashfield2-Nov-09 21:01
Ashfield2-Nov-09 21:01 
QuestionHow to make unique, readable, varchar codes in a Guid ID table Pin
Sir Dot Net2-Nov-09 11:35
Sir Dot Net2-Nov-09 11:35 
AnswerRe: How to make unique, readable, varchar codes in a Guid ID table Pin
Mycroft Holmes2-Nov-09 13:53
professionalMycroft Holmes2-Nov-09 13:53 
AnswerRe: How to make unique, readable, varchar codes in a Guid ID table Pin
εїзεїзεїз2-Nov-09 20:51
εїзεїзεїз2-Nov-09 20:51 
Questionhow to write querey return the unique CustomerId with the first CustomerName ? Pin
AJ Hoge1-Nov-09 23:49
AJ Hoge1-Nov-09 23:49 
hii ,

i have question and i wont ask this question in form of the example.

if we have table named CUSTOMER:

CUSTOMER TABLE:
CustomerID : Integer (Not a primary Key)
CustomerName: TEXT




And This is the table's data:
CustomerId  |  CustomerName
   12       |          Jone   
   25       |          Mark   
   25       |          Marc
   10       |          AJ  
we note that CustomerId number 25 has deffrint spiling of the CustomerName for the same Customer!

i need to return the unique CustomerId with the first CustomerName.

i write this querey :

select DISTINCT CustomerID , CustomerName
From Customer


but it got me the four records !! the 25 is dublicated twies becuse the spiling of the name are deffrint for the same Customer

how to write querey return the unique CustomerId with the first CustomerName?




Many Thanks
AnswerRe: how to write querey return the unique CustomerId with the first CustomerName ? Pin
il_masacratore2-Nov-09 0:32
il_masacratore2-Nov-09 0:32 
GeneralRe: how to write querey return the unique CustomerId with the first CustomerName ? Pin
AJ Hoge2-Nov-09 4:42
AJ Hoge2-Nov-09 4:42 
AnswerRe: how to write querey return the unique CustomerId with the first CustomerName ? Pin
J4amieC2-Nov-09 1:18
J4amieC2-Nov-09 1:18 
GeneralRe: how to write querey return the unique CustomerId with the first CustomerName ? Pin
AJ Hoge2-Nov-09 4:51
AJ Hoge2-Nov-09 4:51 
GeneralRe: how to write querey return the unique CustomerId with the first CustomerName ? Pin
J4amieC2-Nov-09 6:35
J4amieC2-Nov-09 6:35 
AnswerRe: how to write querey return the unique CustomerId with the first CustomerName ? Pin
Niladri_Biswas2-Nov-09 4:51
Niladri_Biswas2-Nov-09 4:51 
QuestionRe: how to write querey return the unique CustomerId with the first CustomerName ? Pin
i.j.russell2-Nov-09 5:14
i.j.russell2-Nov-09 5:14 
QuestionDetaching SQL Database .mdf file ! Pin
jeshra2791-Nov-09 18:36
jeshra2791-Nov-09 18:36 
AnswerRe: Detaching SQL Database .mdf file ! Pin
Mycroft Holmes1-Nov-09 20:01
professionalMycroft Holmes1-Nov-09 20:01 
GeneralRe: Detaching SQL Database .mdf file ! Pin
jeshra2791-Nov-09 20:13
jeshra2791-Nov-09 20:13 
GeneralRe: Detaching SQL Database .mdf file ! Pin
Mycroft Holmes1-Nov-09 20:20
professionalMycroft Holmes1-Nov-09 20:20 
AnswerRe: Detaching SQL Database .mdf file ! Pin
Abhishek Sur1-Nov-09 21:59
professionalAbhishek Sur1-Nov-09 21:59 
QuestionCan't Create database Pin
twsted f81-Nov-09 7:15
twsted f81-Nov-09 7:15 
AnswerRe: Can't Create database Pin
Andy_L_J1-Nov-09 7:47
Andy_L_J1-Nov-09 7:47 
AnswerRe: Can't Create database Pin
Mycroft Holmes1-Nov-09 11:11
professionalMycroft Holmes1-Nov-09 11:11 
AnswerRe: Can't Create database Pin
Henry Minute1-Nov-09 11:24
Henry Minute1-Nov-09 11:24 
GeneralRe: Can't Create database Pin
Andy_L_J1-Nov-09 11:55
Andy_L_J1-Nov-09 11:55 

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.