Forum Replies Created

Viewing 15 posts - 16 through 30 (of 86 total)

  • RE: Problem with bcp and coalesce

    Hi Keith

    I am now faced with a new error

    Error = [Microsoft][SQL Server Native Client 10.0][SQL Server]Invalid column name 'newtable'.

    even though that is the name of the table and not a...

  • RE: remove duplicates and sum column

    Hi Again

    The sum does not work because it is actually a nvarchar column. Is there a way around this

    SELECT ProductName,

    ProductVersion,

    SoftwareManufacturer,

    SUM( DISTINCT Installations),

    Licensable

    FROM newtable where productname...

  • RE: remove duplicates and sum column

    Sorry but that doesn't work

    I put

    SELECT softwaremanufacturer,productname, productversion, count(installations) as TotalInstalls, Licensable

    FROM

    (SELECT DISTINCT softwaremanufacturer,productname, productversion,Licensable from newtable)

    GROUP BY softwaremanufacturer,productname, productversion, Licensable

    and it says

    Msg 156, Level 15, State 1, Line...

  • RE: Cannot figure out my update correctly

    ok thanks for the update, the query works but yes I agree, i will speak to the powers that be, thanks again all

  • RE: export to csv

    hi there

    this just comes up with an error saying incorrect syntax near the keyword from

  • RE: Update even if there is not a match

    Hi There

    Thanks for your reply this looks more like it but I am receiving an error saying

    Msg 10713, Level 15, State 1, Line 19

    A MERGE statement must be terminated...

  • RE: Update even if there is not a match

    the softwaremanufacturer,productname and productversion do not match in the lookuptable so it wont update with unknown,

    thats what I meant to say if there is not a match in...

  • RE: Update even if there is not a match

    No that does not work, it has updated all licensable columns to unknown and nulled the software manufacturer,productname and productversion

    please advise

  • RE: query returning to many rows

    that last query returns results even if the category is null

  • RE: trying to match up two tables

    in the datalookuptable there are 291406 rows

    so when i search for licensable products I get

    select n.*,d.category

    from newtable n

    join datalookuptable d

    on n.softwaremanufacturer = d.amended_sw_manufacturer

    and n.productname = d.amended_product_name

    and n.productversion = d.amended_product_version

    and d.category...

  • RE: trying to match up two tables

    Hi Errland

    I have just actually posted a query regarding this.

    I have just done that but my query seems to return to many rows eg

    select count(*) from dbo.newtable

    returns 600,00...

  • RE: trying to match up two tables

    hi there

    i cant add an id column as the dbo.newtable is created dynamically from spreadsheets

    please advise

  • RE: SQL Server import export wizard vs bulk insert

    ive looked into that and I have no idea what to do

  • RE: select only some rows and then the rest

    Hi SSCrazy

    Yes i know but this still does not answer my question on how I actually get this in the right output format, at present it is showing

    ,endeffectivedate

    ,starteffectivedate

    ...

  • RE: select only some rows and then the rest

    Hi SSCrazy

    yes i know but this still does not answer my question as to how to concatenate this together my query is showing

    ,endeffectivedate

    ,starteffectivedate

    from newtable

    select softwaremanufacturer,productname,productversion

    which is invalid

    it...

Viewing 15 posts - 16 through 30 (of 86 total)