Forum Replies Created

Viewing 15 posts - 17,011 through 17,025 (of 26,489 total)

  • RE: Add value to return result set.

    Show me your code.

  • RE: INSERT INTO Help

    Would help if you provided the table defs (CREATE TABLE statements), some sample data (series of INSERT INTO statements), and expected output.

    As a newbie on ssc, please take the time...

  • RE: Today's Random Word!

    meditate

  • RE: Today's Random Word!

    aggravate

  • RE: Are the posted questions getting worse?

    < .... Running screaming to my tent in the desert ......>

    Why is it that when you ask someone to SHOW you want they are trying to do they never...

  • RE: Add value to return result set.

    ronaldkrex (2/5/2010)


    Select * from States. Then I want to add the value ALL to the resultset.

    Not really sure if you want this:

    select 'ALL',StateName from States

    or this

    select StateName from States

    union all

    select...

  • RE: Add value to return result set.

    No, that isn't what I asked for. Show what you are trying to accomplish. What code have you written so far, and you actually want.

  • RE: Help with Query

    Try this:

    SELECT * FROM [dbo].[tblReportData]

    WHERE (CardORKey='Card')

    AND (LastName = @LastName OR @LastName IS NULL)

    AND (Date >= @StartDate OR @StartDate IS NULL)

    AND (Date < dateadd(dd,1,@EndDate) OR @EndDate IS NULL)...

  • RE: Add value to return result set.

    Care to show us what you asking?

  • RE: Transpose

    Something like this, I would guess.

    create table #testtab (

    CId int,

    SN char(4)

    );

    insert into #testtab

    select 1, 'ABC1' union all

    select...

  • RE: Cursors

    mbender (2/5/2010)


    Guess I'm a bit unclear about what your asking, do you want to know what I would expect the results of SELECT * FROM InventoryThatNeedsReorders before or after the...

  • RE: delay expired problem in query

    lobbymuncher (2/5/2010)


    Anybody wanna beer? It's friday! My shout. Get yer shoes on. Lynn I'll get you a coke.

    Actually, I'll take a fresh brewed sweet tea, just not as sweet as...

  • RE: Cursors

    mbender (2/5/2010)


    In the example if the updates and inserts were done then i pulled the query

    Select PartNumber, Location, Quantity from InventoryThatNeedsReorders Where ((Quantity-ReorderPoint)>=1)

    I would not expect it to show:

    Widget 123,...

  • RE: Today's Random Word!

    debilitate

  • RE: creating a udf

    Will this help get you started:

    create table #testtab (

    intval int

    );

    insert into #testtab

    select 1 union all

    select 2 union all

    select 3 union all

    select 4;

    select

    STUFF((select...

Viewing 15 posts - 17,011 through 17,025 (of 26,489 total)