Forum Replies Created

Viewing 15 posts - 7,141 through 7,155 (of 15,381 total)

  • RE: Create multi column view from single column data

    GTJohnson73 (8/13/2013)


    I am working off of a view, that has a huge amount of columns...for the data I need here is the structure information

    pyEventID = (Varchar (255), null)

    ProviderName = (varchar(64),...

  • RE: Select statement can't modify

    I am confused. Are you typing in a query or using the Edit top 200 menu option? I would urge you to write your queries instead of using the edit...

  • RE: Create multi column view from single column data

    GTJohnson73 (8/13/2013)


    Here is my attemp at the Cross Tab and I am getting invalid column with the unline being on all of the Selects in the "WITH" section. I am...

  • RE: Are the posted questions getting worse?

    Ed Wagner (8/13/2013)


    jasona.work (8/13/2013)


    Oh what a fun little car the BRZ is!

    The last time I was in a car that felt this sure-footed on the road, was a 1996-7 Eagle...

  • RE: Lookup Table Setup?

    nuchbcc (8/13/2013)


    Thank you for being patient.

    To create a FK so the query output would replace the value with the StatusName, from SMS;

    On table1 right-click on Keys,...

  • RE: Create multi column view from single column data

    GTJohnson73 (8/13/2013)


    Thank you for the welcome...For the I-##### in the code, can I replace this with the column name, etc.?

    i.e. select eventID, P_Num, 1, 'Company', 1 union all

    ...

  • RE: SELECT with a variable Tablename

    bgrossnickle (8/13/2013)


    I am rying to run a TSQL SELECT Count(*) that has a @Tablename variable in it.

    My Tablename name needs to be variable and I will build it on...

  • RE: T-SQL Function that works like the FIRST funcion in MS Access?

    jamesheslin123 (8/13/2013)


    Hmm... the only problem with this is I don't think the code takes into account what the SpaceType is.

    I need the Name1 column to say Vacant "SpaceType" only...

  • RE: Passed 70-448!

    Jeff.MSSqlSage (8/13/2013)


    The first rule about 70-448

    is you do not talk about 70-448

    And the second rule is "Sean should shut his hole!!!". 😀

  • RE: Create multi column view from single column data

    Hi and welcome to the forums. What you are describing is known as a cross tab. It will generally outperform a pivot. The challenge is that you posted some data...

  • RE: Lookup Table Setup?

    nuchbcc (8/13/2013)


    I tried the JOIN query separately and received the output that I needed but when I added it to the existing query, it failed.

    I guess what I'm trying to...

  • RE: Passed 70-448!

    Jeff.MSSqlSage (8/13/2013)


    Sean Lange (8/13/2013)


    Jeff.MSSqlSage (8/13/2013)


    Part 1

    Part 2

    Part 3

    You do know that this violates the agreement for the exam right? Your page discusses exam content with things like the percentages of...

  • RE: Lookup Table Setup?

    nuchbcc (8/13/2013)


    I have table1 with multiple columns, the Status column has 3 possible values (1,2,3). I created another table(2) named status_lut (below). When I query table1 I need it...

  • RE: Passed 70-448!

    Jeff.MSSqlSage (8/13/2013)


    Part 1

    Part 2

    Part 3

    You do know that this violates the agreement for the exam right? Your page discusses exam content with things like the percentages of questions for certain...

  • RE: T-SQL Function that works like the FIRST funcion in MS Access?

    jamesheslin123 (8/13/2013)


    Now there is one last slightly more complicated piece to this puzzle that I have... and then I think I am actually 100% done with this project.

    I think...

Viewing 15 posts - 7,141 through 7,155 (of 15,381 total)