Click here to Skip to main content
15,897,371 members
Home / Discussions / Database
   

Database

 
QuestionIs it possible to get create/alter/drop scripts from within a SP in SQL server 2005? Pin
Jon_Boy24-Nov-09 4:59
Jon_Boy24-Nov-09 4:59 
AnswerRe: Is it possible to get create/alter/drop scripts from within a SP in SQL server 2005? Pin
David Mujica24-Nov-09 5:31
David Mujica24-Nov-09 5:31 
GeneralRe: Is it possible to get create/alter/drop scripts from within a SP in SQL server 2005? Pin
Jon_Boy24-Nov-09 6:53
Jon_Boy24-Nov-09 6:53 
GeneralRe: Is it possible to get create/alter/drop scripts from within a SP in SQL server 2005? Pin
Mycroft Holmes24-Nov-09 18:15
professionalMycroft Holmes24-Nov-09 18:15 
GeneralRe: Is it possible to get create/alter/drop scripts from within a SP in SQL server 2005? Pin
Jon_Boy24-Nov-09 7:07
Jon_Boy24-Nov-09 7:07 
GeneralRe: Is it possible to get create/alter/drop scripts from within a SP in SQL server 2005? Pin
Ashfield24-Nov-09 21:11
Ashfield24-Nov-09 21:11 
GeneralRe: Is it possible to get create/alter/drop scripts from within a SP in SQL server 2005? Pin
Jon_Boy25-Nov-09 1:18
Jon_Boy25-Nov-09 1:18 
QuestionDuplicate Remover Pin
Vimalsoft(Pty) Ltd24-Nov-09 1:42
professionalVimalsoft(Pty) Ltd24-Nov-09 1:42 
i have the Following Query
select sa1 as[sa1],sa2 as [sa2],count(sa1) as [count] into #ttemp from EXP_REL_CLSH_CONT
group by sa1,sa2
having count(sa1)> 1
order by sa1,sa2


and my final query is this

select c.sa1,c.sa2,c.dur1,c.dur2 from EXP_REL_CLSH_CONT C
INNER JOIN #ttemp t
on c.sa1 = t.sa1 
and c.sa2 = t.sa2


as you can see there are Duplicates in the sa1 and sa2. So i want to delete any of record but one of each. so that means at last there should be 5 Records.



that bring me these Duiplicate
sa1     sa2     Dur1   der2
============================  
6	7	3	2
6	7	3	3
354	867	1	2
354	867	1	3
354	872	1	2
354	872	1	3
356	867	1	2
356	867	1	3
356	872	1	2
356	872	1	3



Thanks

Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

AnswerRe: Duplicate Remover Pin
Niladri_Biswas24-Nov-09 2:38
Niladri_Biswas24-Nov-09 2:38 
GeneralRe: Duplicate Remover Pin
Vimalsoft(Pty) Ltd24-Nov-09 2:42
professionalVimalsoft(Pty) Ltd24-Nov-09 2:42 
GeneralRe: Duplicate Remover [modified] Pin
Niladri_Biswas24-Nov-09 3:22
Niladri_Biswas24-Nov-09 3:22 
AnswerRe: Duplicate Remover Pin
Mycroft Holmes24-Nov-09 18:20
professionalMycroft Holmes24-Nov-09 18:20 
QuestionExporting a report on tables' structure in Oracle Pin
Muammar©23-Nov-09 4:30
Muammar©23-Nov-09 4:30 
AnswerRe: Exporting a report on tables' structure in Oracle Pin
David Mujica23-Nov-09 5:12
David Mujica23-Nov-09 5:12 
GeneralRe: Exporting a report on tables' structure in Oracle Pin
Muammar©23-Nov-09 7:09
Muammar©23-Nov-09 7:09 
AnswerRe: Exporting a report on tables' structure in Oracle Pin
Jörgen Andersson23-Nov-09 21:04
professionalJörgen Andersson23-Nov-09 21:04 
QuestionHow to take a number which compare nearby some numbers ? Pin
Golden Jing22-Nov-09 22:33
Golden Jing22-Nov-09 22:33 
AnswerRe: How to take a number which compare nearby some numbers ? Pin
Blue_Boy22-Nov-09 23:03
Blue_Boy22-Nov-09 23:03 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Golden Jing22-Nov-09 23:13
Golden Jing22-Nov-09 23:13 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Blue_Boy22-Nov-09 23:29
Blue_Boy22-Nov-09 23:29 
AnswerRe: How to take a number which compare nearby some numbers ? Pin
Shameel22-Nov-09 23:47
professionalShameel22-Nov-09 23:47 
AnswerRe: How to take a number which compare nearby some numbers ? Pin
Luc Pattyn23-Nov-09 1:36
sitebuilderLuc Pattyn23-Nov-09 1:36 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Shameel23-Nov-09 2:16
professionalShameel23-Nov-09 2:16 
AnswerRe: How to take a number which compare nearby some numbers ? Pin
Shameel23-Nov-09 4:00
professionalShameel23-Nov-09 4:00 
GeneralRe: How to take a number which compare nearby some numbers ? Pin
Luc Pattyn23-Nov-09 4:28
sitebuilderLuc Pattyn23-Nov-09 4:28 

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.