Forum Replies Created

Viewing 15 posts - 1,021 through 1,035 (of 2,452 total)

  • RE: Need help with a query ALL rows in column must meet condition

    this article may give you some pointers

    http://www.sqlservercentral.com/articles/T-SQL/88244/

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Date Function (Possibility)

    try this

    SELECT LID

    FROM TEST_TABLE_Dupe_Pay

    GROUP BY LID

    HAVING DATEDIFF(d, MIN(DraftDt) , MAX(DraftDt)) <=3

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Date Function (Possibility)

    SQLPain (10/20/2015)


    Hello everyone, is it possible that result set only return me the Loan ID (LID) where my Draft Date (DraftDt) is within 3 days to each other, for example...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Query on a large database

    sreeya (10/20/2015)


    The same Customer may purchase multiple times on the same day plus we have about 100 millions of active users. As I said facts table is pretty big with...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Concatenate Random Date + Random Time = Error!

    Good resource can be found here by Jeff Moden

    http://www.sqlservercentral.com/articles/Test+Data/88964/

    DECLARE @NumberOfRows INT,

    @StartDate DATETIME,

    ...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: need a query

    to start with....does this work?

    WITH CTE

    AS (SELECT

    *

    ...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Monthly - Updated Values - keep for reference.

    malcolm.garbett (10/18/2015)


    Hi,

    Hope I'm posting in the correct area.

    I have a table with constantly changing data - stock.

    I want to start monitoring the value of stock at the end of each...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: need a query

    elham_azizi_62 (10/16/2015)


    hello all.

    please help me about my query.

    based on the latest sample data....what results are you expecting?

    please provide details

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: need a query

    havent you asked this type of question before?

    http://www.sqlservercentral.com/Forums/FindPost1719078.aspx

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Calculate number of months between dates for multiple records

    LeeFAR (10/7/2015)


    I have a challenge and I'm not sure the best route to go. Consider the following dataset.

    I have a table of sales. The table has fields for...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Remove duplicates from query

    maybe....

    CREATE TABLE #sampledata(

    StrId INTEGER NOT NULL PRIMARY KEY

    ,PersId INTEGER NOT NULL

    ,percentId...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: convert rows to columns in query

    elham_azizi_62 (10/6/2015)


    thanks so much for your reply.

    ??... does it work for you ...??

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: convert rows to columns in query

    elham_azizi_62 (10/5/2015)


    dear J Livingston.

    I mean dynamic generating columns.in fact if my column is null,column isn't shown.

    ....not entirely sure that I understand your requirements....but try this

    CREATE TABLE #sampledata(

    PersonID int NOT...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: 1 Table has been refreshed since the 29th of October.

    Welsh Corgi (10/5/2015)


    I have 1 Table has been refreshed since the 29th of October.

    I checked other tables and they are being refreshed.

    How can I identify and correct the problem?

    Thanks.

    excuse me,...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Are the posted questions getting worse?

    ChrisM@Work (10/5/2015)


    TomThomson (10/3/2015)


    ChrisM@Work (10/1/2015)


    David Burrows (10/1/2015)


    Many many moons ago when I frequented London pubs it was either RamRod and Special or 80/- Heavy

    Gosh David you must be an old git...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

Viewing 15 posts - 1,021 through 1,035 (of 2,452 total)