HELLO EXPERTS,
I NEED TO WRITE A SIMPLE SQL TO EXTRACT DATA FROM A TABLE. TABLE IS ALREADY EXTRACTING DATA FROM MULTIPLE FILES AND IS REFRESHING WELL WHEN DATA IS UPDATED IN SOURCE FILES.
NOW FROM THIS TABLE I NEED TO WRITE COUPLE OF COMMANDS / SQL IN DIFFERENT SHEETS / WORKBOOKS WHICH MAY USE SOME KIND OF "REFRESH" OPTION WHEN NEEDED.
[TABLE="width: 4420"]
<tbody>[TR]
[TD="width: 223"]Source.Name[/TD]
[TD="width: 127"]INVOICE NO.[/TD]
[TD="class: xl63, width: 93"]BL DATE[/TD]
[TD="width: 236"]P.I. NO.[/TD]
[TD="width: 89"]OFFICE[/TD]
[TD="width: 270"]BUYER[/TD]
[TD="width: 82"]CARTONS[/TD]
[TD="width: 88"]QUANTITY[/TD]
[TD="width: 110"]GROSS VALUE[/TD]
[TD="width: 88"]DEPOSITS[/TD]
[TD="width: 91"]NET VALUE[/TD]
[TD="width: 65"]TENOR[/TD]
[TD="class: xl63, width: 100"]DUE DATE[/TD]
[TD="width: 219"]LC NO.[/TD]
[TD="width: 568"]DESCRIPTION[/TD]
[TD="width: 181"]SUPPLIER[/TD]
[TD="width: 343"]SUPPLIER INV. NO.[/TD]
[TD="width: 451"]IMPORT AMOUNT[/TD]
[TD="width: 225"]VESSEL NAME[/TD]
[TD="width: 203"]LOADING[/TD]
[TD="width: 568"]DESTINATION[/TD]
[/TR]
</tbody>[/TABLE]
THIS IS THE HEADER AND FOR AN EXAMPLE I NEED TO TO MAKE A REPORT WHICH MAY BRING:
INVOICE NO.
BL DATE
P.I. NO.
BUYER
GROSS VALUE
DEPOSITS
NET VALUE
THAT MATCHES THE "BUYER" = "XYZ COMPANY" AND AUTOMATICALLY ADDING A TOTAL FOR:
GROSS VALUE
DEPOSITS
NET VALUE
NOW FROM ORIGINAL TABLE IF IT GET "REFRESHED" THE REPORT MAY ALSO HAVE AN OPTION TO "REFRESH" APPENDING NEW ENTRIES (IF ANY).
PLEASE GUIDE / ADVISE.
THANKS IN ADVANCE.
I NEED TO WRITE A SIMPLE SQL TO EXTRACT DATA FROM A TABLE. TABLE IS ALREADY EXTRACTING DATA FROM MULTIPLE FILES AND IS REFRESHING WELL WHEN DATA IS UPDATED IN SOURCE FILES.
NOW FROM THIS TABLE I NEED TO WRITE COUPLE OF COMMANDS / SQL IN DIFFERENT SHEETS / WORKBOOKS WHICH MAY USE SOME KIND OF "REFRESH" OPTION WHEN NEEDED.
[TABLE="width: 4420"]
<tbody>[TR]
[TD="width: 223"]Source.Name[/TD]
[TD="width: 127"]INVOICE NO.[/TD]
[TD="class: xl63, width: 93"]BL DATE[/TD]
[TD="width: 236"]P.I. NO.[/TD]
[TD="width: 89"]OFFICE[/TD]
[TD="width: 270"]BUYER[/TD]
[TD="width: 82"]CARTONS[/TD]
[TD="width: 88"]QUANTITY[/TD]
[TD="width: 110"]GROSS VALUE[/TD]
[TD="width: 88"]DEPOSITS[/TD]
[TD="width: 91"]NET VALUE[/TD]
[TD="width: 65"]TENOR[/TD]
[TD="class: xl63, width: 100"]DUE DATE[/TD]
[TD="width: 219"]LC NO.[/TD]
[TD="width: 568"]DESCRIPTION[/TD]
[TD="width: 181"]SUPPLIER[/TD]
[TD="width: 343"]SUPPLIER INV. NO.[/TD]
[TD="width: 451"]IMPORT AMOUNT[/TD]
[TD="width: 225"]VESSEL NAME[/TD]
[TD="width: 203"]LOADING[/TD]
[TD="width: 568"]DESTINATION[/TD]
[/TR]
</tbody>[/TABLE]
THIS IS THE HEADER AND FOR AN EXAMPLE I NEED TO TO MAKE A REPORT WHICH MAY BRING:
INVOICE NO.
BL DATE
P.I. NO.
BUYER
GROSS VALUE
DEPOSITS
NET VALUE
THAT MATCHES THE "BUYER" = "XYZ COMPANY" AND AUTOMATICALLY ADDING A TOTAL FOR:
GROSS VALUE
DEPOSITS
NET VALUE
NOW FROM ORIGINAL TABLE IF IT GET "REFRESHED" THE REPORT MAY ALSO HAVE AN OPTION TO "REFRESH" APPENDING NEW ENTRIES (IF ANY).
PLEASE GUIDE / ADVISE.
THANKS IN ADVANCE.