Click here to Skip to main content
15,890,123 members
Home / Discussions / Database
   

Database

 
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 
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 
AnswerRe: Problem with large database fetching Pin
Ashfield5-Jan-09 2:54
Ashfield5-Jan-09 2:54 
AnswerRe: Problem with large database fetching Pin
Wendelius5-Jan-09 9:22
mentorWendelius5-Jan-09 9:22 
AnswerRe: Problem with large database fetching Pin
Aman Bhullar6-Jan-09 5:45
Aman Bhullar6-Jan-09 5:45 

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.