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

Database

 
GeneralRe: How to get LSN detail of a Log backup in sql server Pin
PadmaPriya.S5-Jan-09 23:20
PadmaPriya.S5-Jan-09 23:20 
GeneralRe: How to get LSN detail of a Log backup in sql server Pin
Wendelius5-Jan-09 23:33
mentorWendelius5-Jan-09 23:33 
GeneralRe: How to get LSN detail of a Log backup in sql server Pin
PadmaPriya.S5-Jan-09 23:41
PadmaPriya.S5-Jan-09 23:41 
GeneralRe: How to get LSN detail of a Log backup in sql server Pin
Wendelius5-Jan-09 23:53
mentorWendelius5-Jan-09 23:53 
QuestionProblem With Case When then Pin
ais075-Jan-09 18:25
ais075-Jan-09 18:25 
AnswerRe: Problem With Case When then Pin
Ashfield5-Jan-09 21:06
Ashfield5-Jan-09 21:06 
GeneralRe: Problem With Case When then Pin
Wendelius6-Jan-09 4:23
mentorWendelius6-Jan-09 4:23 
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 
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 
Sorry For not responding in time.

I want to get a report of In the following way,

If the user selects a "Bank" from dropdownlist, then he must get the list of all banks' amnts (may payable,receivable) towards that selected bank

assume selected banks' Id is 1 (xyz bank)

bankname Payable to(xyz) receivable from(xyz)

aaa 1000 2000
bbb 2000 00.00
ccc 3000 4000

I have given the structure of my view. so how to generate this sort of report. what would be the query?

I tried with this

<pre>select T1.IssuedBank,T1.PaidBank,T1.Payable,T1.Receivable from
Test_MergeView as T1 Left Join
Test_MergeView as T2
ON
T1.IssuedBank = T2.PaidBank and
T1.PaidBank = T2.IssuedBank
Where
T1.PaidBank &gt; T1.IssuedBank </pre>

but if paidbankId is < issuedbankid that info is getting eliminated in display. to avoid rows 4,5 I used where clause. but other wanted info is also getting eliminated.


------
kiran
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 

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.