Click here to Skip to main content
15,887,923 members
Home / Discussions / Database
   

Database

 
AnswerRe: Username/password protected database Pin
Michael Aimakhede9-Aug-12 19:42
Michael Aimakhede9-Aug-12 19:42 
GeneralRe: Username/password protected database Pin
Eddy Vluggen10-Aug-12 6:03
professionalEddy Vluggen10-Aug-12 6:03 
QuestionGet records having different data in 2 rows Pin
Vipul Mehta5-Aug-12 19:14
Vipul Mehta5-Aug-12 19:14 
AnswerRe: Get records having different data in 2 rows Pin
Vipul Mehta5-Aug-12 21:03
Vipul Mehta5-Aug-12 21:03 
AnswerRe: Get records having different data in 2 rows Pin
JammoD876-Aug-12 0:40
JammoD876-Aug-12 0:40 
GeneralRe: Get records having different data in 2 rows Pin
Bernhard Hiller6-Aug-12 21:56
Bernhard Hiller6-Aug-12 21:56 
GeneralRe: Get records having different data in 2 rows Pin
JammoD876-Aug-12 22:18
JammoD876-Aug-12 22:18 
AnswerRe: Get records having different data in 2 rows Pin
Arun Vasu6-Aug-12 3:29
Arun Vasu6-Aug-12 3:29 
Create Table T1 (Col1 int, Col2 varchar(50))
Insert into T1 Select 1001,'WA'
Insert into T1 Select 1002,'NY'
Insert into T1 Select 1002,'NY'
Insert into T1 Select 1002,'NY'
Insert into T1 Select 1003,'CA'
Insert into T1 Select 1003,'CA'
Insert into T1 Select 1001,'CA'
Insert into T1 Select 1002,'NY'


select distinct(col1) from t1 group by col1,col2 having count(col1)<2

output will come one record.
because state only one record have multi state
GeneralRe: Get records having different data in 2 rows PinPopular
Mycroft Holmes6-Aug-12 12:42
professionalMycroft Holmes6-Aug-12 12:42 
GeneralRe: Get records having different data in 2 rows Pin
Bernhard Hiller6-Aug-12 21:58
Bernhard Hiller6-Aug-12 21:58 
GeneralRe: Get records having different data in 2 rows Pin
Mycroft Holmes6-Aug-12 23:39
professionalMycroft Holmes6-Aug-12 23:39 
GeneralRe: Get records having different data in 2 rows Pin
Simon_Whale6-Aug-12 22:21
Simon_Whale6-Aug-12 22:21 
AnswerRe: Get records having different data in 2 rows Pin
Bernhard Hiller6-Aug-12 21:45
Bernhard Hiller6-Aug-12 21:45 
AnswerRe: Get records having different data in 2 rows Pin
Niju114-Aug-12 1:15
Niju114-Aug-12 1:15 
AnswerRe: Get records having different data in 2 rows Pin
Karthik J, Coimbatore29-Aug-12 0:02
Karthik J, Coimbatore29-Aug-12 0:02 
GeneralInsert Function Inserts Only Parameternames Pin
ASPnoob3-Aug-12 10:15
ASPnoob3-Aug-12 10:15 
GeneralRe: Insert Function Inserts Only Parameternames Pin
R. Giskard Reventlov3-Aug-12 10:23
R. Giskard Reventlov3-Aug-12 10:23 
GeneralRe: Insert Function Inserts Only Parameternames Pin
ASPnoob3-Aug-12 10:49
ASPnoob3-Aug-12 10:49 
GeneralRe: Insert Function Inserts Only Parameternames Pin
R. Giskard Reventlov3-Aug-12 12:22
R. Giskard Reventlov3-Aug-12 12:22 
GeneralRe: Insert Function Inserts Only Parameternames Pin
Eddy Vluggen3-Aug-12 22:44
professionalEddy Vluggen3-Aug-12 22:44 
GeneralRe: Insert Function Inserts Only Parameternames Pin
PIEBALDconsult3-Aug-12 11:09
mvePIEBALDconsult3-Aug-12 11:09 
Questionsql server 2008 r2 Pin
Yazdan Attarian3-Aug-12 8:55
professionalYazdan Attarian3-Aug-12 8:55 
AnswerRe: sql server 2008 r2 Pin
Sandeep Mewara3-Aug-12 9:27
mveSandeep Mewara3-Aug-12 9:27 
AnswerRe: sql server 2008 r2 Pin
Wes Aday3-Aug-12 10:57
professionalWes Aday3-Aug-12 10:57 
AnswerRe: sql server 2008 r2 Pin
Corporal Agarn6-Aug-12 9:41
professionalCorporal Agarn6-Aug-12 9:41 

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.