Forum Replies Created

Viewing 15 posts - 886 through 900 (of 2,452 total)

  • RE: How do we get the definition of tables via sql

    mw112009 (2/12/2016)


    Sean:

    Here you go:

    Whether it is accurate or not.. Your decision

    http://sqlindia.com/generate-table-definitions-using-tsql-sql-server/

    if this is the code you intend to use http://sqlindia.com/generate-table-definitions-using-tsql-sql-server/ then please see below

    CREATE TABLE [dbo].[TableTest](

    [inta] [int] NOT NULL,

    [intb] [int]...

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

  • RE: calculate total salary based on employee type

    did this get resolved?

    same post on SO

    http://stackoverflow.com/questions/35263844/calculate-total-salary-based-on-employee-type

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

  • RE: calculate total salary based on employee type

    Jacob's solution gives what you have asked for...however I am wondering how you hold your payrates?

    currently you have a four month spread for your query with a single payrate for...

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

  • RE: need help to write a query

    if I run the sample scripts and then run this query

    SELECT t_mcno, t_citg, t_trdt, t_shft, t_wght

    FROM ...

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

  • RE: need help to write a query

    as previously mentioned to you...please provide scripts...thanks

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

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

  • RE: calculate total salary based on employee type

    coolcurrent4u (2/8/2016)


    Hello

    see an sql fiddle http://sqlfiddle.com/#!3/f4be2/1

    Regards

    no joy with that link...fails to load

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

  • RE: calculate total salary based on employee type

    Take note of Judes pay which is 20269.25 rather than 20000 in the previous table

    why should Judes pay be 20269.25...there were no sales for Jude (If I understand you...

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

  • RE: Limit insert of column value

    EDIT please read the following...it will help you help us help you.

    http://spaghettidba.com/2015/04/24/how-to-post-a-t-sql-question-on-a-public-forum/

    as a start. , based on the info provided so far by the OP. here is...

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

  • RE: Limit insert of column value

    Raxter (2/7/2016)


    I added the DDL statements to create tables. I apologize for not supplying all the needed information. I am new to this site but will make sure in the...

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

  • RE: Linked Server issue- query is inserting nulls but inserts text values

    GaffneyJ (2/7/2016)


    Bump, still no resolution to this

    probably because you are using MySQL....this forum is MS SQL orientated.

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

  • RE: Total time jobs run on a day

    can you clarify your understanding of "average"

    here is a starter doc for your further thoughts

    http://blogs.lessthandot.com/index.php/datamgmt/dbprogramming/it-s-hard-to-be/

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

  • RE: Pivoting Problem

    silverbullettruck (2/3/2016)


    Here's the situation with the LOB = MNS. MNS has two different properties for the XLOB (ML and MS), for those two different XLOB values there are differing...

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

  • RE: Pivoting Problem

    ChrisM@Work (2/3/2016)


    silverbullettruck (2/3/2016)


    Yes, it would be ok to switch values for the values that exist multiple times for the same LOB with different values, but the values that only exist...

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

  • RE: Pivoting Problem

    ok, I know the following isnt the solution you have requested.

    But I am struggling to come up with a solution that exactly matches your requirements, I hope someone else...

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

  • RE: Pivoting Problem

    silverbullettruck (2/2/2016)


    Can we push the reset button? I think I derailed people by mistake. Here's a smaller set of data and a before and after of the result...

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

Viewing 15 posts - 886 through 900 (of 2,452 total)