Aşağıdaki sql sorgusundaki 2. SELECT sorgusunun sonucunu, 1. SELECT sorgusunun sonucunun…
- User
Aşağıdaki sql sorgusundaki 2. SELECT sorgusunun sonucunu, 1. SELECT sorgusunun sonucunun ardına ekleyerek 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
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)
UNION ALL
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
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.