Click here to Skip to main content
16,006,531 members
Home / Discussions / Database
   

Database

 
GeneralRe: Problem With Case When then Pin
Ashfield6-Jan-09 9:12
Ashfield6-Jan-09 9:12 
GeneralRe: Problem With Case When then [modified] Pin
Wendelius6-Jan-09 9:20
mentorWendelius6-Jan-09 9:20 
QuestionRestoring backup of main server into local server Pin
Shravanthi5-Jan-09 17:52
Shravanthi5-Jan-09 17:52 
AnswerRe: Restoring backup of main server into local server Pin
Wendelius5-Jan-09 21:48
mentorWendelius5-Jan-09 21:48 
Questionsql query Pin
kadkir5-Jan-09 17:01
kadkir5-Jan-09 17:01 
AnswerRe: sql query Pin
Garth J Lancaster5-Jan-09 17:32
professionalGarth J Lancaster5-Jan-09 17:32 
GeneralRe: sql query Pin
kadkir5-Jan-09 18:03
kadkir5-Jan-09 18:03 
AnswerRe: sql query Pin
Wendelius5-Jan-09 21:56
mentorWendelius5-Jan-09 21:56 
If I inderstood you corectly, you want to eliminate rows 4 and 5 because the transfer is in opposite order base on bank id's and amounts. If that's correct you could write something like:
select *
from tablename t1
where not exists (select 1
                  from  tablename t2
                  where t2.paidbankid = t1.issuedbankid
                  and   t2.payable    = t1.receivable
                  and   t2.receivable = t1.payable)


The need to optimize rises from a bad design.My articles[^]

GeneralRe: sql query Pin
kadkir5-Jan-09 23:07
kadkir5-Jan-09 23:07 
GeneralRe: sql query Pin
Wendelius5-Jan-09 23:26
mentorWendelius5-Jan-09 23:26 
GeneralRe: sql query Pin
kadkir6-Jan-09 21:23
kadkir6-Jan-09 21:23 
GeneralRe: sql query Pin
Wendelius7-Jan-09 0:45
mentorWendelius7-Jan-09 0:45 
GeneralRe: sql query Pin
kadkir7-Jan-09 19:17
kadkir7-Jan-09 19:17 
GeneralRe: sql query Pin
Wendelius7-Jan-09 19:41
mentorWendelius7-Jan-09 19:41 
QuestionImport Data From Other Database and Eliminate Duplicates Pin
polishprogrammer5-Jan-09 9:59
polishprogrammer5-Jan-09 9:59 
AnswerRe: Import Data From Other Database and Eliminate Duplicates Pin
Wendelius5-Jan-09 10:25
mentorWendelius5-Jan-09 10:25 
GeneralRe: Import Data From Other Database and Eliminate Duplicates Pin
polishprogrammer5-Jan-09 10:38
polishprogrammer5-Jan-09 10:38 
GeneralRe: Import Data From Other Database and Eliminate Duplicates Pin
Wendelius5-Jan-09 10:58
mentorWendelius5-Jan-09 10:58 
GeneralRe: Import Data From Other Database and Eliminate Duplicates Pin
polishprogrammer7-Jan-09 9:47
polishprogrammer7-Jan-09 9:47 
GeneralRe: Import Data From Other Database and Eliminate Duplicates Pin
Wendelius7-Jan-09 10:00
mentorWendelius7-Jan-09 10:00 
GeneralRe: Import Data From Other Database and Eliminate Duplicates Pin
polishprogrammer8-Jan-09 10:56
polishprogrammer8-Jan-09 10:56 
GeneralRe: Import Data From Other Database and Eliminate Duplicates Pin
Wendelius8-Jan-09 11:06
mentorWendelius8-Jan-09 11:06 
QuestionSQL Server- Upload CSV file via Bulk Insert with double Quotation Issue? Pin
Tarini Singh5-Jan-09 4:21
Tarini Singh5-Jan-09 4:21 
AnswerRe: SQL Server- Upload CSV file via Bulk Insert with double Quotation Issue? Pin
Wendelius5-Jan-09 9:18
mentorWendelius5-Jan-09 9:18 
QuestionProblem with large database fetching Pin
Member 40015965-Jan-09 2:40
Member 40015965-Jan-09 2:40 

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.