Aşağıdaki sql sorgusundaki 1. SELECT sorgusunun sonucunu A1 hücresinden başlat , 2.…
- User
Aşağıdaki sql sorgusundaki 1. SELECT sorgusunun sonucunu A1 hücresinden başlat , 2. SELECT sorgusunun sonucunu A6 hücresinden başlat 1 sheet içerisinde multi excell de kullanabilmek için düzenle. SELECT @Date2 Date, ra.BankAccountsId, ra.SWIFTCode, ra.AccountNumber FROM BOA.RCC.BankAccounts ra WITH (NOLOCK) JOIN BOA.CUS.Customer c WITH (NOLOCK) ON c.Customerid=ra.AccountNumber JOIN BOA.COR.FEC f WITH (NOLOCK) ON f.FecId=ra.FEC WHERE f.FecGroup IN (0,1) AND ra.IsActive = 1 --döviz, kıymetli maden, kıymetsiz maden çıkarıldı AND ra.BankAccountsId = (SELECT BankAccountsId FROM #BankAccounts WHERE Id = @Incrementer)
SELECT (CASE WHEN sd.EntryDate IS NULL THEN (Format(sd.ValueDate, N’MMddyy’)) ELSE sd.EntryDate + Format(sd.ValueDate, N’yy’) END) EntryDate, sd.ValueDate, ra.BankAccountsId, ra.SWIFTCode, ra.AccountNumber FROM BOA.RCC.BankAccounts ra WITH (NOLOCK) JOIN BOA.CUS.Customer c WITH (NOLOCK) ON c.Customerid=ra.AccountNumber JOIN BOA.COR.FEC f WITH (NOLOCK) ON f.FecId=ra.FEC JOIN BOA.RCC.SwiftDebit sd WITH (NOLOCK) ON sd.BankAccountsId=ra.BankAccountsId AND sd.Status=‘U’ WHERE ra.BankAccountsId = (SELECT BankAccountsId FROM #BankAccounts WHERE Id = @Incrementer) AND f.FecGroup IN (0,1) AND ra.IsActive = 1
- Assistant
Bu sorgu multi excel içinde kullanmak için düzenlenemez. Çünkü her bir SELECT sorgusu farklı bir sonuç seti döndürür ve bunları tek bir tablo içerisinde birleştirmek mümkün değildir. Bunun yerine, her bir SELECT sorgusunun sonucunu ayrı ayrı Excel sayfalarında göstermeniz gerekebilir. Bunu yapmak için Excel'de her bir sayfayı farklı bir Excel sekmesi olarak oluşturmanız ve her bir SELECT sorgusunun sonucunu ayrı bir sayfaya aktarmanız gerekebilir.