Forum Replies Created

Viewing 15 posts - 706 through 720 (of 761 total)

  • RE: pivoting against two columns

    You're welcome.

    Always Happy to help.

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

  • RE: SQL Select statements and joins

    SQL is simply a query language. It would give you all the results depending on the query you ask. So, it is upto you to ask the right query. If...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

  • RE: Update / Edit Query

    The Update Syntax seems fine.

    Have you tested the Select Query??....If the Select Query works fine then I think that $desiredProduct, $desiredYear and $desiredMonth would not be the ones causing problems...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

  • RE: URGENT PLEASE Got a SQL Scenario to solve

    Considering the urgency of the requirement and the vagueness of the question, the following link seems to be an apt solution:

    SSIS Tutorial

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

  • RE: Complicated query

    ColdCoffee (4/16/2012)


    How about this?

    Setting up the sample data

    DECLARE @Tab TABLE

    (

    ID INT

    ,Tym TIME

    ,Axn INT

    )

    INSERT @Tab

    SELECT 1 ,'10:00', 1...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

  • RE: pivoting against two columns

    This might help:

    Pivot two or more columns in SQL Server

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

  • RE: How to revert New_Column_Name to Old_Column _Name ?

    Does Case matter in SQL Server?

    Anyways, you can rename the column as follows:

    sp_RENAME 'TableName.[OldColumnName]' , '[NewColumnName]', 'COLUMN'

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

  • RE: Need Help with the Error 'Subquery returned more than 1 value'.

    Grass (4/15/2012)


    I tried using before but didn't work.can u tell me how to use the distinct to replace SET statement.what fields needs to be distinct?

    thanks.

    Try these for Distinct:

    SET @Project_ID =...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

  • RE: I want to run a batch file from query window or from Trigger.

    Windows Explorer....Can you see it at the location where you saved it?

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

  • RE: DATABASES

    capn.hector (4/14/2012)


    vinu512 (4/13/2012)


    Seems like ETL to me. The various branches can accumulate the data in XML form or in the form of Excel sheets. This data can then be mailed...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

  • RE: Primary with Null value

    PaulB-TheOneAndOnly (4/14/2012)


    sukato7 (4/14/2012)


    How can I set PK columns to allow null or blank?

    You cannot do it.

    A Primary Key is a Referential Integrity constraint that exclusively allows unique values and does...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

  • RE: Need Help with the Error 'Subquery returned more than 1 value'.

    Grass (4/14/2012)


    I think I actually found out which part of the code is giving the error. It is on the first two SET statements when I pass the three variables...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

  • RE: MSSQL View

    +1 on dat Fitz.

    Forgot to add the part about Clustered Index Views.

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

  • RE: MSSQL View

    Views are virtual parts of one or more Physical tables. Following is a good article about Views:

    Views in SQL Server[/url]

    Although Views are present in a Database they do not consume...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

  • RE: Pivoting my data

    Divya Agrawal (4/14/2012)


    RexHelios (4/13/2012)


    Hello All,

    I have the following table...

    DECLARE @EmploymentHistory TABLE (

    CompanyName VARCHAR (100), EmployeeName VARCHAR (100),

    EmploymentBeginDate DateTime, EmploymentEndDate DateTime)

    INSERT @EmploymentHistory (CompanyName, EmployeeName, EmploymentBeginDate, EmploymentEndDate)

    SELECT 'Jack and Jill Company',...

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

Viewing 15 posts - 706 through 720 (of 761 total)