Forum Replies Created

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

  • RE: 3 select in one SP

    GilaMonster (2/3/2016)


    You've given them names. First and Second in your code example. You can reference them by those names in the last query.

    What are you trying to do?

    i want use...

  • RE: 3 select in one SP

    how to set name for firest and second table?

    my code is:

    ALTER procedure [dbo].[test2] (@d1 int,@d2 int,@d3 int,@d4 int)

    as

    WITH first AS

    (

    SELECT dbo.card_in.id_reg, dbo.region.name_reg,...

  • RE: 3 select in one SP

    i need result of select 1 and select 2 for last select

    how to set name for first select and second select for use in last select

  • RE: 3 select in one SP

    i need all selects

  • RE: Replace code in SP

    Thanks.

  • RE: Replace code in SP

    In this SP

    SELECT TOP (@topval) dbo.bigtb.fire, dbo.maingroup.maingroup, dbo.bigtb.subgroup, dbo.maingroup.groupnamefa, dbo.subgroup.subgroupfa, dbo.bigtb.title1,

    ...

  • RE: Replace code in SP

    v_userpro is a View,

    I dont use View,

    I want use

    SELECT fire, COUNT(id1) AS pageview

    ...

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