Forum Replies Created

Viewing 15 posts - 1,711 through 1,725 (of 2,452 total)

  • RE: Get data from 3 or more tables

    hemal_301080 (4/10/2013)


    J Livingston SQL (4/10/2013)


    Can you suggest me from where can i know everything about TSQL and MSSQL?

    Knowing "everything" may take a little time....its a vast subject...try putting "TSQL"...

  • RE: Error Message SqlDateTime

    Lynn Pettis (4/10/2013)


    abdielmomo (4/10/2013)


    Please, When I run a Select on my table i receive this message: "Une erreur s'est produite lors de l'exécution du lot. Message d'erreur : Dépassement SqlDateTime. Doit...

  • RE: Get data from 3 or more tables

    Can you suggest me from where can i know everything about TSQL and MSSQL?

    Knowing "everything" may take a little time....its a vast subject...try putting "TSQL" into a search engine....see...

  • RE: Get data from 3 or more tables

    maybe something along these lines....??

    declare @dt1 datetime

    declare @dt2 datetime

    set @dt1 = '2012-09-01'

    set @dt2 = '2012-10-01'

    ;WITH cte AS

    (

    SELECT

    V1.item,

    --V1.voucherno AS VNO,

    SUM(case when v.dt < @dt1 AND v.vouchertype...

  • RE: Get week ending date given the week number

    Lynn Pettis (4/9/2013)


    Use a calendar table like previously suggested.

    personally I like calendar tables...you can create what ever periods you need to match business requirements

    here is a simple example :

    use [tempdb]--====...

  • RE: Need help optimizing a query

    Lynn Pettis (4/9/2013)


    Also, if you are adding and deleting data, you really should create a clustered index on the table. As a heap it will just continue to grow...

  • RE: Need help optimizing a query

    try this index on your heap table......not quite sure why you are worried about data load speeds...seems you are already deleting data over three days old and adding new. Therefore...

  • RE: Need Help in SQL Pivot Query

    geetha.jasmine (4/6/2013)


    Hello,

    Thanks for sharing the URL which helps understand how to post the question.

    I have rewrriten the question in a word document and has been attached as an attachment...

  • RE: Queries and tables

    lazarjojic (4/1/2013)


    thank you guys, but this is still too complicated for me

    perhaps you can be more explicit in what you are looking for......

  • RE: Queries and tables

    Jeff Moden (3/30/2013)


    lazarjojic (3/30/2013)


    Hi!

    I was wondering if I could find some queries and database tables for them. I would like to have some complicated tasks for which I need to...

  • RE: please help with cursor syntax

    just a thought

    ;with SD as (

    SELECTname,

    database_id,

    create_date

    FROM sys.databases

    where name not in ('master','tempdb', 'model', 'msdb')

    )

    SELECTSD.name,

    SD.create_date,

    IUS.database_id,

    IUS.index_id,

    IUS.user_seeks,

    IUS.user_scans,

    IUS.user_lookups,

    IUS.user_updates,

    IUS.last_user_seek

    FROM SD

    LEFT OUTER JOIN ...

  • RE: All Possible Combinations Loop

    akberali67 (2/7/2013)


    A,B,C,D,Outcome

    A1,B1,C1,D1,1

    A2,B2,C2,,0

    A3,,C3,,1

    A4,,C4,,1

    ,,C5,,0

    deleted....didnt read the OP correctly !

  • RE: Strored procedure returns different row counts

    Alex koranteng (1/27/2013)


    Thanks for the pointer. The code is the same. The data for the joins in the two environments are slightly different, because the test server data is a...

  • RE: Strored procedure returns different row counts

    my first thought is that the data in the tables is different between servers...but I would have thought you had already checked this?

Viewing 15 posts - 1,711 through 1,725 (of 2,452 total)