Forum Replies Created

Viewing 15 posts - 106 through 120 (of 2,452 total)

  • RE: Calculated Query Help

    please post table create scripts for your two tables  Product & SalesOrderDueDateReport 
    some sample data insert scripts for both tables and your expected results for this sample data.

    someone...

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

  • RE: Calculated Query Help

    you have posted in Sql 2005 forum....is this correct?  
     (I ask because it may restrict some solutions)

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

  • RE: Calculated Query Help

    gazy007 - Thursday, July 27, 2017 4:35 AM

    Hi,

    I am struggling to grasp on how to calculate in SQL where there is a...

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

  • RE: SQL Server 2012 Express edition installation error!

    any reason why you dont/cant reinstall SQL Server 2014 Express... why the must have 2012 version?

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

  • RE: Next row begins

    cbrammer1219 - Tuesday, July 25, 2017 12:39 PM

    I don't have the script for inserting into the final table yet, that is why...

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

  • RE: Next row begins

    varchars as empty strings

    CREATE TABLE #yourtable(
    ID  INT NOT NULL
    ,Shipto varchar(25)
    ,Description VARCHAR(25)
    ,ItemN INTEGER NOT...

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

  • RE: Next row begins

    cbrammer1219 - Tuesday, July 25, 2017 12:24 PM

    So do I need to turn all blank fields to NULLS? Because it seems to...

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

  • RE: Next row begins

    here's some sample code ...I think it does what you are asking

    reference http://sqlmag.com/t-sql/last-non-null-puzzle

    CREATE TABLE #yourtable(
     ID    INT NOT NULL
    ...

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

  • RE: Next row begins

    cbrammer1219 - Tuesday, July 25, 2017 10:04 AM

    INSERT

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

  • RE: Next row begins

    cbrammer1219 - Tuesday, July 25, 2017 9:45 AM

    That is what is in the file attached. Or are you meaning write the script...

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

  • RE: Next row begins

    cbrammer1219 - Tuesday, July 25, 2017 9:31 AM


    CREATE TABLE [dbo].[TONYS_v2](
     [customerfileid] [int] NULL,
     [ID] [int] NULL,
     [Ship to Customer] [nvarchar](10) NULL,
     [sh Long Description]...

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

  • RE: Next row begins

    can you post create/insert exmaple data scripts for the table [WH_Stores].[dbo].[TONYS]?

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

  • RE: Outer Apply - Alternative

    not sure I understand your question.
    are you saying the code errors (doesnt work)
    or that it works but you are not getting  the results you require?
    why dont you...

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

  • RE: Dynamic SQL Query Not Fetching Records based on where Not In condition

    sunilchand1234 - Saturday, July 22, 2017 12:21 AM

     and also give me some astute  insight on how to work on comma's in case...

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

  • RE: Dynamic SQL Query Not Fetching Records based on where Not In condition

    sunilchand1234 - Saturday, July 22, 2017 4:09 AM

    J Livingston SQL - Saturday, July 22, 2017 4:03 AM

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

Viewing 15 posts - 106 through 120 (of 2,452 total)