Forum Replies Created

Viewing 6 posts - 1 through 7 (of 7 total)

  • RE: dynamic sql query

    yes 
    sir
    will try to format for sure
    thanks a million

    regards
    hemu

  • RE: dynamic sql query

    sir
    i have tried query after modifying same as below
    --------query
    declare @query nvarchar(max),@col nvarchar(max);
    --declare @frdate datetime='01-jan-2019',@todate datetime ='31-jan-2019';
    DECLARE @frdate date = '20190101', @todate date = '20190131';
    select...

  • RE: dynamic sql query

    sorry 
    please ignore my silly question

    sorry again

  • RE: dynamic sql query

    sir
    excuse my shabbiness
    i am  a newbe ro sql
    one   more question ... may be very absurd

    what  is xtab .........?
    please explain

  • RE: dynamic sql query

    hi
    thanks 
    here is my whole code
    i have masked table names  on security grounds
    --------------------------

    declare @query nvarchar(max),@col nvarchar(max);
    declare @frdate datetime='01-jan-2019',@todate datetime ='31-jan-2019';
    select @col=

    STUFF((SELECT...

  • RE: dynamic sql query

    hi
    please help 
    i am trying to use pivot clause in a query
    declare @sql nvarchar(max);
    declare @frdate datetime =;01-jan-2019',@todate datetime ='31-jan-2019' 
    set @sql= select  entrydate,id,amt from xtab where entrydate...

Viewing 6 posts - 1 through 7 (of 7 total)