Forum Replies Created

Viewing 15 posts - 616 through 630 (of 927 total)

  • RE: Generate unique values

    is it a system generated number ? or enter by users

  • RE: SP redundant call

    Ratheesh.K.Nair (4/22/2014)


    Thanks Lowell for the reply.

    I am looking for procedures calling multiple same procedure inside.

    u mean SP calling itself ?

  • RE: convert decimal to int in case condition

    you can do this in t-sql using Format function.

    Declare @tbl table ( id int, assignment decimal(11,8))

    insert into @tbl

    select 1, 10.00 union all

    select 1, 8.55 union all

    select 1, 0.55

    select id,...

  • RE: Loading 7 millions of data into minutes..how is it possible?

    When you fill the FACT Table, how you are making Source,

    Like a T_SQL staging table joining with dimensions to get the dimension id.

    or u r using Lookups? because there...

  • RE: Loading 7 millions of data into minutes..how is it possible?

    are you using SSIS or T-SQL to load the dimension/Fact table?

    and did you tried to disable your index before loading data ?

  • RE: Adding Columns on the Fly

    its look like a cross tab report to me, you can do it with 2 ways

    1) create a cross tab report, doing so you can have 'N' number of...

  • RE: SSMS Results

    Koen Verbeeck (4/18/2014)


    Too easy 😀

    Have a nice Easter weekend, and don't eat too much chocolate!

    +1000 :hehe:

  • RE: Select all months bewtween two dates

    feroz_tt (4/16/2014)


    Hi All,

    I'm getting some problem here

    ;with Numbers (Number) as

    (select row_number() over (order by object_id)

    from sys.all_objects)

    select dateadd(month, number, '2014-09-01')

    from Numbers

    where number <= datediff(month, '2014-09-01', '2016-03-31')

    Low no of months.

    Select datediff(month,...

  • RE: how to declare a variable

    ashalatha.cse76 (4/16/2014)


    it is displaying as zero records

    i have tested this script before sharing. It should return 1 row.

    Following is the result set

    ID ...

  • RE: how to declare a variable

    Changed the column Name from 'maturnity' to 'maturity'.

    Declare @Table1 table

    (

    ID int

    , Age int

    , gender varchar(10)

    )

    Declare @Table2 table

    (

    ID int

    , maturity varchar(10)

    , gender varchar(10)

    )

    insert into @Table1 (ID, Age, gender)

    select 1,...

  • RE: how to declare a variable

    ashalatha.cse76 (4/16/2014)


    it is correct but while getting the data from data base according to the id from the first table if the age is less than 18 we should get...

  • RE: Selecting Data from table with multiple conditions on multiple columns

    surya.mekala (4/16/2014)


    Yeah the limit is upto 10 columns.

    And dynamic SQL ? Could you please guide me in writing that query in dynamic sql

    Ok, as per your answer you donot need...

  • RE: how to declare a variable

    ashalatha.cse76 (4/16/2014)


    i cant understand what u are saying

    i also cant understand what u r saying, still i tried the following:

    Declare @Table1 table

    (

    ID int

    , Age int

    , gender varchar(10)

    )

    Declare @Table2 table

    (

    ID int

    ,...

  • RE: how to declare a variable

    you should read the following

    How to post data/code on a forum to get the best help[/url]

    Give your question a chance of being answered correctly.

  • RE: Selecting Data from table with multiple conditions on multiple columns

    It can be done in dynamic sql but 1st i need to know, is there any limit of there will always be Price1, Price2 & Price3 etc columns, or you...

Viewing 15 posts - 616 through 630 (of 927 total)