Forum Replies Created

Viewing 15 posts - 361 through 375 (of 451 total)

  • RE: need help

    harri.reddy (10/2/2012)


    /*** PROBLEM #1 ***/

    --Correct the following query:

    SELECT *

    FROM DATA

    WHERE CAST(VAL AS DATETIME) BETWEEN '12/1/2012' AND '12/31/2012'

    AND ISDATE(VAL) = 1

    /*** PROBLEM #2 ***/

    --Write a set of queries that outputs all the non-date values...

  • RE: Date Format in SSRS

    Impossible to know without seeing the data, but I'd guess that the field isn't a datetime datatype, but rather a varchar() where not all of the values are correctly formatted...

  • RE: Lookup Function. Have you tried it?

    davdam8 (10/2/2012)


    Hi geniuses!

    I'm stuck here with a Lookup function in SSRS.

    Can anybody give me an example of this function?

    See if this helps: http://technet.microsoft.com/en-us/library/ee210531.aspx

    HTH,

    Rob

  • RE: Date Format in SSRS

    deepeshdhake (10/2/2012)


    I have the date time field. I want extract only Month and the year. How can I do the same.

    Current format of the field is "10/01/2012 hh:mm:ss"

    Need to convert...

  • RE: Simple LEFT JOIN question

    Laurie, Yep -- very similar to what I did end up doing upstream in the thread.

    Thanks,

    Rob

  • RE: Data-Modeler-Tool

    ERWin is one tool that can be used for modeling, reverse enigineer schema, forward engineer schema (make change scripts). It doesn't integrate into VS (that I'm aware of). ...

  • RE: Simple LEFT JOIN question

    Steve, that doesn't work as every class in the Curriculum table has been taken by at least one user. So the inner SELECT of:

    select *

    from LMS.Curriculum c1

    left outer join

    LMS.UserCurriculum...

  • RE: Simple LEFT JOIN question

    dan-572483 (10/1/2012)


    You have an ORDER BY clause with a field from the joined table. Since ORDER BY can't evaluate null, I think this is making it an inner join.

    Dan,...

  • RE: Simple LEFT JOIN question

    Thank you for breaking that down for me. No users table, but I can do:

    ;WITH CTE_Users (Username)

    AS

    (

    SELECT DISTINCT Username

    FROM LMS.UserCurriculum

    )

    SELECT c.*,

    u.*,

    uc.*

    FROM...

  • RE: Simple LEFT JOIN question

    Okay, but if I switch to a right join I still get the total number of rows from the UserCurriculum table.

    SELECT c.*,

    uc.*

    FROM LMS.Curriculum c

    RIGHT...

  • RE: Sequence generator using SSIS

    jampabsatish (10/1/2012)


    Hi Forum,

    I need to generate a sequence number using SSIS , this value is stored in the column as a varchar(15),

    001-00-000001

    001-00-000002

    001-00-000003

    It will NEVER reach the value 001-00-999999

    I'm trying to...

  • RE: Simple LEFT JOIN question

    Yes, I can have one particular test user that has taken 9 of the 15 classes from the Curriculum table.

  • RE: DBCC CHECKDB errors

    After last night's reboot of the server, the problem has went away and the DBCC comes back fine.

    Rob

  • RE: HierarchyID In SQL Server?

    Books onine says:

    The hierarchyid data type is a variable length, system data type. Use hierarchyid to represent position in a hierarchy. A column of type hierarchyid does not automatically represent...

Viewing 15 posts - 361 through 375 (of 451 total)